What is the obligation for one who can visually perceive the Ka'bah during prayer?
Chapter on Facing the Qiblah
Al-Mughni
Book of Prayer
Primary text
If one can visually perceive the Ka'bah, the obligation is to pray directly towards its exact self (Ain). There is no known disagreement on this matter. If any part of the worshipper falls outside the perpendicular line (musāmat) of the Ka'bah, the prayer is invalid, according to Ibn Aqil.