The Lord was pleased that Solomon had asked for this.
So God said to him, "Since you have asked1 for this and not for long life or wealth for yourself, nor have asked for the death of your enemies but for discernment2 in administering justice,
References for 1 Kings 3:11
I will do what you have asked.3 I will give you a wise4 and discerning heart, so that there will never have been anyone like you, nor will there ever be.
References for 1 Kings 3:12
Moreover, I will give you what you have not5 asked for--both riches and honor6--so that in your lifetime you will have no equal7 among kings.
References for 1 Kings 3:13
And if you walk8 in my ways and obey my statutes and commands as David your father did, I will give you a long life."9
References for 1 Kings 3:14