All this is because Allah is not the one who may change a favour He has conferred on a people unless they change their own condition, and that Allah is All-Hearing, All-Knowing.
Their practice is like that of the people of Pharaoh and those before them. They rejected the signs of their Lord. So, We destroyed them for their sins and drowned the people of Pharaoh; and all of them were wrongdoers.