David was upset because those who where supposed to encourage him were talking about stoning him,
Those who were supposed to encourage him were sad and upset because they blamed him for their loss,
But David encouraged himself in the Lord His God,
When we do not get encouragement from other is not time to give up, it is time to encourage ourselves.