Solomon had a great temple built along with a really nice house. He got supplies for the temple and house from a man in another territory. When he was done building the temple, he gave a speech, prayer and dedication. He was visited by the queen from another territory and she asked him questions. She was so impressed by the answers that Solomon gave with his great amount of wisdom that she gave him lots of gold. Thus Solomon was both wise and prosperous like it had been promised to him by God.