Sahih Bukhari
Sahih Bukhari Volume 008, Book 074, Hadith Number 302.
Hadith Section/Book: Sahih Bukhari Sahih Bukhari Book 74. Asking Permission
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.