‘Abbad bin Tamim narrates from his uncle (Sayyiduna ‘Abdullah bin Zayd, may Allah be pleased with him) that he said: I saw the Messenger of Allah ﷺ lying on his back in the mosque with one leg placed over the other.
Hadith Referenceالسنن المأثورة / باب ما جاء في حضور النساء مساجد الجماعة / 181
Hadith Takhrijصحیح بخاری، الاستئذان باب ،الاستلقا رقم : 6287، صحیح مسلم ،اللباس، باب فى اباحة الاستلقاء .... الخ، رقم : 2100 ۔