The Qur’an gave the news of the conquest of Makka two years before
It was only six years after the Prophet, upon him be peace and blessings, had emigrated to Madina that he left for Makka for a minor pilgrimage. However, the Makkans stopped him at Hudaybiya and a peaceful treaty was concluded after negotiations. Some articles of the Treaty were objected to by the believers but the Qur’anic verses which were revealed following the conclusion of the Treaty described it as a manifest victory and gave the believers the decisive glad tiding, which is as follows:
In truth, God fulfilled the vision of His Messenger: You will surely enter the Sacred Mosque, if God wills, in full security; you will have your heads shaved, your hair shortened, and you will have nothing to fear. He knew what you knew not, and He granted, besides this, a near victory. He it is Who has sent His Messenger with guidance and the religion of truth, that He may cause it to prevail over all religion. God is enough for a witness. (al-Fath, 48.27–8)
One year later the Muslims performed the minor pilgrimage and the year after they conquered Makka. Also, Islam has been prevalent over all other religions for centuries and, if God wills, it will have a world-wide superiority in a near future.