When the Messenger of Allah ﷺ wanted to sleep, he would place his right hand under his right cheek and say three times, "Allah, protect me from Your punishment on the Day You raise Your servants." His right hand was for his food and drink, and his left hand was for the rest of his needs.
حدثنا عبد الصمد حدثنا أبان يعني ابن يزيد العطار قال حدثنا عاصم عن معبد بن خالد عن سواء الخزاعي
أن رسول الله ﷺ كان إذا أراد أن يرقد وضع يده اليمنى تحت خده الأيمن ثم قال اللهم قني عذابك يوم تبعث عبادك ثلاث مرار وكانت يده اليمنى لطعامه وشرابه وكانت يده اليسرى لسائر حاجته