1 Kings 3, 5.7-12
At Gibeon Yahweh appeared to Solomon in a dream during the night. God said, 'Ask what you would like me to give you.'
Now, Yahweh my God, you have made your servant king in succession to David my father. But I am a very young man, unskilled in leadership.
And here is your servant, surrounded with your people whom you have chosen, a people so numerous that its number cannot be counted or reckoned.
So give your servant a heart to understand how to govern your people, how to discern between good and evil, for how could one otherwise govern such a great people as yours?'
It pleased Yahweh that Solomon should have asked for this.
'Since you have asked for this,' God said, 'and not asked for long life for yourself or riches or the lives of your enemies but have asked for a discerning judgement for yourself,
here and now I do what you ask. I give you a heart wise and shrewd as no one has had before and no one will have after you.