Sahih Muslim Book 24, Hadith Number 5239.
Chapter : Permissibility of placing one’s foot upon the other while lying.
‘Abbad b. Tamim reported from his uncle that he saw Allah’s Messenger (may peace be upon him) lying in the mosque and placing his one foot upon the other.