When the Israelites have been brought to fear and repent of their sin of demanding Samuel to give them a king, then comes the good news: “Fear not; you have done all this evil, yet do not turn aside from following the Lord, but serve the Lord with all your heart; and do not turn aside after vain things which cannot profit or save, for they are vain” (12:20–21).
This is the gospel — even though you have sinned greatly, and terribly dishonored the Lord, even though you now have a king which it was a sin to get, even though there is no undoing that sin or its painful consequences that are yet to come, nevertheless there is a future and a hope.
Fear not! Fear not!
Then comes the great ground of the gospel in verse 22. “For the Lord will not cast away his people, for his great name’s sake, because it has pleased the Lord to make you a people for himself.”