The origin of prophecy