Language:
كتاب التوحيد
97  
Oneness, Uniqueness of Allah (Tawheed)
(31)
Chapter: (Allah’s) Wish and Will
(31)
باب فِي الْمَشِيئَةِ وَالإِرَادَةِ
Sahih al-Bukhari 7471

Narrated Abu Qatada:

When the people slept till so late that they did not offer the (morning) prayer, the Prophet (ﷺ) said, "Allah captured your souls (made you sleep) when He willed, and returned them (to your bodies) when He willed." So the people got up and went to answer the call of nature, performed ablution, till the sun had risen and it had become white, then the Prophet (ﷺ) got up and offered the prayer.

حَدَّثَنَا ابْنُ سَلاَمٍ، أَخْبَرَنَا هُشَيْمٌ، عَنْ حُصَيْنٍ، عَنْ عَبْدِ اللَّهِ بْنِ أَبِي قَتَادَةَ، عَنْ أَبِيهِ، حِينَ نَامُوا عَنِ الصَّلاَةِ، قَالَ النَّبِيُّ صلى الله عليه وسلم ‏ "‏ إِنَّ اللَّهَ قَبَضَ أَرْوَاحَكُمْ حِينَ شَاءَ، وَرَدَّهَا حِينَ شَاءَ ‏"‏‏.‏ فَقَضَوْا حَوَائِجَهُمْ وَتَوَضَّئُوا إِلَى أَنْ طَلَعَتِ الشَّمْسُ وَابْيَضَّتْ فَقَامَ فَصَلَّى‏.‏
Reference : Sahih al-Bukhari 7471
In-book reference : Book 97, Hadith 97
USC-MSA web (English) reference : Vol. 9, Book 93, Hadith 563
  (deprecated numbering scheme)