‘Imran ibn Husain (radiallaahu ‘anhu) said, “I was suffering from haemorrhoids (piles), so I asked the Messenger of Allaah (sallallaahu ‘alaihi wa sallam) and he said, Pray standing; if you are not able, then sitting down; if you are not able to do so, then pray lying down. (1)
‘Imraan ibn Husain also said, “I asked him (sallallaahu ‘alaihi wa sallam) about the prayer of a man while sitting, so he said: He who prays standing, that is better; he who prays sitting, his reward is half that of the former. He who prays lying down (and in another narration: reclining), has half the reward of the one who sits. (2) This applies to the sick person, for Anas (radiallaahu ‘anhu) said, “The Messenger of Allaah (sallallaahu ‘alaihi wa sallam) came out to the people while they were praying sitting due to illness, so he said: Verily, the prayer of one who sits is (worth) half of the prayer of the one who stands.19
Once “he (sallallaahu ‘alaihi wa sallam) visited a sick person and saw him praying (leaning) on a pillow, so he took it and cast it aside. So the man took a stick to pray (leaning) on it, but he took it and cast it aside and said: Pray on the ground if you can, but otherwise make movements with your head, making your sujood lower than your rukoo.”20
Source: Book: The Prophet’s Prayer From The Beginning To The End As Though You See It
(1) At-Taareekh as-Sagheer, India.
(2) Juz’ al-Qiraa’ah (“Article on Recitation”), printed.
(3) Abu Daawood (202-275): Sunan, Al-Matba`ah at-Taaziah, 1349.