Every ray of light that illuminates Earth's surface takes just 8 minutes and 20 seconds to cross the 150 million kilometers of cosmic vacuum separating Earth from the solar photosphere. However, the origin of that same energy dates back to a time before the rise of modern civilization.
In the Sun's core, thermonuclear fusion transforms hundreds of millions of tons of hydrogen into helium every second, releasing energy in the form of gamma photons. To escape the star, this radiation must first pass through the radiative zone, an inner layer extending from the edge of the core to approximately 70% of the solar radius.
Even though photons travel at the speed of light, the plasma in this region is so dense that a light particle travels barely a fraction of a millimeter before colliding with an electron or an atomic nucleus. This phenomenon, known in physics as a random walk, causes the photon to be absorbed and scattered in random directions billions of times, degrading its original energy into the visible and ultraviolet spectrum.
An astrophysical analysis published by Robert Mitalas and Kenneth Sills in 1992 calculated that the average diffusion time for a photon to traverse this solar maze is around 170,000 years. Consequently, the sunlight we see today began its outward journey when Neanderthals still roamed Eurasia.
Source: The Astrophysical Journal (1992)