[Machine] The Prophet ﷺ and those with him prayed towards the direction of Jerusalem for about sixteen months, then the qibla (direction of prayer) was changed.
«صَلَّى النَّبِيُّ ﷺ وَمَنْ مَعَهُ نَحْوَ بَيْتِ الْمَقْدِسِ سِتَّةَ عَشَرَ شَهْرًا ثُمَّ حُوِّلَتِ الْقِبْلَةُ بَعْدُ»