It is narrated from Sayyiduna Mu'adh bin Jabal (may Allah be pleased with him) that "when the Prophet (peace and blessings be upon him) came to Madinah, he (peace and blessings be upon him) prayed facing Bayt al-Maqdis for seventeen months. Then this blessed verse was revealed: 'We have certainly seen the turning of your face towards the heaven, so We will surely turn you to a qiblah with which you will be pleased' to the end of the verse. So Allah Almighty turned his (peace and blessings be upon him) blessed face towards the Ka'bah." All the narrators of the chain of this narration are thiqat (trustworthy), except that al-Mas'udi (whose name is Abd al-Rahman bin Abdullah bin Utbah bin Abdullah bin Mas'ud, and who is the brother of Abu Umays) suffered confusion (ikhtilat) at the end of his life, and it has also been said that Imam Abu Dawud al-Tayalisi heard from him after his memory had deteriorated. This is the statement of Salm bin Qutaybah, as I have explained in detail in the book 'Tabyin Hal al-Mukhtalitin'.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب القبلة وفيه ستر العورة وما يصلى فيه / 1110
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«هذا إسناد رجاله ثقات، إلا أن المسعودي - واسمه عبد الرحمن بن عبد الله بن عتبة بن عبد الله بن مسعود أخو أبي عميس - اختلط بأخرة، وقد قيل: إن أبا داود الطيالسي سمع منه بعدما تغير، قاله سلم بن قتيبة كما أوضحته في تبيين حال المختلطين» «أخرجه سنن أبي داود برقم: 507، وأخرجه مسند أحمد برقم: 21618، وأخرجه فتح الباري برقم: 1816، وأخرجه المستدرك على الصحيحين برقم: 3139، وأخرجه صحيح ابن خزيمة برقم: 383»