Whenever the Messenger of Allah ﷺ intended to sleep, he would perform ablution as he did for prayer.
حدثنا بهلول بن حكيم القرقساني قال حدثنا الأوزاعي عن الزهري عن عروة بن الزبير
كان رسول الله ﷺ إذا أراد أن ينام توضأ وضوءه للصلاة
Its isnad is sahih, mentioned previously at 23965.