1 Kings 11:10

and had commanded him concerning this thing, that he should not go after other gods; but he did not observe what the Lord had commanded.

1 Kings 6:12-13

“Concerning this house which you are building, if you will walk in My statutes and execute My ordinances and keep all My commandments by walking in them, then I will carry out My word with you which I spoke to David your father.

1 Kings 9:4-7

As for you, if you will walk before Me as your father David walked, in integrity of heart and uprightness, doing according to all that I have commanded you and will keep My statutes and My ordinances,

2 Chronicles 7:17-22

As for you, if you walk before Me as your father David walked, even to do according to all that I have commanded you, and will keep My statutes and My ordinances,

Treasury of Scripture Knowledge

Summary

And had commanded him concerning this thing, that he should not go after other gods: but he kept not that which the LORD commanded.

Bible References

Commanded

1 Kings 6:12
“Concerning this house which you are building, if you will walk in My statutes and execute My ordinances and keep all My commandments by walking in them, then I will carry out My word with you which I spoke to David your father.
1 Kings 9:4
As for you, if you will walk before Me as your father David walked, in integrity of heart and uprightness, doing according to all that I have commanded you and will keep My statutes and My ordinances,
2 Chronicles 7:17
As for you, if you walk before Me as your father David walked, even to do according to all that I have commanded you, and will keep My statutes and My ordinances,