A shopping cart collector who killed a manager and wounded two workers at a Long Island grocery store in 2021 was sentenced Thursday to 50 years to life in prison.

Gabriel DeWitt Wilson, 33, was convicted last month of murder and attempted murder in the shooting at the Stop & Shop store in West Hempstead.

Police said Wilson, a "troubled employee" who had been reprimanded for threatening and sexually harassing colleagues, opened fire in an office about 40 minutes after talking to a supervisor about transferring to another store.

NEW YORK SHOOTING AT SUPERMARKET LEAVES 1 DEAD, 2 WOUNDED

The slain manager, Ray Wishropp, was shot in the chest at point-blank range, police said.

Gabriel DeWitt Wilson

Gabriel DeWitt Wilson, who killed one person and injured two others in a workplace shooting on Long Island, has been sentenced to at least 50 years in prison. (Nassau County PD)

Nassau County District Attorney Anne Donnelly said Wilson has show no contrition or remorse and that she hopes his long prison sentence "provides some measure of justice for (Wishropp's) family, friends, and coworkers still mourning his tragic loss."

NEW YORK GUNMAN WHO OPENED FIRE AT STOP & SHOP HAD 'UNEVENTFUL' MEETING WITH BOSS, RETURNED WITH GUN: POLICE

Wilson fled the store after the shooting and was arrested about four hours later at an apartment building about 2 miles away in Hempstead. The area is about 30 miles east of midtown Manhattan.

Wilson's lawyer said he was suffering the "lingering effects" of being shot in the head when he was 19.

Wilson was involved in a gun battle in Baltimore seven years to the day before the supermarket shooting that left him and another man wounded.

CLICK HERE TO GET THE FOX NEWS APP

He has also been taken into custody at least twice in Nassau County for mental health evaluations, in 2016 and 2019, authorities said.