Although He had warned Solomon explicitly not to follow other gods, Solomon did not keep the LORD’s command.
Jewish Publication Society of America Version (JPS1917) - 1 Kings 11:10 >and had commanded him concerning this thing, that he should not go after other gods; but he kept not that which the LORD commanded.