Nehemiah 13:2 NLT

2 For they had not been friendly to the Israelites when they left Egypt. Instead, they hired Balaam to curse them, though our God turned the curse into a blessing.