1 Samuel - Chapter 8

The Israelites said:

"Appoint a king to lead us, such as all the other nations have."

God said that in making this request "they have rejected me as their king."

God granted their wish, and said "Listen to them and give them a king."  But it would not be the king they needed.

In John 18 Jesus is recognised as a king during his trial, before his crucifixion:

“Am I a Jew?” Pilate replied. “Your own people and chief priests handed you over to me. What is it you have done?” Jesus said, “My kingdom is not of this world. If it were, my servants would fight to prevent my arrest by the Jewish leaders. But now my kingdom is from another place.” “You are a king, then!” said Pilate. Jesus answered, “You say that I am a king. In fact, the reason I was born and came into the world is to testify to the truth. Everyone on the side of truth listens to me.”