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:14146ʿAlī b. al-Mubārak al-Ṣanʿānī > Ismāʿīl b. Abū Ūways > Kathīr b. ʿAbdullāh al-Muzanī from his father from his grandfather

[Machine] We were with the Messenger of Allah ﷺ when he arrived in Medina. We used to pray towards the direction of the Qibla of Jerusalem for seventeen months.  

الطبراني:١٤١٤٦حَدَّثَنَا عَلِيُّ بْنُ الْمُبَارَكِ الصَّنْعَانِيُّ ثَنَا إِسْمَاعِيلُ بْنُ أَبِي أُوَيْسٍ حَدَّثَنِي كَثِيرُ بْنُ عَبْدِ اللهِ الْمُزَنِيُّ عَنْ أَبِيهِ عَنْ جَدِّهِ قَالَ

«كُنَّا مَعَ رَسُولِ اللهِ ﷺ حِينَ قَدِمَ الْمَدِينَةَ نُصَلِّي نَحْوَ بَيْتِ الْمَقْدِسِ مِنْ سَبْعَةَ عَشَرَ شَهْرًا»