[Machine] The Prophet ﷺ was asked about the first mosque that was built for the people. He said, "The Sacred Mosque (in Mecca) and then the Al-Aqsa Mosque (in Jerusalem)." He was asked, "How many years between them?" He said, "Forty years. And wherever the prayer time reaches you, pray there. And then there will be another mosque."
عَنِ النَّبِيِّ ﷺ أَنَّهُ سَأَلَهُ عَنْ أَوَّلِ مَسْجِدٍ وُضِعَ لِلنَّاسِ قَالَ مَسْجِدُ الْحَرامِ ثُمَّ بَيْتُ الْمَقْدِسِ فَسُئِلَ كَمْ بَيْنَهُمَا؟ قَالَ أَرْبَعُونَ عَامًا وَحَيْثُمَا أَدْرَكَتْكَ الصَّلَاةُ فَصَلِّ فَثَمَّ مَسْجِدٌ