The Lord appeared to Solomon with a wide open question, that he could ask for anything and the Lord would give it. Solomon asked for wisdom and knowledge to lead Israel. That impressed the Lord, including for what Solomon did not make request,
Then God said to Solomon: “Because this was in your heart, and you have not asked riches or wealth or honor or the life of your enemies, nor have you asked long life—but have asked wisdom and knowledge for yourself, that you may judge My people over whom I have made you king—wisdom and knowledge are granted to you; and I will give you riches and wealth and honor, such as none of the kings have had who were before you, nor shall any after you have the like” (2 Chronicles 1:11–12).
Did you take note of the things for which Solomon did not ask: riches, wealth, honor, the life of his enemies, and long life?
Those are the very things we want, and we strive earnestly to get them, but they elude us.
Yet, the Lord gave those things to Solomon because he gave the right emphasis in prayer, which truly showed his heart.
What is in your heart, and do your prayers reveal it?