7 Then they would put their trust in God and would not forget his deeds but would keep his commands.

Read Psalm 78:7 Using Other Translations

That they might set their hope in God, and not forget the works of God, but keep his commandments:
so that they should set their hope in God and not forget the works of God, but keep his commandments;
So each generation should set its hope anew on God, not forgetting his glorious miracles and obeying his commands.