that the Messenger of Allah (ﷺ) said: "He does not believe in the Qur'an who makes lawful what it prohibits."
Jami` at-Tirmidhi Book 45, Hadith 44