The Lord is our best encouragement when we need it most.

And David was greatly distressed; for the people spake of stoning him, because the soul of all the people was grieved, every man for his sons and for his daughters: but David encouraged himself in the Lord his God.  1 Samuel 30:6 King James Bible