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:52:47

And indeed, for those who have wronged is a punishment before that, but most of them do not know.  

And assuredly for those who do wrong, by their ˹persistence in˺ disbelief, there is a chastisement beyond that, in this world, before their death — thus they were punished with famine and drought for seven years, and with being killed on the day of Badr; but most of them do not know, that the chastisement will befall them.
القرآن:٥٢:٤٧

وَإِنَّ لِلَّذِينَ ظَلَمُوا عَذَابًا دُونَ ذَٰلِكَ وَلَٰكِنَّ أَكْثَرَهُمْ لَا يَعْلَمُونَ  

{وإنَّ للذين ظلموا} بكفرهم {عذابا دون ذلك} في الدنيا قبل موتهم فعذبوا بالجوع والقحط سبع سنين وبالقتل يوم بدر {ولكن أكثرهم لا يعلمون} أن العذاب ينزل بهم.