A. Yusuf Ali:Translation:
Yet when We bestow Our favours on man, he turns
away and becomes remote on his side (instead of
coming to Us), and when evil seizes him he gives
himself up to despair! 2283

Muhammad Asad:Translation:
for [it often happens that] when We bestow Our blessings upon man, he turns away and arrogantly keeps aloof [from any thought of Us]; and when evil fortune touches him, he abandons all hope. 99
2283 Truth saves us from two extremes: when we are happy, we are saved from being puffed up, for we realise that everything comes from Allah; and when we suffer misfortunes, we are not in despair, for we know that Allah is our sure refuge and help (Cf. 41:51).