For forty years I was angry with that generation; I said, 'They are a people whose hearts go astray, and they have not known my ways.'
NIV
Forty years long was I grieved and disgusted with that generation, and I said, It is a people that do err in their hearts, and they do not approve, acknowledge, or regard My ways.
AMP
Forty years long was I grieved with this generation, and said, It is a people that do err in their heart, and they have not known my ways:
KJV