Almighty Allah declared: And We gave Moses the Scripture and made it a guidance for the children of Israel (saying): 'Take not other than Me as (your) Wakil (Protector, Lord, or Disposer of your affairs, etc.). 0 offspring of those whom We carried (in the ship) with Noah! Verily, he was a grateful slave."
And We decreed for the children of Israel in The Scripture, that indeed you would do mischief on the earth twice and you will become tyrants and extremely arrogant! So, when the promise came for the first of the two, We sent against you slaves of Ours given to terrible warfare. They entered the very innermost parts of your homes. And it was a promise (completely) fulfilled. Then We gave you once again, a return of victory over them. And We helped you with wealth and children and made you more numerous in manpower.
(And We said): "If you do good, you do good for your ownselves, and if you do evil (you do it) against yourselves."
Then, when the second promise came to pass, (We permitted your enemies) to make your faces sorrowful and to enter the mosque (of Jerusalem) as they had entered it before, and to destroy with utter destruction all that fell in their hands.
(And We said in the Torah): "It may be that your Lord may show mercy unto you, but if yyou return (to sins), We shal return (to Our Punishment). And We have made Hell a prison for the disbelievers." Surah 17: 2-8