God did not provide for the Israelites in the wilderness because of anything they had done. If anything, they came very close to annihilation more than once:
Deuteronomy 9:24 Yes, you have been rebelling against the Lord as long as I have known you.
With only Moses to intercede for them:
Deuteronomy 9:26 I prayed to the Lord and said, ‘O Sovereign Lord, do not destroy them. …28 If you destroy these people, the Egyptians will say, “The Israelites died because the Lord wasn’t able to bring them to the land he had promised to give them.” Or they might say, “He destroyed them because he hated them; he deliberately took them into the wilderness to slaughter them.”
For this reason, Moses pleaded with the people to remember:
Deuteronomy 8:5 It is not because you are so good or have such integrity that you are about to occupy their land. The Lord your God will drive these nations out ahead of you only because of their wickedness, and to fulfill the oath he swore to your ancestors Abraham, Isaac, and Jacob.
Deuteronomy 8:6 So obey the commands of the Lord your God by walking in his ways and fearing him. … 10 When you have eaten your fill, be sure to praise the Lord your God for the good land he has given you.