It is difficult to predict a near future, but in the very long term the situation is different, because within billions of years the future of the human being will depend on spatial phenomena (provided that the human being remains until then). Within 5,000 million years, the Sun will become a red giant that will increase its size and absorb the Earth. However, according to one study, serious episodes will also occur before this occurs: The Milky Way and the Andromeda galaxy collide and may change the 'property' of the Sun.
We have long known that the Milky Way and Andromeda will collide, but astronomers thought it would be after the death of the Sun. According to the latest calculations, the clash between galaxies will occur within 2 billion years before the Sun absorbs the Earth. What then will happen to man?
To answer this question we must go to the field of speculation. By then it is very likely that the homo sapiens species is missing or evolved and therefore there are no human beings. However, some astronomers believe that if it persists, that intergalactic shock will not affect you. Yes, the spatial view changes, because the Sun remains within Andromeda.