Imran bin Husayn reported,

I asked the Messenger of Allah ﷺ about a man praying while seated.He said, "Whoever prays standing, that is best. Whoever prays seated receives half the reward of one who prays standing, and whoever prays lying down receives half the reward of one who prays seated."In another narration he said, "I had hemorrhoids, so I asked the Prophet ﷺ about the prayer."He said, "Pray standing. If you cannot, then seated. If you cannot, then on your side."

Azami 3003

Sahih

عن عمران بن حصين وكان مبسورا- قال

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

الأعظمي 3003صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Istikhara prayer, prayer of the sick, prayer on a ship, tasbih prayer, prayer of need, and prayer of desires
Section
Prayer of the sick
Numbering
Jami al-Kamil 3003 (2nd edition)
Azami 3003