What does Psalm 18:22 mean?
David testifies in this verse that he has obeyed God's rules and statutes. He knew the Law and followed it devotedly. The rough life of being a fugitive in the wilderness did not cause David to rebel against the Lord. He steadfastly obeyed Him. Unfortunately, David was not perfect in his spiritual life (1 Kings 15:5), but his consistent pattern was to follow and honor God (1 Samuel 13:14).The prophet Samuel had a testimony of intense devotion to God (1 Samuel 12:1–5). He told all Israel he was old and gray and well-known by the Israelites for his integrity. He had never defrauded or oppressed anyone. Nor had he stolen or taken a bribe. He called upon the Lord to be his witness. Years later, as King Hezekiah lay on his death bed, he prayed: "Now, O LORD, please remember how I have walked before you in faithfulness and with a whole heart, and have done what is good in your sight" (2 Kings 20:3).
The testimonies of David, Samuel, and Hezekiah should encourage us to obey God's Word all the days of our lives.