The Hadith of the splitting of the moon is present in Sahih Bukhari, kitab ut Tafseer. Hadhrat Anas (May Allah be well pleased with him) says: “The people of Makkah requested the Holy Prophet (Sallallahu alaihi wa sallam) to show them a sign of His Prophethood. The Holy Prophet (Sallallahu alaihi wa sallam) split the for moon them.
Hadhrat Abdullah Bin Maso'od says, "In the time of the Holy Prophet (Sallallahu alaihi wa sallam), the moon was split into 2. 1 piece was over the mountain and the other was in the valley of the mountain.