1 Kings 3:14 & 15

"'And if you walk in my ways and obey my statutes and commands as David your father did, I will give you a long life.' Then Solomon awoke - and realized it had been a dream. He returned to Jerusalem, stood before the ark of the Lord's covenant and sacrificed burnt offerings and fellowship offerings. Then he gave a feast for all his court." NIV translation

In addition to the gifts, God offered him a long life but this was not a gift as it required Solomon to act in a proper manner. Solomon awoke and realized that he had been visited by God in his dream. We see the impact that this had on him as he went back to Jerusalem and worshiped where he was supposed to.

1 Kings 3:16 - 18

"Now two prostitutes came to the king and stood before him. One of them said, 'My lord, this woman and I live in the same house. I had a baby while she was there with me. The third day after my child was born, this woman also had a baby. We were alone; there was no one in the house but the two of us.'" NIV translation

Now, we see two women come to the king to settle a dispute between them. They were women who had children without being married to one man (harlots).