Psalm 90:1-8, (9-11), 12
90:1 Lord, you have been our dwelling place in all generations.
90:2 Before the mountains were brought forth, or ever you had formed the earth and the world, from everlasting to everlasting you are God.
90:3 You turn us back to dust, and say, "Turn back, you mortals."
90:4 For a thousand years in your sight are like yesterday when it is past, or like a watch in the night.
90:5 You sweep them away; they are like a dream, like grass that is renewed in the morning;
90:6 in the morning it flourishes and is renewed; in the evening it fades and withers.
90:7 For we are consumed by your anger; by your wrath we are overwhelmed.
90:8 You have set our iniquities before you, our secret sins in the light of your countenance.
90:9 For all our days pass away under your wrath; our years come to an end like a sigh.
90:10 The days of our life are seventy years, or perhaps eighty, if we are strong; even then their span is only toil and trouble; they are soon gone, and we fly away.
90:11 Who considers the power of your anger? Your wrath is as great as the fear that is due you.
90:12 So teach us to count our days that we may gain a wise heart.
I am not sure whether that is one of David's Psalms, but there is a new book out about David: David Wolpe’s “David: The Divided Heart”