´It was narrated that Al-Bara' said:` "We prayed toward Bait Al-Maqdis (Jerusalem) with the Messenger of Allah (ﷺ) for sixteen or seventeen months - Safwan was not sure - then it was changed to the Qiblah."
Hadith ReferenceSunan an-Nasa'i / The Book of Salah / Hadith: 489
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:متفق عليه