The Prophet ﷺ got up at night, entered the privy, relieved himself, then washed his face and hands and went back to sleep.Abu Bakr bin Khallad al-Bahili narrated to us, Yahya bin Saeed narrated to us, Shuba narrated to us, Salama bin Kuhayl informed us, Bukayr informed us from Kurayb, who said, "I met Kurayb, and he narrated to me from Ibn Abbas, from the Prophet ﷺ," and he mentioned something similar.
حدثنا علي بن محمد حدثنا وكيع سمعت سفيان الثوري يقول لزائدة بن قدامة يا أبا الصلت هل سمعت في هذا شيئا فقال حدثنا سلمة بن كهيل عن كريب
أن النبي ﷺ قام من الليل فدخل الخلاء فقضى حاجته ثم غسل وجهه وكفيه ثم نام حدثنا أبو بكر بن خلاد الباهلي حدثنا يحيى بن سعيد حدثنا شعبة أنبأنا سلمة بن كهيل أنبأنا بكير عن كريب قال فلقيت كريبا فحدثني عن ابن عباس عن النبي ﷺ فذكر نحوه
Bukhari narrated it in the Book of Supplications, chapter "Supplication upon waking at night," hadith no. 6316, and Muslim in the Book of the Prayer of Travelers, chapter "The prayer and supplication of the Prophet ﷺ at night," hadith no. 763, from the hadith of Sufyan Thawri, at greater length.