Psalm 119:71
It was good for me to be afflicted, that I might learn Your statutes.
Berean Standard Bible
It is good for me that I have been afflicted; that I might learn thy statutes.
It is good for me that I have been afflicted, that I may learn your statutes.