The sun rising from the west is a sign of the impending doomsday as told by the Prophet Muhammad SAW when talking with his friends (the book Nihayatul Alam by Muhammad al-Areifi).
This is not just a figment of imagination, in fact there are more or less 10 signs of the arrival of the apocalypse, some of which have been proven, others are still full of mystery, the sun rising from the west is one of them.