Originally posted by: MaaneetDeewangi
Prayer is obligatory for the Muslim whatever state he/she is in, so long as he remains of sound mind. If a person is sick but is able to pray standing, then he should pray standing; if he cannot, then he should pray sitting; if he is unable to do that, then he should pray lying on his side; if he cannot do that then he should pray lying on his back, because of the report narrated by al-Bukhaari (1066) from 'Imraan ibn Husayn, who said: I had haemorrhoids, so I asked the Prophet (blessings and peace of Allah be upon him) and he said: "Pray standing, and if you cannot, then (pray) sitting, and if you cannot then (pray) on your side."
You can read more about the status of prayer in Islam on this website (If interested) http://islamqa.info/en/33694
Hope I helped 😊