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.

Cross-reference

1 Kings 6:12 Historical context

1 Kings 6:12 records God's conditional promise to Solomon: obey and I will fulfill my word. This is the specific command Solomon later broke.

1 Kings 9:4-7 warns Solomon that turning to other gods will bring exile and temple rejection. This warning is ignored in Solomon's disobedience.

2 Chronicles 7:17-22 parallels 1 Kings 9:4-7, reiterating the conditional covenant. Solomon's failure here triggers the warned curses.

Psalm 78:58 Parallel

Psalm 78:58 describes Israel provoking God with idols and high places. Solomon's idolatry reflects this same pattern of angering the Lord.