Appearance in a dream or at one’s demise has a divine purpose, otherwise, it is forbidden by god