Sahih Muslim #525 b
The Book of Mosques and Places of Prayer 5:17
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.