Facing the qibla alone suffices even if one rejects the Messenger’s teachings.

Ahl al-Qibla, Sin and Faith, the Essence of Faith and Degrees of Believers