Sahih al-Bukhari 5969
Sahih al-Bukhari · Book 77: Dress · To put one leg on the other while lying down
Narrated `Abbad bin Tamim's uncle:
حَدَّثَنَا أَحْمَدُ بْنُ يُونُسَ، حَدَّثَنَا إِبْرَاهِيمُ بْنُ سَعْدٍ، حَدَّثَنَا ابْنُ شِهَابٍ، عَنْ عَبَّادِ بْنِ تَمِيمٍ، عَنْ عَمِّهِ، أَنَّهُ أَبْصَرَ النَّبِيَّ صلى الله عليه وسلم يَضْطَجِعُ فِي الْمَسْجِدِ، رَافِعًا إِحْدَى رِجْلَيْهِ عَلَى الأُخْرَى.
I saw the Prophet (ﷺ) lying-down in the mosque and placing one leg on the other.