Allaah (The Most High) said:
إِنَّ اللَّهَ لَا يُغَيِّرُ مَا بِقَوْمٍ حَتَّىٰ يُغَيِّرُوا مَا بِأَنفُسِهِمْ
”Verily! Allah will not change the condition of a people as long as they do not change what is in themselves.”[Ar-Radd: Ayah: 11]
Imaam Ibnul Qayyim (rahimahullaah) said:
The wording of this (ayah) shows that He (Allaah) does not (remove) His blessings which He bestowed upon His slaves until they (move away from) obedience to Him and disobey Him.
[Badaa-I At-Tafseer Al-Jaami Limaa Fassarahu Al-Imaam Ibnu Qayyim Al-Jawziyyah: page: 80: Vol: 2]