1 Kings 11:10

Jehovah had given him orders about this very thing that he was not to go after other gods. But he did not obey the orders of Jehovah.

1 Kings 6:12-13

If you obey all my laws and commands, I will do for you what I promised your father David.

1 Kings 9:4-7

As for you, if you will walk before me, as David your father did, uprightly and with a true heart, doing what I have given you orders to do, keeping my laws and my decisions;

2 Chronicles 7:17-22

If you will be faithful to me as your father David was, do everything I command, and obey my laws and rules,

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
If you obey all my laws and commands, I will do for you what I promised your father David.
1 Kings 9:4
As for you, if you will walk before me, as David your father did, uprightly and with a true heart, doing what I have given you orders to do, keeping my laws and my decisions;
2 Chronicles 7:17
If you will be faithful to me as your father David was, do everything I command, and obey my laws and rules,