Samuel was a judge and his sons were judges over Israel. The people did not like them and asked for a king. God told Samuel to go ahead and anoint a king, that the people had not rejected him but God. God selected a Benjamite, named Saul. Saul became a popular figure, but pride and envy overcame him and he was no longer humble.
Rebellion is as the sin of witchcraft, and stubborness is as iniquity and idolatry.
David wrote about his devotion to God in the Psalms. One day David came up to the camp to bring food to his brothers and he heard the words of Goliath as he challenged God's people. He cried unto the armies of Israel every morning and evening for 40 days. David went on to become king of Israel after Saul's death. He served God faithfully and was a good king.