I spent the night at the home of my maternal aunt Maymuna bint Harith, and the Messenger of Allah ﷺ also spent the night there. I watched him get up to relieve himself. Then he went to the waterskin, untied its strap, and performed a light ablution, somewhere between a full and a minimal one. He returned to his bed and slept.Later, he rose again, went to the waterskin, untied its strap, and performed a complete ablution this time. Then he stood up to pray, and during his prostration he said, "O Allah, place light in my heart, light in my hearing, light in my sight, light beneath me, light above me, light on my right, light on my left, light before me, light behind me, and grant me abundant light."Then he slept until I could hear him breathing deeply, until Bilal came and woke him for the prayer.
أخبرنا هناد بن السري عن أبي الأحوص عن سعيد بن مسروق عن سلمة بن كهيل عن أبي رشدين وهو كريب
بت عند خالتي ميمونة بنت الحارث وبات رسول الله ﷺ عندها فرأيته قام لحاجته فأتى القربة فحل شناقها ثم توضأ وضوءا بين الوضوءين ثم أتى فراشه فنام ثم قام قومة أخرى فأتى القربة فحل شناقها ثم توضأ وضوءا هو الوضوء ثم قام يصلي وكان يقول في سجوده اللهم اجعل في قلبي نورا واجعل في سمعي نورا واجعل في بصري نورا واجعل من تحتي نورا واجعل من فوقي نورا وعن يميني نورا وعن يساري نورا واجعل أمامي نورا واجعل خلفي نورا وأعظم لي نورا ثم نام حتى نفخ فأتاه بلال فأيقظه للصلاة
Muslim reported it in Prayer of the Traveler, chapter titled "The Prophet's ﷺ prayer and supplication at night," hadith no. 188/763 from Hannad bin Sari, and Bukhari reported it in Supplications, chapter titled "Supplication upon waking at night," hadith no. 6316, from the hadith of Salama with this wording, and it is also found in Kubra, hadith no. 708.