I have mentioned the following verse of the Qur’aan Majeed many times in the past:
وَمَا أَصَـابَكُم مِّنْ مُّصِيْبَةٍ فَبِمَا كَسَبَتْ أَيْدِيْكُمْ وَيَعْفُوْا عَنْ كَثِيْرٍ
Whatever calamity afflicts you is because of that which your hands have earned (evil deeds), and He forgives many (of your sins). (Surah Shura v. 30)
By Allah Ta‘ala, one will be dealt with according to his actions. At times, the result of one’s actions is not seen immediately. However, it does not mean that if one does not see the result of one’s actions immediately, there is no result that is forthcoming. The consequence of one’s actions will definitely be seen sooner or later. Similarly, if we experience some difficulty, the difficulty we experience may not always be due to the apparent cause that we see before us. Sometimes, there is another hidden cause (i.e. our sins) which we don’t consider, whereas this is the actual cause for the difficulty. It is for this reason that you should make istighfaar constantly and make a habit of reciting Aayat-e-Kareemah (لا إله إلا أنت سبحانك إني كنت من الظالمين) in abundance. We should turn to Allah Ta‘ala at all times for He is the only source of help.
(Qutbul Aqtaab Hazrat Sheikhul Hadith Moulana Muhammad Zakariyya (rahmatullahi ‘alaih) pg. 429)