The Children of Israel break their covenant 5:12-13
5:12 Allah made a covenant with the Children of Israel and raised among them twelve chieftains. He said, 'I shall be with you and if you establish the prayers and pay the obligatory charity; if you believe in My Messengers and assist them and give Allah a generous loan, I shall forgive you your sins and admit you to Gardens underneath which rivers flow. Whosoever amongst you disbelieves after that, he indeed has strayed from the Straight Path.'
5:13 But because they broke their covenant, We cursed them and hardened their hearts. They changed the Words from their places and have forgotten a portion of what they were reminded. Except for a few, you will always find treachery from them, yet pardon them, and forgive; indeed Allah loves the good doers.