Abu Juhayfa reported,

During the journey on which the Messenger of Allah ﷺ and his companions slept until the sun had risen, he said, "You were as dead, and Allah returned your souls to you. Whoever sleeps through a prayer should perform it when he wakes, and whoever forgets a prayer should perform it when he remembers."

Azami 2516

Hasan

عن أبي جحيفة قال

كان رسول الله ﷺ في سفره الذي ناموا فيه حتى طلعت الشمس فقال: إنكم كنتم أمواتا، فرد الله إليكم أرواحكم، فمن نام عن صلاة فليصلها إذا استيقظ، ومن نسي صلاة فليصل إذا ذكر.

الأعظمي 2516حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Forbidden times for prayer
Section
Whoever forgets a prayer should pray it when he remembers it, even if the time is disliked
Numbering
Jami al-Kamil 2516 (2nd edition)
Azami 2516