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.
tabarani:12498Muḥammad b. ʿUthmān b. Abū Shaybah > Muḥammad b. ʿAbdullāh b. Numayr > Yūnus b. Bukayr > Muḥammad b. Isḥāq > Muḥammad b. Abū Muḥammad > Saʿīd b. Jubayr > Ibn ʿAbbās

[Machine] "The Messenger of Allah ﷺ was diverted from Sham (Greater Syria) to Qibla (Kaaba), and he performed Salah toward the Kaaba in Rajab, during the first seventeen months of his stay in Madinah."  

الطبراني:١٢٤٩٨حَدَّثَنَا مُحَمَّدُ بْنُ عُثْمَانَ بْنِ أَبِي شَيْبَةَ ثنا مُحَمَّدُ بْنُ عَبْدِ اللهِ بْنِ نُمَيْرٍ ثنا يُونُسُ بْنُ بُكَيْرٍ عَنْ مُحَمَّدِ بْنِ إِسْحَاقَ حَدَّثَنِي مُحَمَّدُ بْنُ أَبِي مُحَمَّدٍ عَنْ سَعِيدِ بْنِ جُبَيْرٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

«صُرِفَ رَسُولُ اللهِ ﷺ مِنَ الشَّامِ إِلَى الْقِبْلَةِ فَصَلَّى إِلَى الْكَعْبَةِ فِي رَجَبٍ عَلَى رَأْسِ سَبْعَةَ عَشَرَ شَهْرًا مِنْ مَقْدَمِهِ الْمَدِينَةَ»