Abdullah bin Umar reported,

During the lifetime of the Messenger of Allah ﷺ, whenever a man had a dream he would relate it to the Messenger of Allah ﷺ. I longed to have a dream that I could relate to the Messenger of Allah ﷺ. I was a young lad at the time, and I used to sleep in the mosque during the era of the Messenger of Allah ﷺ.I saw in a dream that two angels seized me and took me to the Fire. It was constructed like a well with curved sides, and it had two horns. Inside it were people I recognized, so I began to say, "I seek refuge with Allah from the Fire."Then another angel met us and said to me, "Do not be afraid."I related the dream to Hafsah, and Hafsah related it to the Messenger of Allah ﷺ. He said, "What an excellent man Abdullah is, if only he prayed during the night."After that, he did not sleep at night except for a little.

Azami 2674

Sahih

عن ابن عمر قال

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

الأعظمي 2674صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Minor actions do not invalidate the prayer
Section
Encouragement to pray at night
Numbering
Jami al-Kamil 2674 (2nd edition)
Azami 2674