The Messenger of Allah ﷺ forbade that a man should lie placing(and according to Qutaibah’s version: “should raise”) one of his legs over the other. Qutaibah’s version adds: When he was lying on his back.
نَهَى رَسُولُ اللَّهِ ﷺ أَنْ يَضَعَ وَقَالَ قُتَيْبَةُ يَرْفَعَ الرَّجُلُ إِحْدَى رِجْلَيْهِ عَلَى الأُخْرَى زَادَ قُتَيْبَةُ وَهُوَ مُسْتَلْقٍ عَلَى ظَهْرِهِ