Berean Study Bible (BSB) - Deuteronomy 23:5 >

Yet the LORD your God would not listen to Balaam, and the LORD your God turned the curse into a blessing for you, because the LORD your God loves you.

Jewish Publication Society of America Version (JPS1917) - Deuteronomy 23:5 >

(23-6) Nevertheless the LORD thy God would not hearken unto Balaam; but the LORD thy God turned the curse into a blessing unto thee, because the LORD thy God loved thee.