Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:3171Abū ʿAmr al-Adīb > Abū Bakr al-Ismāʿīlī > Manīʿī > Abū Bakr ʿAbdullāh b. Muḥammad b. Abū Shaybah And Shujāʿ b. Makhlad > Hushaym b. Bashīr > Ḥuṣayn > ʿAbdullāh b. Abū Qatādah > Abīh Abū Qatādah

[Machine] We accompanied the Messenger of Allah ﷺ while we were on a journey one night, and we said, "O Messenger of Allah, if only you would marry us." So, he mentioned the Hadith about prayer in their sleep and the Messenger of Allah ﷺ said, "Indeed, Allah takes your souls when He wills, and returns them when He wills. Then, He orders them to fulfill their needs and perform ablution, and the sun rises, so he prays with them."  

البيهقي:٣١٧١أَخْبَرَنَا أَبُو عَمْرٍو الْأَدِيبُ أنبأ أَبُو بَكْرٍ الْإِسْمَاعِيلِيُّ أَخْبَرَنِي مَنِيعِيُّ ثنا أَبُو بَكْرٍ عَبْدُ اللهِ بْنُ مُحَمَّدِ بْنِ أَبِي شَيْبَةَ وَشُجَاعُ بْنُ مَخْلَدٍ قَالَا ثنا هُشَيْمُ بْنُ بَشِيرٍ أنبأ حُصَيْنٌ ثنا عَبْدُ اللهِ بْنُ أَبِي قَتَادَةَ عَنْ أَبِيهِ أَبِي قَتَادَةَ قَالَ

سَرَيْنَا مَعَ رَسُولِ اللهِ ﷺ وَنَحْنُ فِي سَفَرٍ ذَاتَ لَيْلَةٍ فَقُلْنَا يَا رَسُولَ اللهِ لَوْ عَرَّسْتَ بِنَا فَذَكَرَ الْحَدِيثَ فِي نَوْمِهِمْ عَنِ الصَّلَاةِ فَقَالَ رَسُولُ اللهِ ﷺ إِنَّ اللهَ قَبَضَ أَرْوَاحَكُمْ حِينَ شَاءَ وَرَدَّهَا عَلَيْكُمْ حِينَ شَاءَ ثُمَّ أَمَرَهُمْ فَانْتَشَرُوا لِحَاجَتِهِمْ وَتَوَضَّئُوا وَارْتَفَعَتِ الشَّمْسُ فَصَلَّى بِهِمْ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ مُحَمَّدِ بْنِ سَلَّامٍ عَنْ هُشَيْمٍ