Joshua 11:18

NLT
New Living Translation

18waging war for a long time to accomplish this.