Ibn Abbas said: when the Prophet ﷺ turned towards the Kaabah (in prayer), the people asked: Messenger of Allah ﷺ! what will happen with those who died while they prayed with their faces towards Jerusalem ? Allah the Exalted, then revealed: “And never would Allah make your faith of no effect. ”