What is the ruling if a person praying on a mount turns away from the Qiblah due to compulsion, sleep, or mistaken belief about the direction of travel?

Chapter on Facing the Qiblah

Al-Mughni

Book of Prayer

Book 3 · Issue 7 · Bab 4

Open in Qurani

Primary text

If the deviation from the Qiblah occurs while overpowered (Maghloob), sleeping, or mistakenly believing the current direction is the direction of travel, the prayer remains valid. The person must return to the direction of travel when the impediment ceases, as this resembles being unable to maintain the Qiblah.

Supporting text

If the impediment persists after its cause has ceased, the prayer is invalidated because maintaining the Qiblah was intentionally abandoned.