Abu Hurairah reported,

We stopped to rest at night with the Prophet of Allah ﷺ, and we did not wake up until the sun had risen. The Prophet ﷺ said, "Let every man take hold of his mount's head, for this is a place where Satan came upon us."So we did, then he called for water and performed ablution. He then performed two prostrations. Yaqub said, he then prayed two units. Then the call to prayer was given, and he prayed the morning prayer.

Muslim 1561

Sahih

و حدثني محمد بن حاتم ويعقوب بن إبراهيم الدورقي كلاهما عن يحيى قال ابن حاتم حدثنا يحيى بن سعيد حدثنا يزيد بن كيسان حدثنا أبو حازم

عن أبي هريرة قال

عرسنا مع نبي الله ﷺ فلم نستيقظ حتى طلعت الشمس فقال النبي ﷺ ليأخذ كل رجل برأس راحلته فإن هذا منزل حضرنا فيه الشيطان قال ففعلنا ثم دعا بالماء فتوضأ ثم سجد سجدتين وقال يعقوب ثم صلى سجدتين ثم أقيمت الصلاة فصلى الغداة

مسلم 1561صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Making up missed prayers and the recommendation to hasten in making them up
Numbering
Darussalam 1561
Muslim 1561