In David’s understanding of God, he pictured Him occasionally getting angry, but the overall view of the lifetime was His favor. In truth, God is the same yesterday, today and forever, so anger as we know it is not what David was seeing. His loving, correcting hand was seen instead.
David’s response to God’s correction was almost always immediate repentance, so to him, God’s favor seemed to return quickly, only after a moment. However, it would be unloving and out of favor for God to allow us to continue destructive behaviors and attitudes. So in the real sense, God’s correction is not His anger, but His love, greater than that of an earthy parent lovingly shaping the child with correction.
God’s judgment on sin is often described as wrath, but there too it would be unloving for evil not to be punished. However, for those who trust and believe in Jesus Christ, that wrath was poured on the Son of God, our substitute.
Therefore, God always reflects the description of love, and His favor is truly for more than a lifetime. It is for eternity for those who receive His gift of forgiveness.