Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:24:14

And if it had not been for the favor of Allah upon you and His mercy in this world and the Hereafter, you would have been touched for that ˹lie˺ in which you were involved by a great punishment  

And were it not for God’s bounty to you and His mercy in the life of this world and the Hereafter there would have befallen you, for what you, O band ˹of accusers˺, engaged in, ˹for˺ what you indulged in, an awful chastisement, in the Hereafter;
القرآن:٢٤:١٤

وَلَوْلَا فَضْلُ اللَّهِ عَلَيْكُمْ وَرَحْمَتُهُ فِي الدُّنْيَا وَالْآخِرَةِ لَمَسَّكُمْ فِي مَا أَفَضْتُمْ فِيهِ عَذَابٌ عَظِيمٌ  

{ولولا فضل الله عليكم ورحمته في الدنيا والآخرة لمسكم فيما أفضتم} أيها العصبة أي خضتم {فيه عذاب عظيم} في الآخرة.

See similar narrations below:

Collected by Ṭabarānī
tabarani:19590Bakr b. Sahl

[Machine] "From Ibn Abbas, 'And if it were not for the favor of Allah upon you and His mercy in the world and the Hereafter, He would have seized you for what you have put forth.' He means, 'If it were not for what Allah has bestowed upon you and what He has concealed for you.' 'He would have touched you for what you have put forth.' He means, 'He would have punished you severely.' 'He wants nothing but falsehood.' 'A great punishment.' 'He wants no interruption for Him.'"  

الطبراني:١٩٥٩٠حَدَّثَنَا بَكْرُ بْنُ سَهْلٍ ثنا عَبْدُ الْغَنِيِّ بْنُ سَعِيدٍ الثَّقَفِيُّ حَدَّثَنَا مُوسَى بْنُ عَبْدِ الرَّحْمَنِ الصَّنْعَانِيُّ عَنِ ابْنِ جُرَيْجٍ عَنْ عَطَاءٍ عَنِ ابْنِ عَبَّاسٍ وَعَنْ مُقَاتِلِ بْنِ سُلَيْمَانَ عَنِ الضَّحَّاكِ بْنِ مُزَاحِمٍ

عَنِ ابْنِ عَبَّاسٍ {وَلَوْلَا فَضْلُ اللهِ عَلَيْكُمْ وَرَحْمَتُهُ فِي الدُّنْيَا وَالْآخِرَةِ} «يُرِيدُ فَلَوْلَا مَا تَفْضَلَّ اللهُ بِهِ عَلَيْكُمْ وَسَتَرَكُمْ» {لَمَسَّكُمْ فِيمَا أَفَضْتُمْ فِيهِ} «يُرِيدُ مِنَ الْكَذِبِ» {عَذَابٌ عَظِيمٌ} «يُرِيدُ لَا انْقِطَاعَ لَهُ»