It was good for me that you afflicted/punished me, because the result was that I learned ◄your statutes/what you have decreed that we should do►.