Solomon’s incomparable intelligence and abilities had their source in God, Who answered his prayer in I Kings 3:12 when Solomon prayed, “Give me a discerning heart to govern Your people and to distinguish between right and wrong.” It tells us that like his father David, Solomon loved the Lord…but it also tells us that as Solomon grew old, his one thousand foreign wives and concubines turned his heart after other gods and away from being fully devoted to God. So despite having all this infinite wisdom, Solomon was still just a sinful human being rebelling against the God of his Fathers.