Dalil

Quran As-Sajdah 32:21

وَلَنُذِيقَنَّهُم مِّنَ ٱلۡعَذَابِ ٱلۡأَدۡنَىٰ دُونَ ٱلۡعَذَابِ ٱلۡأَكۡبَرِ لَعَلَّهُمۡ يَرۡجِعُونَ

Translation

And We will surely let them taste the nearer punishment short of the greater punishment that perhaps they will return [i.e., repent].