Psalm 119:65-80 ESV
You have dealt well with your servant, O LORD, according to your word. Teach me good judgment and knowledge, for I believe in your commandments. Before I was afflicted I went astray, but now I keep your word. You are good and do good; teach me your statutes. The insolent smear me with lies, but with my whole heart I keep your precepts; their heart is unfeeling like fat, but I delight in your law. It is good for me that I was afflicted, that I might learn your statutes. The law of your mouth is better to me than thousands of gold and silver pieces. Your hands have made and fashioned me; give me understanding that I may learn your commandments. Those who fear you shall see me and rejoice, because I have hoped in your word. I know, O LORD, that your rules are righteous, and that in faithfulness you have afflicted me. Let your steadfast love comfort me according to your promise to your servant. Let your mercy come to me, that I may live; for your law is my delight. Let the insolent be put to shame, because they have wronged me with falsehood; as for me, I will meditate on your precepts. Let those who fear you turn to me, that they may know your testimonies. May my heart be blameless in your statutes, that I may not be put to shame!