Commentaries
6:1-5 The people are called upon to declare why they were weary of God's worship, and prone to idolatry. Sin causes the controversy between God and man. God reasons with us, to teach us to reason with ourselves. Let them remember God's many favours to them and their fathers, and compare with them their unworthy, ungrateful conduct toward him.
5. what Balak … consulted—how Balak plotted to destroy thee by getting Balaam to curse thee (Nu 22:5).
what Balaam … answered—how the avaricious prophet was constrained against his own will, to bless Israel whom he had desired to curse for the sake of Balak's reward (Nu 24:9-11) [Maurer]. Grotius explains it, "how Balaam answered, that the only way to injure thee was by tempting thee to idolatry and whoredom" (Nu 31:16). The mention of "Shittim" agrees with this: as it was the scene of Israel's sin (Nu 25:1-5; 2Pe 2:15; Re 2:14).
from Shittim unto Gilgal—not that Balaam accompanied Israel from Shittim to Gilgal: for he was slain in Midian (Nu 31:8). But the clause, "from Shittim," alone applies to Balaam. "Remember" God's kindnesses "from Shittim," the scene of Balaam's wicked counsel taking effect in Israel's sin, whereby Israel merited utter destruction but for God's sparing mercy, "to Gilgal," the place of Israel's first encampment in the promised land between Jericho and Jordan, where God renewed the covenant with Israel by circumcision (Jos 5:2-11).
know the righteousness—Recognize that, so far from God having treated thee harshly (Mic 6:3), His dealings have been kindness itself (so "righteous acts" for gracious, Jud 5:11; Ps 24:5, 112:9).