First came the words of forgiveness, followed by a sentence of retribution: Twenty years behind bars.

A white policeman who gunned down an unarmed black man received absolution from the victims mother Thursday before a federal judge threw disgraced ex-cop Michael Slager in jail for two decades.

The former South Carolina law enforcer, after hearing from victim Walter Scotts mother, wiped tears from his eyes as a four-day court hearing came to an emotional end.

I forgive Michael Slager, said Judy Scott, facing her sons killer. I forgive you. I pray for you, that you would repent and let Jesus come in your life.

Cop who killed Walter Scott pleads guilty to civil rights charge

Slager wept only a few feet away at the defense table. Im sorry, mouthed the disgraced law enforcer who pumped five bullets into Scotts back after a traffic stop.

U.S. District Judge David Norton, who earlier ruled the cops shooting of Scott was second-degree murder, imposed the lengthy jail term still less than the 24 years that he considered.

This is a tragedy that shouldnt have happened, said Norton.

The judge further declared Slager guilty of obstruction of justice for his initial story that Scott, 50, was shot in self-defense after the suspect tried to steal the cops Taser.

Ray Tensing, who shot and killed Sam DuBose, will not be re-tried

The video told a starkly different tale: The officer was actually standing 17 feet behind the victim when he squeezed off eight shots, with five striking Scott from behind.

After the shooting, Slager placed the stun gun alongside the dead mans body. The cop insisted he was just securing the weapon, with prosecutors charging it was part of a failed cover-up.

The disturbing video went viral on social media, and was played again at this weeks hearing.

Slager acknowledged his guilt as he addressed the victims relatives inside the courtroom.

Cop who killed Walter Scott pleads guilty to civil rights charge

With my actions that day, Walter Scott is no longer with his family, and I am responsible for that, said Slager, 36.

Slager spent much of the hearing staring downward or wiping his eyes before the judge imposed sentence. Norton had set a sentencing range of 19-to-24 years before announcing his final decision.

A state murder trial ended with a hung jury, setting off angry denunciations of the prosecution.

But Slager was jailed last May after pleading guilty to violating the black mans civil rights.

Judge strikes down Michael Slager bid to toss Walter Scott video

With News wire services.