"You shall listen to him"Deuteronomy 18:15.

We are commanded to obey the instructions of a prophet. This as long as he doesn't instruct to permanently abolish any mitzvah. But we are commanded to listen to a prophet if he tells us to temporarily suspend the observance of a biblical precept.