Gravitational lensing is the process of light changing its path due to the curve in the fabric of spacetime. Gravitational lensing was predicted by Albert Einstein and proven to exist in 1979. Quasars are an ideal source of light for testing gravitational lensing. This was first discovered by Liebes and Sjur Refsdal. Heavy gravitational lensing can cause gravitational redshift. This is a phenomenon that occurs due to the curve in the fabric of space time which is larger than usual due to the extremely heavy mass of a celestial objects causing time dilation. Time dilation is the process of time slowing down for an object depending on the speed it is travelling at, this process occurs all the time.
Time dilation causes light to change its frequency to a lower form, causing light to go from a higher frequency to lower frequency is called redshift. The space time fabric was discovered by Einstein and curves to matter like a bowling ball on a trampoline. Gravitational lensing says that light will turn to this curve thus being affected by gravity depending on the mass. Time dilation occurs due to gravity increasing as you go deeper into a gravitational well thus increasing your velocity. The faster you travel in space, the slower you travel in time, so when you travel extremely fast in a gravitational well, you travel extremely slow in time, so the larger the gravitational field, and the deeper you go into it, will slow time proportional to that. Since we now know that time dilation occurs in the process, we can now explain why redshift occurs. Redshift in this process occurs due to time dilation. This redshift during gravitational lensing is gravitational redshift.