Jabir bin Abdullah reported,

The Messenger of Allah ﷺ forbade wrapping oneself in the manner of Samma, sitting with one's garment drawn up around the knees in a single piece of cloth, and a man placing one leg over the other while lying flat on his back.

Tirmidhi 2767

Sahih

حدثنا قتيبة حدثنا الليث عن أبي الزبير

عن جابر

أن رسول الله ﷺ نهى عن اشتمال الصماء والاحتباء في ثوب واحد وأن يرفع الرجل إحدى رجليه على الأخرى وهو مستلق على ظهره

الترمذي 2767صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Manners
Chapter
Dislike of placing one leg over the other while lying on one's back
Numbering
Darussalam 2767
Tirmidhi 2767