"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." (Using translation from Nasāʾī 488)
صَلَّيْنَا مَعَ رَسُولِ اللهِ ﷺ نَحْوَ بَيْتِ الْمَقْدِسِ سِتَّةَ عَشَرَ شَهْرًا أَوْ سَبْعَةَ عَشَرَ شَهْرًا شَكَّ سُفْيَانُ ثُمَّ صُرِفْنَا قِبَلَ الْكَعْبَةِ