From it’s source, indefinitely, until absorbed by a medium.
The photon is always in the present of the moment it was emitted, crossing the Universe always in the present of its origin.