On the authority of Umar who said: One day while we were sitting with the Messenger of Allah (peace be upon him), there came before us a man with extremely white clothing and extremely black hair. There were no signs of travel on him and none of us knew him.
He [came and] sat next to the Prophet (peace be upon him). He supported his knees up against the knees of the Prophet (peace be upon him) and put his hands on his thighs.
He said, “O Muhammad, tell me about Islam.”
The Messenger of Allah (peace be upon him) said, “Islam is to testify that there is none worthy of worship except Allah and that Muhammad is the Messenger of Allah, to establish the prayers, to pay the zakat, to fast [the month of] Ramadan, and to make the pilgrimage to the House if you have the means to do so.”
He said, “You have spoken truthfully [or correctly].”
We were amazed that he asks the question and then he says that he had spoken truthfully.
He said, “Tell me about Imaan (faith).”
He [the Messenger of Allah (peace be upon him)] responded, “It is to believe in Allah, His angels, His books, His messengers, the Last Day and to believe in the divine decree, [both] the good and the evil thereof.”
He said, “You have spoken truthfully.”
He said, “Tell me about al-Ihsaan (goodness).”
He [the Prophet] answered, “It is that you worship Allah as if you see Him. And even though you do not see Him, [you know] He sees you.”
He said, “Tell me about [the time of] the Hour.”
He [the Prophet (peace be upon him)] answered, “The one being asked does not know more than the one asking.”
He said, “Tell me about its signs.”
He answered, “The slave-girl shall give birth to her master and you will see the barefooted, scantily-clothed, destitute shepherds competing in constructing lofty buildings.”
Then he went away. I stayed for a long time.
Then he [the Prophet (peace be upon him)] said, “O Umar, do you know who the questioner was?”
I said, “Allah and His Messenger know best.”
He said, “It was [the Angel] Gabriel who came to teach you your religion.”
- The Hadith of the Angel Gabriel – Explaining the Foundations of Islam, Imaan and Ihsaan