(2) باب تَحْوِيلِ الْقِبْلَةِ مِنَ الْقُدْسِ إِلَى الْكَعْبَةِ
Abu Ishaq reported:
I heard al-Bara' saying: We prayed with the Messenger of Allah (ﷺ) (with our faces) towards Bait-ul-Maqdis for sixteen months or seventeen months. Then we were made to change (our direction) towards the Ka'ba.
Reference: Sahih Muslim 525 b
In-book reference: Book 5, Hadith 17
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1072