that his uncle said, "I saw Allah's Messenger (ﷺ) lying flat (on his back) in the mosque with one leg on the other." Narrated Sa`id bin Al-Musaiyab that `Umar and `Uthman used to do the same.
Sahih al-Bukhari Book 8, Hadith 123