Al-Masjid al-Haram:
The honour of building the Masjid al-Aqsa and the Prophet’s Mosque, and every one of the three, belongs to four prophets (peace be upon them), who called the people to travel to these mosques for worship. Apart from these mosques, no mosque was built to which travelling for worship was commanded. Remember also that there were other mosques besides these in which the prophets (peace be upon them) offered prayers, but travelling to them was not commanded, just as Ibrahim (peace be upon him) used to pray at places other than the House of Allah as well, yet he called the people only to the Hajj of the House of Allah.
None of the prophets called people to travel to his grave, or his house, or any other sacred place; rather, he called them to worship Allah alone, who has no partner. After mentioning the prophets of firm resolve, Allah the Exalted says:
ذَٰلِكَ هُدَى اللَّهِ يَهْدِي بِهِ مَن يَشَاءُ مِنْ عِبَادِهِ ۚ وَلَوْ أَشْرَكُوا لَحَبِطَ عَنْهُم مَّا كَانُوا يَعْمَلُونَ ﴿٨٨﴾ أُولَٰئِكَ الَّذِينَ آتَيْنَاهُمُ الْكِتَابَ وَالْحُكْمَ وَالنُّبُوَّةَ ۚ فَإِن يَكْفُرْ بِهَا هَٰؤُلَاءِ فَقَدْ وَكَّلْنَا بِهَا قَوْمًا لَّيْسُوا بِهَا بِكَافِرِينَ ﴿٨٩﴾ أُولَٰئِكَ الَّذِينَ هَدَى اللَّهُ ۖ فَبِهُدَاهُمُ اقْتَدِهْ
“That is the guidance of Allah, by which He guides whom He wills of His servants. But if they had associated others with Him in worship, all that they used to do would have been lost for them. Those were the ones to whom We gave the Book and the judgement and prophethood. So if these people disbelieve in it, We have entrusted it to another people who are not disbelievers in it. O Prophet! Those are the ones whom Allah guided, so follow their way.”
In light of the above evidence, it is established that it is not permissible to move these three mosques from their original place and build them elsewhere. As for the other mosques, their virtue is accepted in the sense that they are houses of Allah in which He is worshipped, and this is a common quality found in these mosques and in other mosques. There is also a difference among these three mosques, in that in some more worship is performed and in others less, or one mosque is older than another. This difference exists among other mosques too. If travelling had been prescribed (sunnah) on this basis, then travelling to ordinary mosques would also have been commanded.