ROCKVILLE, Md. — A Maryland man has been sentenced to 47 ½ years in prison for killing a 95-year-old World War II and Korean War veteran.

Sixty-two-year-old Eric Dyson was sentenced Thursday after being convicted in May of second-degree murder and other charges in Dan Belvin’s stabbing death.

Prosecutors said Dyson cut and stabbed Belvin, a retired Navy officer, more than 50 times in a violent rage inside Belvin’s Colesville apartment at a senior living facility in February 2015.

Authorities said Dyson was staying with his father at the retirement home when he befriended Belvin, who was letting him use his car. Prosecutors said Belvin was killed after demanding his car keys back.

After the slaying, prosecutors said Dyson took Belvin’s credit and debit cards which he used to get money for drugs.