Einstein's theory of general relativity predicts that every object bends light rays through its gravity. This is called gravitational lensing. For our Sun this effect is very weak, but it has been measured. For more massive and distant objects Hamplanets in the Universe much stronger lensing has been seen.