And when We bestow favor on man, he keeps away and turns away to his side and when harm afflicts him, he is despairing.
A very important aspect of human psychology is described, during prosperity man forgets Allah (SWT) and during adversity he becomes so hopeless, as if he was never prosperous. Everyone acts according to one’s character and Allah (SWT) knows those who are correct.