This is the story of Abimelech in the book of Judges. God did not choose him to be a judge, he elected himself to be king.