“I suffered from Nasur* and I asked the Prophet (ﷺ) about prayer. He said: ‘Perform prayer standing; if you cannot, then sitting; and if you cannot then while lying on your side.’”
Sunan Ibn Majah Book 5, Hadith 421