Umar bin Khattab reported,

One day, while we were sitting with the Messenger of Allah ﷺ, a man suddenly appeared before us. His clothes were intensely white and his hair intensely black. No trace of travel could be seen on him, yet none of us recognized him. He came up and sat down before the Prophet ﷺ, pressing his knees against the Prophet's knees and placing his palms on the Prophet's thighs.He said, "Muhammad, tell me about Islam."The Messenger of Allah ﷺ replied, "Islam is to testify that there is no god but Allah and that Muhammad is the Messenger of Allah, to establish the prayer, to give the zakat, to fast Ramadan, and to perform the pilgrimage to the House if you are able to find a way."The man said, "You have spoken the truth."We were astonished at him, questioning the Prophet and then confirming his answers.Then he said, "Tell me about iman."The Prophet replied, "It is to believe in Allah, His angels, His books, His messengers, and the Last Day, and to believe in divine decree, both its good and its evil."The man said, "You have spoken the truth. Now tell me about ihsan."The Prophet said, "It is to worship Allah as though you see Him, for if you do not see Him, surely He sees you."The man said, "Tell me about the Hour."The Prophet replied, "The one questioned about it knows no more than the questioner."The man said, "Then tell me about its signs."The Prophet said, "That the slave-girl will give birth to her mistress, and that you will see the barefoot, the naked, the destitute shepherds of sheep competing in constructing tall buildings."Then the man departed, and I remained for a while. Afterwards the Prophet said to me, "Umar, do you know who the questioner was?"I said, "Allah and His Messenger know best."He said, "That was Jibreel. He came to teach you your religion."

Azami 23

Sahih

عن عمر بن الخطاب قال

بينما نحن عند رسول الله ﷺ ذات يوم إذ طلع علينا رجل شديد بياض الثياب شديد سواد الشعر، لا يرى عليه أثر السفر، ولا يعرفه منا أحد، حتى جلس إلى النبي ﷺ فأسند ركبتيه إلى ركبتيه، ووضع كفيه على فخذيه، وقال: يا محمد أخبرني عن الإسلام، فقال رسول الله ﷺ: الإسلام أن تشهد أن لا إله إلا الله وأن محمدا رسول الله، وتقيم الصلاة، وتؤتي الزكاة، وتصوم رمضان، وتحج البيت إن استطعت إليه سبيلا. قال: صدقت، قال: فعجبنا له يسأله ويصدقه. قال: فأخبرني عن الإيمان، قال: أن تؤمن بالله، وملائكته، وكتبه، ورسله، واليوم الآخر وتؤمن بالقدر خيره وشره، قال: صدقت، قال: فأخبرني عن الإحسان، قال: أن تعبد الله كأنك تراه فإن لم تكن تراه فإنه يراك. قال: فأخبرني عن الساعة، قال: ما المسئول عنها بأعلم من السائل، قال: فأخبرني عن أماراتها، قال: أن تلد الأمة ربتها، وأن ترى الحفاة العراة العالة رعاء الشاء يتطاولون في البنيان، قال: ثم انطلق فلبثت مليا، ثم قال لي: يا عمر أتدري من السائل؟ قلت: الله ورسوله أعلم، قال: فإنه جبريل أتاكم يعلمكم دينكم.

الأعظمي 23صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Qualities of faith
Section
Jibreel's questions about faith, Islam, and Ihsan
Numbering
Jami al-Kamil 23 (2nd edition)
Azami 23