Psalms 78:30-40

30 they were not estranged from their lust. But while their food was yet in their mouths,
31 the wrath of God came upon them and slew the fattest of them and smote down the chosen of Israel.
32 For all this they sinned still and did not give him credit for his wondrous works.
33 Therefore he consumed their days in vanity and their years in tribulation.
34 When he slew them, then they sought him, and they returned and enquired early after God.
35 And they remembered that God was their rock and the high God their redeemer.
36 Nevertheless they flattered him with their mouth, and they lied unto him with their tongues.
37 For their heart was not right with him, neither were they steadfast in his covenant.
38 But he, being full of compassion, forgave their iniquity and did not destroy them; many a time turned he his anger away and did not stir up all his wrath.
39 For he remembered that they were but flesh: a wind that passes away and does not come again.
40 How often did they provoke him in the wilderness and grieve him in the desert!

Psalms 78:30-40 Meaning and Commentary

Maschil of Asaph. Or for "Asaph" {f}; a doctrinal and "instructive" psalm, as the word "Maschil" signifies; see Psalm 32:1, which was delivered to Asaph to be sung; the Targum is, "the understanding of the Holy Spirit by the hands of Asaph." Some think David was the penman of it; but from the latter part of it, in which mention is made of him, and of his government of the people of Israel, it looks as if it was wrote by another, and after his death, though not long after, since the account is carried on no further than his times; and therefore it is probable enough it was written by Asaph, the chief singer, that lived in that age: whoever was the penman of it, it is certain he was a prophet, and so was Asaph, who is called a seer, the same with a prophet, and who is said to prophesy, 2 Chronicles 29:30 and also that he represented Christ; for that the Messiah is the person that is introduced speaking in this psalm is clear from Matthew 13:34 and the whole may be considered as a discourse of his to the Jews of his time; giving them an history of the Israelites from their first coming out of Egypt to the times of David, and in it an account of the various benefits bestowed upon them, of their great ingratitude, and of the divine resentment; the design of which is to admonish and caution them against committing the like sins, lest they should be rejected of God, as their fathers were, and perish: some Jewish writers, as Arama observes, interpret this psalm of the children of Ephraim going out of Egypt before the time appointed.
The Jubilee Bible (from the Scriptures of the Reformation), edited by Russell M. Stendal, Copyright © 2000, 2001, 2010