I Am Legend (2007)

In a desolate, post-apocalyptic New York City, Dr. Robert Neville (Will Smith) is the last known human survivor after a failed cure for cancer mutates into a deadly virus, wiping out most of humanity and transforming the rest into savage, light-sensitive creatures known as Darkseekers.
By day, Neville roams the empty streets with his loyal dog Sam, searching for supplies and broadcasting radio messages in hopes of finding others. By night, he hides in his fortified home, fending off the monsters that lurk in the shadows.
Haunted by guilt and driven by hope, Neville continues experimenting with a cure using his immune blood. But when he encounters signs that he may not be entirely alone, his isolated world begins to shift — revealing that survival is not the same as living.
Both thrilling and heartbreaking, I Am Legend is a gripping tale of solitude, sacrifice, and the undying human spirit in the face of extinction.
“The last man on Earth is not alone.”