During the lifetime of Allah's Apostle the moon was split into two parts; one part remained over the
mountain, and the other part went beyond the mountain. On that, Allah's Apostle said, "Witness this
miracle."

Abu Ma'mar reported on the authority of Abdullah that the moon was split up during lifetime by Allah's Messenger (may peace be upon him) in two parts and Allah's Messenger (may peace be upon him) said:

'Abdullah b. Mas'ud reported that the moon was split up in two parts during the lifetime of Allah's Messenger (may peace be upon him). The mountain covered one of its parts and one part of it was above the mountain and Allah's Messenger (may peace be upon him) said:

Anas reported that the people of Mecca demanded from Allah's Messenger (may peace be upon him) that he should show them (some) signs (miracles) and he showed twice the splitting of the moon. This hadlth has been narrated on the authority of Anas through another chain of transmitters.

This hadith has been transmitted on the authority of Abdullah b. Mas'ud (who said):

We were along with Allah's Messenger (may peace be upon him) at Mina, that moon was split up into two. One of its parts was behind the mountain and the other one was on this side of the mountain. Allah's Messenger (may peace be upbn him) said to us: Bear witness to this.

from his father who said: "The moon was split during the time of the Messenger of Allah (SAW) until it became as two sections, one above this mountain and one above that mountain. So they said: 'Muhammad has cast a spell upon us.' Some of them said: 'If he could cast a spell upon us, he can not cast a spell upon all of the people.'"

Allah sent (the Prophet) Muhammad and said:--
'Say, No wage do I ask of you for this (Qur'an) nor am I one of the pretenders (i.e. a person who
pretends things which do not exist). (38.68) When Allah's Apostle saw Quraish standing against him,
he said, "O Allah! Help me against them by afflicting them with seven years of famine similar to the
seven years (of famine) of Joseph. So they were afflicted with a year of drought that destroyed
everything, and they ate bones and hides. (One of them said), "And they ate hides and dead animals,
and (it seemed to them that) something like smoke was coming out of the earth. So Abu Sufyan came
to the Prophet and said, "O Muhammad! Your people are on the verge of destruction! Please invoke
Allah to relieve them." So the Prophet invoked Allah for them (and the famine disappeared). He said
to them. "You will revert (to heathenism) after that." `Abdullah then recited:
'Then watch you for the Day that the sky will bring forth a kind of smoke plainly visible.......but truly
you will revert (to disbelief).' He added, "Will the punishment be removed from them in the
Hereafter? The smoke and the grasp and the Al-Lizam have all passed." One of the sub-narrater said,
"The splitting of the moon." And another said, "The defeat of the Romans (has passed).