God appeared to King Solomon one night in a dream and told him that whatever he request, that he would grant to him. Solomon only asked for wisdom to lead the people. God was pleased with Solomon request. Not only did he grant Solom great Wisdom, but he also granted him all the riches that he could ever want or need, and he also added long life to him.
1 Kings 3