‘If only that brick were in place!’ I am that brick.” Through him, Allah perfected the religion, which encompasses enjoining all that is right, forbidding all that is wrong, making lawful everything good, and prohibiting everything foul.
As for the messengers before him, some good things were forbidden to their peoples, as Allah Most High says:
“For wrongdoing on the part of the Jews, We made unlawful for them good things that had been lawful to them.” [Surah al-Nisāʾ, 160]
Nor were all foul things necessarily forbidden to them, as He Most High says:
“All food was lawful to the Children of Israel except what Israel had forbidden himself before the Torah was revealed.” [Surah Āl ʿImrān, 93]
Prohibiting foul things falls within the meaning of forbidding what is wrong, just as making good things lawful falls within the meaning of enjoining what is right and forbidding what is wrong, since prohibiting good things is itself something Allah has forbidden. Likewise,