"all the Israelite people whom he ruled also abandoned the law of Yahweh". The safety of Israel and Judah was dependent upon the people worshiping Yahweh and not upon their military power. Because Rehoboam deserted the worship of God, God allowed the king of Egypt to take all of the wealth Solomon had stored up.