Imran bin Husayn reported,

I had a fistula, so I asked the Prophet ﷺ about prayer. He said, "Pray standing. If you cannot, then sitting. If you cannot, then on your side."

Ibn Majah 1223

Sahih

حدثنا علي بن محمد حدثنا وكيع عن إبراهيم بن طهمان عن حسين المعلم عن ابن بريدة

عن عمران بن حصين قال

كان بي الناصور فسألت النبي ﷺ عن الصلاة فقال صل قائما فإن لم تستطع فقاعدا فإن لم تستطع فعلى جنب

ابن ماجه 1223صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Prayer of the sick
Numbering
Darussalam 1223
Ibn Majah 1223