The Messenger of Allah (ﷺ) used to pray eleven rak'ahs (at night, observing the witr with one rak'ahs). When he finished it (the prayer), he would lie down on his right side.
Sunan Abi Dawud Book 5, Hadith 86