Deuteronomy 17:19asah
"It shall be with him and he shall read it all the days of his life, that he may learn to fear the Lord his God, by carefully observing all the words of this law and these statutes,
The king reads God's law daily, carefully observing its words to learn reverence.
1 Kings 11:38shamar
'Then it will be, that if you listen to all that I command you and walk in My ways, and do what is right in My sight by observing My statutes and My commandments, as My servant David did, then I will be with you and build you an enduring house as I built for David, and I will give Israel to you.
God promises blessing to Jeroboam if he observes God's statutes like David.
1 Kings 11:33asah
because they have forsaken Me, and have worshiped Ashtoreth the goddess of the Sidonians, Chemosh the god of Moab, and Milcom the god of the sons of Ammon; and they have not walked in My ways, doing what is right in My sight and {observing} My statutes and My ordinances, as his father David {did.}
Israel failed by not observing God's statutes and ordinances.