Fiqh-us-Sunnah Volume 1, Purification and Prayer, Fiqh 1.114A.

Section : Facing the Qiblah.

All scholars agree that one must face the Masjid al-Haram (in Makkah) during every prayer. Says Allah in the Qur’an, “Direct your face to the Masjid al-Haram. Wherever you may be, turn your faces to it” (al-Baqarah 144).

Reported al-Barra’, “We prayed with the Messenger of Allah, upon whom be peace, for about sixteen or seventeen months towards Jerusalem, after which time he turned towards the Ka ‘bah.” (Related by Muslim.)