Quran 7:95 — The Purgatory (Al-A'araf)
Then we substituted peace and prosperity in place of that hardship. But alas, they turned heedless and said, "It was our parents who experienced that hardship before prosperity." Consequently, we punished them suddenly when they least expected.
[7:94] Whenever we sent a prophet to any community, we afflicted its people with adversity and hardship, that they may implore.
[7:96] Had the people of those communities believed and turned righteous, we would have showered them with blessings from the heaven and the earth. Since they decided to disbelieve, we punished them for what they earned.