عَنِ ابْنِ عَبَّاسِ رَضِيَ اللَّهُ عَنْهُمَا قَالَ: صَلَّى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ وَأَصْحَابُهُ إِلَى بَيْتِ الْمَقْدِسِ سِتَّةَ عَشَرَ شَهْرًا ثُمَّ صُرِفَتِ الْقِبْلَةُ
Sayyiduna Abdullah bin Abbas (may Allah be pleased with him) says that the Messenger of Allah (peace and blessings be upon him) and his companions used to face Bayt al-Maqdis and pray for sixteen months, then the Qiblah was changed.