Sahih Bukhari Volume 008, Book 074, Hadith Number 302.

Narated By Abbas bin Tamim : I saw Allah's Apostle lying on his back in the mosque and putting one of his legs over the other.