Then went up Pharaoh the king of Egypt, and took Gezer, and burned it and the Canaanite dwelling in Mergab; and Pharaoh gave them as a dowry to his daughter the wife of Solomon: and Solomon rebuilt Gezer.