The prophet Samuel warned the people of Israel not to have a king. Essentially, he said: “Beware what you wish for.”
From 1 Samuel 8:
10 Samuel told all the words of the Lord to the people who were asking him for a king. 11 He said, ‘This is what the king who will reign over you will claim as his rights: he will take your sons and make them serve with his chariots and horses, and they will run in front of his chariots. 12 Some he will assign to be commanders of thousands and commanders of fifties, and others to plough his ground and reap his harvest, and still others to make weapons of war and equipment for his chariots. 13 He will take your daughters to be perfumers and cooks and bakers. 14 He will take the best of your fields and vineyards and olive groves and give them to his attendants. 15 He will take a tenth of your grain and of your vintage and give it to his officials and attendants. 16 Your male and female servants and the best of your cattle[c] and donkeys he will take for his own use. 17 He will take a tenth of your flocks, and you yourselves will become his slaves. 18 When that day comes, you will cry out for relief from the king you have chosen, but the Lord will not answer you in that day.’
Interestingly however, in an older book (Deuteronomy), God seems to have anticipated that the people will want a king. So he gave some instructions as to what that person was to do once in office:
From Deuteronomy 17:
14 When you enter the land the Lord your God is giving you and have taken possession of it and settled in it, and you say, ‘Let us set a king over us like all the nations around us,’ 15 be sure to appoint over you a king the Lord your God chooses. He must be from among your fellow Israelites. Do not place a foreigner over you, one who is not an Israelite. 16 The king, moreover, must not acquire great numbers of horses for himself or make the people return to Egypt to get more of them, for the Lord has told you, ‘You are not to go back that way again.’ 17 He must not take many wives, or his heart will be led astray. He must not accumulate large amounts of silver and gold.
18 When he takes the throne of his kingdom, he is to write for himself on a scroll a copy of this law, taken from that of the Levitical priests. 19 It is to be with him, and he is to read it all the days of his life so that he may learn to revere the Lord his God and follow carefully all the words of this law and these decrees 20 and not consider himself better than his fellow Israelites and turn from the law to the right or to the left. Then he and his descendants will reign a long time over his kingdom in Israel.