Al-Ilmam bi-Ahadith al-Ahkam 299
وَعند مُسلم، فِي رِوَايَة زيد بن ثَابت: " أَن النّبيّ ﷺ اتخذ حجرَة فِي الْمَسْجِد من حَصِير فَصَلى فِيهَا رَسُول الله ﷺ ليَالِي حَتَّى اجْتمع النَّاس إِلَيْهِ، ثمَّ فقدوا صَوت رَسُول الله ﷺ فظنوا أَنه قد نَام … الحَدِيث ". (وَأَصله مُتَّفق عَلَيْهِ) .
And with Muslim, in the narration of Zayd ibn Thabit: "The Prophet ﷺ made an enclosure of matting in the mosque, and the Messenger of Allah ﷺ prayed in it for some nights until the people gathered to him. Then they missed the voice of the Messenger of Allah ﷺ and thought that he had fallen asleep..." — the hadith. (And its basis is agreed upon.)