KJV: O my people, remember now what Balak king of Moab consulted, and what Balaam the son of Beor answered him from Shittim unto Gilgal; that ye may know the righteousness of the LORD.
NASB: "My people, remember now What Balak king of Moab counseled And what Balaam son of Beor answered him, And from Shittim to Gilgal, So that you might know the righteous acts of the LORD."