"For his anger endureth but a moment; in his favour is life: weeping may endure for a night, but joy cometh in the morning." (Psalm 30: 5)
The anger of God endured for a moment, in that He thundered all His wrath on His Son Jesus for us:
"And to wait for his Son from heaven, whom he raised from the dead, even Jesus, which delivered us from the wrath to come." (1 Thessalonians 1: 10)
"For he hath made him to be sin for us, who knew no sin; that we might be made the righteousness of God in him." (2 Corinthians 5: 21)
Samuel wept because God rejected Saul as King of Israel:
"It repenteth me that I have set up Saul to be king: for he is turned back from following me, and hath not performed my commandments. And it grieved Samuel; and he cried unto the LORD all night." (1 Samuel 15: 11)
Yet where Saul failed, David would reign, and become the greatest King of Israel, the root and offspring of David:
"The Lord said to Samuel, “How long will you mourn for Saul, since I have rejected him as king over Israel? Fill your horn with oil and be on your way; I am sending you to Jesse of Bethlehem. I have chosen one of his sons to be king.” (1 Samnel 16: 1)
David conceived a child with Bathsheba, who at the time was married to Uriah.
After Nathan the prophet discovered David's sin, and the king confessed, David learned that the child conceived with Bathsheba would die. David attempted to intercede for the child:
"David therefore besought God for the child; and David fasted, and went in, and lay all night upon the earth." (2 Samuel 12: 16)
Yet the child died. David stopped mourning. He dressed himself and ate. His servants were suprised, but David answered:
"And he said, While the child was yet alive, I fasted and wept: for I said, Who can tell whether GOD will be gracious to me, that the child may live? 23But now he is dead, wherefore should I fast? can I bring him back again? I shall go to him, but he shall not return to me." (2 Samuel 12: 22-23)
Later, Solomon, the wisest and wealthiest King of Israel, was born to David from Bathsheba.
Most importantly, Jesus prophesied about his death and also His resurrection:
"Verily, verily, I say unto you, That ye shall weep and lament, but the world shall rejoice: and ye shall be sorrowful, but your sorrow shall be turned into joy. 21A woman when she is in travail hath sorrow, because her hour is come: but as soon as she is delivered of the child, she remembereth no more the anguish, for joy that a man is born into the world. 22And ye now therefore have sorrow: but I will see you again, and your heart shall rejoice, and your joy no man taketh from you." (John 16: 20-22)
Because Christ lives in you, you need never feel sorrow again, but trust that even in the darkest hours, your mourning will see morning, and your joy will remain in Him!