Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:3363ʿAbd al-Raḥman > Zāʾidah And ʿAbd al-Ṣamad > Zāʾidah > Simāk > ʿIkrimah > Ibn ʿAbbās

[Machine] The Prophet ﷺ prayed towards the direction of Bayt al-Maqdis. Abdus-Samad said, along with him were sixteen months, then the Qiblah was changed. Abdus-Samad said, then the Qiblah was made towards Bayt al-Maqdis. Muawiyah, meaning Ibn Amr, said, then the Qiblah was changed after that.  

أحمد:٣٣٦٣حَدَّثَنَا عَبْدُ الرَّحْمَنِ عَنْ زَائِدَةَ وَعَبْدُ الصَّمَدِ قَالَ حَدَّثَنَا زَائِدَةُ عَنْ سِمَاكٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ قَالَ

صَلَّى النَّبِيُّ ﷺ نَحْوَ بَيْتِ الْمَقْدِسِ قَالَ عَبْدُ الصَّمَدِ وَمَنْ مَعَهُ سِتَّةَ عَشَرَ شَهْرًا ثُمَّ حُوِّلَتِ الْقِبْلَةُ بَعْدُ قَالَ عَبْدُ الصَّمَدِ ثُمَّ جُعِلَتِ الْقِبْلَةُ نَحْوَ بَيْتِ الْمَقْدِسِ وقَالَ مُعَاوِيَةُ يَعْنِي ابْنَ عَمْرٍو ثُمَّ حُوِّلَتِ الْقِبْلَةُ بَعْدُ