I see a pattern that whenever a Prophet or a saint demolished places of Idolatory, Shrines, Dargahs etc . Then Allah brings about lasting peace and prosperity.
A recent example from modern history comes to my mind where we can see a connection between KSA demolishing illegal Shrine and the resultant prosperity and peace achieved. On April 21, 1925 the illegal mausoleums and domes at Al-Baqi’ were leveled and soon after in 1938 vast reserves of oil were discovered in the Al-Hasa region of KSA. As you see as the saudi state prospered it become more puritanical Islamically and peace prevailed and a royal decree in 1992 made the king comply with Sharia based on Quran and Sunnah.
Also from the Islamic history we see that prosperity and peace prevailed after Prophet pbuh and Ali R.A ordered leveling of illegal graves:
Ali Ibn Abi Talib said to abul Hayyaj al-Asadi: "Shall I charge you with a duty which the Prophet (salallahu alaihe wa-sallam) charged me with? Destroy every idol or statue and level down every raised grave." [Saheeh Muslim]
Also I found Quran conditionally guarentees rulership on earth provided we purge polytheism:
Allah has promised those among you who believe, and do righteous good deeds, that He will certainly grant them succession to (the present rulers) in the earth, as He granted it to those before them, and that He will grant them the authority to practise their religion, that which He has chosen for them (i.e. Islam). And He will surely give them in exchange a safe security after their fear (provided) they (believers) worship Me and do not associate anything (in worship) with Me. But whoever disbelieved after this, they are the Fasiqûn (rebellious, disobedient to Allah). (An-Nur 24:55)
Are there any concrete examples in the Prophetic stories in Quran and Hadith where peace and prosperity ensued after demolition of places of Idolatory?