I saw the Prophet (ﷺ) lying-down in the mosque and placing one leg on the other.

Sahih al-Bukhari Book 77, Hadith 185