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:588al-Walīd > Abū ʿAmr > Ibn Jurayj > ʿAṭāʾ And Mujāhid

[Machine] Ata and Mujahid said, "Whoever falls asleep while in the position of bowing or prostration should perform ablution."  

البيهقي:٥٨٨وَبِإِسْنَادِهِ قَالَ نا الْوَلِيدُ قَالَ وَأَخْبَرَنِي أَبُو عَمْرٍو عَنِ ابْنِ جُرَيْجٍ

عَنْ عَطَاءٍ وَمُجَاهِدٍ قَالَا مَنْ نَامَ رَاكِعًا أَوْ سَاجِدًا تَوَضَّأَ