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.
Sunan Abi Dawud Book 43, Hadith 93