But you know what. That was not what he asked for. When God appeared in his dream, God asked him what he wanted. (Aiyah, how come God doesn't appear in my dream?) Solomon requested for wisdom instead of riches (which 99% of people would want $$$$$$). History proved to us that he asked the right thing. God was so thrilled with him that He gave him riches also. God was thrilled because Solomon used that wisdom to govern his people with justice and righteousness (if only we have Solomon's wisdom in all governments today - sigh).
Lesson #1 - God is looking for people who care for others.
Lesson #2 - God will give wisdom for those who want to use it for others.
Lesson #3 - God will bless those who want to be a blessing.
Conclusion: In your spiritual life, go for the best with what God has for you. Go for gold!