Joshua 24:10

10 But I would not listen to Balaam, so he blessed you, and in this way I rescued you from Balak.

Joshua 24:10 In-Context

8 Then I brought you to the land of the Amorites, who lived on the east side of the Jordan. They fought you, but I gave you victory over them. You took their land, and I destroyed them as you advanced.
9 Then the king of Moab, Balak son of Zippor, fought against you. He sent word to Balaam son of Beor and asked him to put a curse on you.
10 But I would not listen to Balaam, so he blessed you, and in this way I rescued you from Balak.
11 You crossed the Jordan and came to Jericho. The men of Jericho fought you, as did the Amorites, the Perizzites, the Canaanites, the Hittites, the Girgashites, the Hivites, and the Jebusites. But I gave you victory over them all.
12 As you advanced, I threw them into panic in order to drive out the two Amorite kings. Your swords and bows had nothing to do with it.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.