"For His anger is but for a moment, His favor is for a lifetime; Weeping may last for the night, But a shout of joy comes in the morning." Psa 30:5
David was a man of vast experience with God. He is well known as one who was "after God's own heart." Also well known are both his triumphs and his utter failures, yet he maintained his vast love for the Father and never ceased trying to please Him and live according to His will.
There were times that David endured the depths of despair. There were times when he was literally punished by God, but the love between them never ceased. David realized that among the most temporary things in life were God's anger with him and the commensurate suffering he endured. Vastly more prevalent was the grace and mercy given and the resultant joy experienced.
Beloved, we all have times in life when we are down. Sometimes it is because we have brought it upon ourselves. Other times it is due to happenstance. Regardless of the causality, we must remember that we are God's own and that He will never leave us or forsake us. If we be chastised know this: "All discipline for the moment seems not to be joyful, but sorrowful; yet to those who have been trained by it, afterwards it yields the peaceful fruit of righteousness" Heb 12:11. If it be happenstance or even persecution know this: "Do not fear what you are about to suffer. Behold, the devil is about to cast some of you into prison, so that you will be tested, and you will have tribulation for ten days. Be faithful until death, and I will give you the crown of life."
Each life is filled with things that are good and things that are not so good. It is part of the human existence. The Christian, however, has hope in the One who made all. When you are down, look up.