Whenever something good happened to them, they would consider it as their own achievement and whenever a misfortune overtook them, they would blame Moses and his people for it. What they did not realize was that all those misfortunes were sent to them by God [to humble them.]