But whenever they had good times they said “It is our due,” and whenever evil befell them they ascribed that bad luck to Musa and those with him. Behold! In fact their misfortune was in the hands of Allah; yet most of them do not know.
Meaning:-
Ascribe: attribute something to (a cause), attribute to.