Translation for 7:131

فَإِذَا جَآءَتۡهُمُ ٱلۡحَسَنَةُ قَالُواْ لَنَا هَٰذِهِۦۖ وَإِن تُصِبۡهُمۡ سَيِّئَةٞ يَطَّيَّرُواْ بِمُوسَىٰ وَمَن مَّعَهُۥٓۗ أَلَآ إِنَّمَا طَٰٓئِرُهُمۡ عِندَ ٱللَّهِ وَلَٰكِنَّ أَكۡثَرَهُمۡ لَا يَعۡلَمُونَ ١٣١
In times of prosperity, they said, “This is what we deserve,” but in adversity, they blamed it on Moses and those with him.1 Surely all is destined by Allah. Yet most of them did not know.

Foot notes

76674

 In psychology, this is called self-serving bias and scapegoating.