Deuteronomy 13 King James Version (KJV)
13 If there arise among you a prophet, or a dreamer of dreams, and giveth thee a sign or a wonder, 2 And the sign or the wonder come to pass, whereof he spake unto thee, saying, Let us go after other gods, which thou hast not known, and let us serve them; 3 Thou shalt not hearken unto the words of that prophet, or that dreamer of dreams: for the Lord your God proveth you, to know whether ye love the Lord your God with all your heart and with all your soul. 4 Ye shall walk after the Lord your God, and fear him, and keep his commandments, and obey his voice, and ye shall serve him, and cleave unto him.
So even if the sign or wonder that the prophet prophesied comes to pass, that is not the test of a true prophet, what is a true prophet is his instructions to serve the Lord with all your heart and all your soul and keep the commandments, hearing His voice and serving Him.
13 If there arise among you a prophet, or a dreamer of dreams, and giveth thee a sign or a wonder, 2 And the sign or the wonder come to pass, whereof he spake unto thee, saying, Let us go after other gods, which thou hast not known, and let us serve them; 3 Thou shalt not hearken unto the words of that prophet, or that dreamer of dreams: for the Lord your God proveth you, to know whether ye love the Lord your God with all your heart and with all your soul. 4 Ye shall walk after the Lord your God, and fear him, and keep his commandments, and obey his voice, and ye shall serve him, and cleave unto him.
So even if the sign or wonder that the prophet prophesied comes to pass, that is not the test of a true prophet, what is a true prophet is his instructions to serve the Lord with all your heart and all your soul and keep the commandments, hearing His voice and serving Him.