The writer was remembering God's rescue of the Israelites by parting the Red Sea during the Exodus. God saved the Israelites then, and he continues to save his people today.
Psalms 66:10-12
Just as fire purifies silver in the smelting process, trials refine our character. They bring us a new and deeper wisdom, helping us discern truth from falsehood and giving us the discipline to do what we know is right. Above all, these trials help us realize that life is a gift from God to be cherished, not a right to be taken for granted.
Psalms 66:13-15
People sometimes make bargains with God, saying, "If you heal me [or get me out of this mess], I'll obey you for the rest of my life." However, soon after they recover, the vow is forgotten and the old lifestyle is resumed. This writer made a promise to God, but he remembered the promise and was prepared to carry it out. God always keeps his promises and wants us to follow his example. Be careful to follow through on whatever you promise to do.
Psalms 66:18
Our confession of sin must be continual because we continue to do wrong. But true confession requires us to listen to God and to want to stop doing what is wrong. David confessed his sin and prayed, "Cleanse me from these hidden faults. Keep your servant from deliberate sins" (Psa 19:12-13). When we refuse to repent or when we harbor and cherish certain sins, we place a wall between us and God. We may not be able to remember every sin we have ever committed, but our attitude should be one of confession and obedience.