that is because god would never change his favour that he conferred on a people until they changed what was within themselves and that god is allhearing allknowing.
ذلك بأن الله لم يك مغيرا نعمة أنعمها على قوم حتى يغيروا ما بأنفسهم وأن الله سميع عليم