According to the theory of relativity, if you were traveling along with a beam of light or at speeds close to the speed of light, you would experience time dilation. Specifically, time would pass more slowly for you compared to an observer who is stationary or moving at a slower velocity relative to you.
This effect is a consequence of the special theory of relativity, which states that the passage of time is relative to the observer's motion and the speed at which they are moving relative to other objects. As an object approaches the speed of light, time dilation becomes more significant.
From your perspective traveling at near-light speeds, you would perceive time passing normally, but observers in a relatively stationary frame of reference would see time passing more quickly for themselves compared to you. This means that if you were to return to the stationary observer after your journey, you would have aged less than them.
It is important to note that the degree of time dilation depends on the velocity relative to the speed of light. At speeds "not quite" the speed of light, the time dilation effects would be less pronounced than if you were actually traveling at or near the speed of light.