Kings 1, Chapter 11:
"King Solomon loved many Gentile women, such as the daughter of Pharaoh, Moabite, Amonite, Edomite, Sidonite, and Hittite women. They are Gentiles, about whom Hashem told the Children of Israel "Do not intermarry with them and do not let them intermarry with you, for they will surely influence you towards their religions." Those are the people that Solomon clung to in love. He had seven hundred queen-wives, and three hundred concubines, and these women influenced him.
When Solomon grew old, his wives influenced him towards their gods, and thus his heart was not complete in his service of Hashem, as his father David's was....
Hashem said to Solomon, Since this is the way you are, and you have not fully obeyed My covenant and My Laws that I commanded you, I shall tear part of the kingdom from you, and I will give it to one of your subjects. I shall not do this in your lifetime, for the sake of your father David. I shall tear it away from your son."
The misdeeds of the past may be repeated, but we should do our best to prevent them.