1 Kings 3:9-12
3:9 So give your servant a discerning mind so he can make judicial decisions for your people and distinguish right from wrong. Otherwise no one is able to make judicial decisions for this great nation of yours.”
3:10 The Lord was pleased that Solomon made this request.
3:11 God said to him, “Because you asked for the ability to make wise judicial decisions, and not for long life, or riches, or vengeance on your enemies,
3:12 I grant your request, and give you a wise and discerning mind superior to that of anyone who has preceded or will succeed you.
1 Kings 3:28
3:28 When all Israel heard about the judicial decision which the king had rendered, they respected the king, for they realized that he possessed supernatural wisdom to make judicial decisions.