1 Kings 11:10

and gave him a charge of this thing that he should not follow other gods. But he kept not that which the LORD commanded him:

1 Kings 6:12-13

"Concerning the house which thou art in building: if thou wilt walk in mine ordinances and execute my laws and keep all my commandments, to walk in them; then will I make good unto thee my promises which I promised David thy father.

1 Kings 9:4-7

And if thou wilt walk before me, as David thy father walked, in pureness of heart and plainness, to do all that I have commanded thee, and shalt keep mine ordinances and customs:

2 Chronicles 7:17-22

And if thou shalt walk before me as David thy father walked, to do according to all that I have commanded thee, and shalt observe mine ordinances and my laws:

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 the house which thou art in building: if thou wilt walk in mine ordinances and execute my laws and keep all my commandments, to walk in them; then will I make good unto thee my promises which I promised David thy father.
1 Kings 9:4
And if thou wilt walk before me, as David thy father walked, in pureness of heart and plainness, to do all that I have commanded thee, and shalt keep mine ordinances and customs:
2 Chronicles 7:17
And if thou shalt walk before me as David thy father walked, to do according to all that I have commanded thee, and shalt observe mine ordinances and my laws: