“when Solomon was old.” The Bible does not tell us how old Solomon was, but no doubt his turning away from Yahweh to the worship of pagan gods was a process. God warns us that “Bad company corrupts good morals” (1 Cor. 15:33) but it is not an overnight process, it takes time. Over the years, Solomon’s pagan wives turned him away from Yahweh, which will have serious consequences on Judgment Day.