Abu Qatada reported,

When they slept past the prayer, the Prophet ﷺ said, "Allah took your souls when He willed and returned them when He willed."So they attended to their needs and made wudu until the sun rose and grew bright. Then he stood and prayed.

Bukhari 7471

Sahih

حدثنا ابن سلام أخبرنا هشيم عن حصين

عن عبد الله بن أبي قتادة عن أبيه

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

البخاري 7471صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
Will and volition
Numbering
Darussalam 7471
Bukhari 7471