Gravitational lensing is the bending of light due to gravitational effects from massive objects, not just black holes. It occurs when a massive body curves spacetime, causing light to follow a curved path. Option B is correct - it's about gravity's effect on light. Options A, C, and D are incorrect as they mention magnetic fields or restrict it to black holes.