1 Kings 3:1

"Solomon made an alliance with Pharaoh king of Egypt and married his daughter. He brought her to the City of David until he finished building his palace and the temple of the Lord, and the wall around Jerusalem." NIV translation

In chapter 2, we saw how Solomon had become the king of Israel and we must remember that he was only 12 or 13 years old at the time. He dealt with the enemies of David and the kingdom was firmly established. Now, we see that he went to the king of Egypt and became an ally by taking his daughter in marriage. This was a common practice of the times but, in this, we see youthful foolishness.

He had been raised in a godly home as David was considered to be a great man of God and yet he married a daughter of the king from the place where his ancestors had been slaves. She moved to Jerusalem and he built her a palace. This is a pattern that we see throughout the Bible as a result of man's sin.

In the beginning, God created a woman and brought her to the man (see Genesis two) but, since the fall, man has went in search of a woman to be his wife. Many times this causes some serious problems and it did in the life of Solomon.

1 Kings 3:2 - 4

"The people, however, were still sacrificing at the high places, because a temple had not yet been built for the Name of the Lord. Solomon showed his love for the Lord by walking according to the statutes of his father David, except that he offered sacrifices and burned incense on the high places. The king went to Gibeon to offer sacrifices, for that was the most important high place, and Solomon offered a thousand burnt offerings on that altar." NIV translation

We see that Solomon received knowledge of the ways of God through his father (David) and followed them for the most part. Even though they had the tabernacle of God, the people were going to high places to offer sacrifices. Instead of leading, the young foolish king did the same. He went to the most important place and offered a huge number of sacrifices.