Nehemiah 13:2 RSV

2 for they did not meet the children of Israel with bread and water, but hired Balaam against them to curse them--yet our God turned the curse into a blessing.