1 Samuel 8:5-9

ISV(i) 5 They told him, “Look, you’re old, and your sons don’t follow your example. So appoint a king to govern us like all the other nations.” 6 Samuel was displeased when they said, “Give us a king to govern us.” So Samuel prayed to the LORD.
7 The LORD told Samuel, “Listen to the people in all that they say to you. In fact, it’s not you they have rejected, but rather they have rejected me from being their king. 8 Like all the things they have done from the day I brought them up out of Egypt until this very day, they have forsaken me and followed other gods. They’re also doing the same thing to you. 9 Now, listen to them, but you are to clearly warn them and inform them about how the king who rules over them will operate.”