The Prophet (saas) Advised His People to Take a Lesson from the Demise of Those Who Had Gone Before
All through history, societies that have opposed Allah, his messengers and religion, have been destroyed by great disasters, in such a way as to leave no trace of them. The end of such societies must be a lesson for all people, to turn to Allah and fear His wrath.
Say: "Travel about the earth and see the final fate of the evildoers." (Surat an-Naml: 69)
Say: "Travel about the earth and see the final fate of the deniers." (Surat al-An'am: 11)
Say: "Travel about the earth and see the final fate of those before. Most of them were idolaters." (Surat ar-Rum: 42)
One thing the Prophet (saas) said in the light of the above verses was "Rejoice and hope for what will please you! By Allah, I am not afraid of your poverty but I am afraid that you will lead a life of luxury as past nations did, whereupon you will compete with each other for it, as they competed for it, and it will destroy you as it destroyed them." 44by which he warned people of the disasters that had come upon others because of their indulgence.
We destroyed the cities round about you and have variegated the Signs so that hopefully they will turn back.
(Surat al-Ahqaf: 27)