Joshua 5:6halakh
For the sons of Israel walked forty years in the wilderness, until all the nation, {that is,} the men of war who came out of Egypt, perished because they did not listen to the voice of the Lord, to whom the Lord had sworn that He would not let them see the land which the Lord had sworn to their fathers to give us, a land flowing with milk and honey.
Israel walked forty years in the wilderness for not listening.
1 Kings 9:4halakh
"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,
David walked before God in integrity, a model for Solomon.
Joshua 14:10halakh
"Now behold, the Lord has let me live, just as He spoke, these forty-five years, from the time that the Lord spoke this word to Moses, when Israel walked in the wilderness; and now behold, I am eighty-five years old today.
2 Samuel 18:33halakh
The king was deeply moved and went up to the chamber over the gate and wept. And thus he said as he walked, "O my son Absalom, my son, my son Absalom! Would I had died instead of you, O Absalom, my son, my son!"
1 Kings 8:25halakh
"Now therefore, O Lord, the God of Israel, keep with Your servant David my father that which You have promised him, saying, 'You shall not lack a man to sit on the throne of Israel, if only your sons take heed to their way to walk before Me as you have walked.'
2 Chronicles 6:16halakh
"Now therefore, O Lord, the God of Israel, keep with Your servant David, my father, that which You have promised him, saying, 'You shall not lack a man to sit on the throne of Israel, if only your sons take heed to their way, to walk in My law as you have walked before Me.'