Is it permissible to perform prayer while lying down (mustalqiyan) due to illness?
Chapter on the Times When Prayer is Prohibited
Al-Mughni
Book of Prayer
Primary text
It is permissible to perform prayer while lying down if medical experts advise it for treatment. This is the view held by Al-Qadi, in قياس (analogy) with the established madhab, and supported by Jabir ibn Zayd, Al-Thawri, and Abu Hanifa. The justification rests on the precedent set by the Prophet, peace be upon him, who prayed sitting when his right side was wounded, indicating permissibility when there is hardship or fear of harm. Furthermore, dispensation is granted for foregoing Wudu (ablution) to protect wealth, and foregoing fasting due to illness, and reports indicate permission to pray on a mount due to fear of mud damage, and to omit Jumu'ah and congregational prayers for self-preservation from mud, and to follow an Imam praying seated, or to pray on one's side or while lying down during times of fear of the enemy. The perceived harm of losing sight does not lessen the validity of these established permissions.
Supporting text
The view of those who disliked it includes 'Ubayd Allah ibn 'Abd Allah ibn 'Utbah and Abu Wa'il. Malik and Al-Awza'i held that it is impermissible, citing the report concerning Ibn Abbas when his sight failed. He was advised to delay prayer for seven days to receive treatment, but upon seeking counsel from Aisha, Abu Hurayrah, and others among the Companions, they advised him regarding his prayer if he died during those days, leading him to abandon the eye treatment.