Abu Hurayrah (may Allah be pleased with him) reported that the Prophet (may Allah's peace and blessings be upon him) said: "Avoid what I have forbidden you from; and do as much as you can, of what I have ordered you. Indeed, those before you were ruined because of their excessive questioning and disagreeing with their prophets."
The Messenger of Allah (may Allah's peace and blessings be upon him) informed us that if he forbade us from something, we must avoid it without exception, and if he ordered us to do something, we have to do it as much as we can. He then warned us against being like some of the previous nations, who asked their prophets excessive questions and disagreed with them, so Allah punished them with different types of destruction and ruin. We should therefore avoid being like them, so we will not be destroyed in the ways that they were.