King James Version
It is good for me that I have been afflicted; that I might learn thy statutes.English Standard Version
It is good for me that I was afflicted, that I might learn your statutes.New International Version
It was good for me to be afflicted so that I might learn your decrees.