for the Lord
Numbers 22:14
So the princes of Moab rose and went to Balak, and said, "Balaam refuses to come with us."
Deuteronomy 23:5
Nevertheless the LORD your God would not hearken to Balaam; but the LORD your God turned the curse into a blessing for you, because the LORD your God loved you.