Sahih al-Bukhari 6287
Sahih al-Bukhari · Book 79: Asking Permission · Al-Istilqa' (lying flat)
Narrated the uncle of `Abbas bin Tamim:
حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ اللَّهِ ، حَدَّثَنَا سُفْيَانُ ، حَدَّثَنَا الزُّهْرِيُّ ، قَالَ أَخْبَرَنِي عَبَّادُ بْنُ تَمِيمٍ ، عَنْ عَمِّهِ ، قَالَ رَأَيْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم فِي الْمَسْجِدِ مُسْتَلْقِيًا، وَاضِعًا إِحْدَى رِجْلَيْهِ عَلَى الأُخْرَى.
I saw Allah's Messenger (ﷺ) lying on his back in the mosque and putting one of his legs over the other.