Joshua 11:19-20

ERV(i) 19 There was not a city that made peace with the children of Israel, save the Hivites the inhabitants of Gibeon: they took all in battle. 20 For it was of the LORD to harden their hearts, to come against Israel in battle, that he might utterly destroy them, that they might have no favour, but that he might destroy them, as the LORD commanded Moses.