Quran 7:94 — The Purgatory (Al-A'araf)
Whenever we sent a prophet to any community, we afflicted its people with adversity and hardship, that they may implore.
[7:93] He turned away from them, saying, "O my people, I have delivered to you the messages of my Lord, and I have advised you. How can I grieve over disbelieving people."
[7:95] 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.