And when harm afflicts human beings, they pray to their Fosterer being those who turn to Him in repentance, but when He (makes) them taste mercy from Him, then a party of them associates partners with their Fosterer,
When people experience adversity they pray to Allah (SWT) but when He makes them prosperous then some of them give the credit to others without any authority and become ungrateful to Him. In prosperity people are happy and in adversity they are in despair as if they were never prosperous. It is Allah (SWT) Who makes people rich or poor.