Sunan Ibn Majah, Book 5, Hadith 421 (Ibn Majah 1223)
It was narrated that ‘Imran bin Husain said:
“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.’”