God is talking to His people, trying to warn them of the desolation to come. Yet still there were false prophets who were telling a message of peace that was contrary to God's will and to His word.
He is chastising the leaders of His people who have done such a poor job of leading that the people are divided. They are in strange lands exposed to new beliefs and practices contrary to what they had previously known.
But God has His own message of hope: He's sending them a leader - one who is just and righteous. One who will feed His sheep and see to it that His will is done. Even more important, this King will save the people.
When we look at this verse, we realize that it ties back to the covenant made with David. God had promised that the long-anticipated Messiah would come the line of David (II Samuel 7:16).
What's ironic is that, at this point in history, Judah was so disobedient it was amazing to think that the seed that would save all humanity could come from these sinful, wayward people. Had it not been for the faithfulness of God, this promise would never have been fulfilled.
God keeps His word. Always.
He offers us love and grace and mercy in spite of how we behave. He sent His Son to die for our sins and when we accept His gift we have the hope of eternal life.