The Messenger of Allah ﷺ said, "None of you should lie on his back and then place one leg over the other."
أن رسول الله ﷺ قال: لا يستلقين أحدكم، ثم يضع إحدى رجليه على الأخرى.
Muslim narrated it in the Book of Clothing and Adornment (2099/74) through Ubaydullah bin Abu Akhnas, from Abu Zubayr, from Jabir bin Abdullah, and he related it.Ibn Jurayj also narrated it, saying, Abu Zubayr told me that he heard Jabir bin Abdullah relating that the Prophet ﷺ said, "Do not walk in a single sandal, do not sit hugging your knees wrapped in a single garment, do not eat with your left hand, do not wrap yourself in a single garment leaving no opening for your arms, and do not place one of your legs over the other while lying on your back."He also narrated it from the hadith of Layth, from Abu Zubayr, from Jabir, and in it, "and that a man raise one of his legs over the other while lying flat on his back."