Earlier this year, a jury found 23-year-old Juan Grado guilty of killing 30-year-old Ricky Brogdon, along with personal use of a firearm causing death.
EDITOR'S NOTE: The video above is from a previous broadcast and will be updated.
The shooting happened in the middle of the night back in August of 2019.
Grado, then 18 years old, shot at Brogdon through the back door of his central Fresno home, striking him in the head.
On Wednesday, a Fresno County judge told Grado he'll spend 40 years to life in prison.
He is not eligible for probation.
For news and weather updates, follow Tiffany Olin on Facebook, Twitter and Instagram.