Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates: The Prophet (peace and blessings be upon him) was facing Bayt al-Maqdis while praying the Zuhr prayer, and during the prayer he turned his face towards the Ka'bah. Then the foolish among the people said (as the Qur'an mentions in these words): "What has turned them away from their qiblah which they used to face?" (Allamah al-Haythami says:) I say: The hadith of Sayyiduna Anas (may Allah be pleased with him) is in the Sahih, but there it is mentioned that this happened in the Fajr prayer, whereas here it is mentioned that it happened in the Zuhr prayer.
Al-Bazzar recorded it; its chain contains Uthman bin Sa'id, whom Yahya al-Qattan, Yahya bin Ma'in and Abu Zur'ah declared da'if (weak), while the hafiz Abu Nu'aym declared him thiqah (trustworthy). Abu Hatim said: "He is a shaykh."
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 1970