ESV: It is good for me that I was afflicted, that I might learn your statutes.
NIV: It was good for me to be afflicted so that I might learn your decrees.
NASB: It is good for me that I was afflicted, So that I may learn Your statutes.
CSB: It was good for me to be afflicted so that I could learn your statutes.
NLT: My suffering was good for me, for it taught me to pay attention to your decrees.
KJV: It is good for me that I have been afflicted; that I might learn thy statutes.
NKJV: It is good for me that I have been afflicted, That I may learn Your statutes.