The Talmud states: Moses wrote his book and the parasha of Balaam…Although the parasha is unrelated to Moshe or his teaching, nonetheless Moshe included it in the Torah, so explains Rashi. Indeed, the protagonists of the parasha are a foreign seer (Balaam) and king (Balak), they are discussing how to overcome this new upstart nation called Israel. In the parasha of Balaam, Israel plays no active role and it is doubtful whether it was aware of their discussion. The Haftara exhorts us My people, remember what Balak king of Moab plotted against you, And how Balaam son of Beor responded to him…so that you will know the goodness of God. Moshe included this story to teach us that we are not privy to all the plots, designs and discussions against us but even so we can be confident in the goodness of God.