Deuteronomy 18:20 "But the prophet who shall presume to speak a word in My name which I have not commanded him to speak"

A person is forbidden to give a prophecy in the name of HaShem, when in fact, HaShem never instructed him to give such a prophecy.