"Therefore the Lord will take no pleasure in the young men, nor will he pity the fatherless and the widows, for everyone is ungodly and wicked, every mouth speaks vileness. Yet for all this, his anger is not turned away, his hand is still upraised." NIV translation
David knew of God's love but he also knew that God was a jealous God. This verse speaks to the fact that all of the people have turned away from the things of God and so His wrath is poured out on them. Today, we pretty much ignore the fact that God is going to pour out His wrath on those that turn their back on His offer of grace and mercy (see Revelation 16). But, whether we want to acknowledge it or not, it is coming soon.