Umar ibn Al-Khattab reported: One day while we were sitting with the Messenger of Allah there appeared before us a man whose clothes were exceedingly white and whose hair was exceedingly black; no signs of journeying were to be seen on him and none of us knew him. He walked up and sat down by the prophet. Resting his knees against his and placing the palms of his hands on his thighs, he said, “O Muhammad, tell me about Islam.” The Messenger of Allah, peace and blessings be upon him, said:
الْإِسْلَامُ أَنْ تَشْهَدَ أَنْ لَا إِلَهَ إِلَّا اللَّهُ وَأَنَّ مُحَمَّدًا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَتُقِيمَ الصَّلَاةَ وَتُؤْتِيَ الزَّكَاةَ وَتَصُومَ رَمَضَانَ وَتَحُجَّ الْبَيْتَ إِنْ اسْتَطَعْتَ إِلَيْهِ سَبِيلًا
Islam is to witness that there is no God but Allah and Muhammad is the Messenger of Allah, to establish prayer, to give the alms, to fast the month of Ramadan, and to perform pilgrimage to the House if you are capable of travel.
The man said, “You have spoken rightly,” and we were amazed at him asking him and saying that he had spoken rightly. Then he said, “Tell me about faith.” The Prophet said:
أَنْ تُؤْمِنَ بِاللَّهِ وَمَلَائِكَتِهِ وَكُتُبِهِ وَرُسُلِهِ وَالْيَوْمِ الْآخِرِ وَتُؤْمِنَ بِالْقَدَرِ خَيْرِهِ وَشَرِّهِ
Faith is to believe in Allah, His angels, His books, His messengers, and the Last Day, and to believe in the providence (al-qadr) of both good and evil.
The man said, “You have spoken rightly. Then tell me about excellence.” The Prophet said:
أَنْ تَعْبُدَ اللَّهَ كَأَنَّكَ تَرَاهُ فَإِنْ لَمْ تَكُنْ تَرَاهُ فَإِنَّهُ يَرَاكَ
Excellence (al-Ihsan) is to worship Allah as if you see Him, for, if you do not see Him, He verily sees you.
The man said, “Then tell me about the Hour.” The Prophet said:
مَا الْمَسْئُولُ عَنْهَا بِأَعْلَمَ مِنْ السَّائِلِ
The one who is asked does not know more than the one asking.
The man said, “Then tell me about its signs.” The Prophet said:
أَنْ تَلِدَ الْأَمَةُ رَبَّتَهَا وَأَنْ تَرَى الْحُفَاةَ الْعُرَاةَ الْعَالَةَ رِعَاءَ الشَّاءِ يَتَطَاوَلُونَ فِي الْبُنْيَانِ
When the slave girl gives birth to her master, when the naked and barefooted will become chiefs of the people, and when the shepherds of black camels will exult themselves in constructing building.
Then he left and I stayed for a time. Then the Prophet said:
يَا عُمَرُ أَتَدْرِي مَنْ السَّائِلُ
O Umar, do you know who the questioner was?
I said, “Allah and His messenger know best.” He said:
فَإِنَّهُ جِبْرِيلُ أَتَاكُمْ يُعَلِّمُكُمْ دِينَكُمْ
He was Gabriel, who came to teach you your religion.
Source: Sahih Muslim 4,