This is known as PRECOGNITION.
In psychology, precognition is defined as the ability to perceive or see a future event before it happens by means of extrasensory perception. It is considered as a form of extrasensory perception because, it operates without recourse to the normal senses.