The granddaughter of acclaimed actor Morgan Freeman was stabbed to death on a Manhattan sidewalk early Sunday during what law enforcement sources and witnesses described as an “exorcism” at the hands of her ranting boyfriend.

“Get out, devils! I cast you out, devils! In the name of Jesus Christ, I cast you out!” the killer yelled as he plunged a hunting knife into 33-year-old E’Dena Hines’ chest, according to George Hudacko, who witnessed the 3 a.m. attack from his apartment window in Washington Heights.

Hines, an actress who had appeared on Broadway and on red carpets at Freeman’s side, was stabbed 16 times, officials said.

“The girl was making a lot of noise, screaming,” Hudacko said, adding. “I called 911 — I was begging them to come.”

Hines — whose grandmother Jeanette Adair Bradshaw was Freeman’s first wife — was attacked on West 162nd Street near St. Nicholas Avenue, a few buildings from where she lived, cops and sources said.

Her live-in boyfriend, Lamar Davenport, 30, was in the throes of a drug-induced psychosis when he came after her, police sources said.

“Jesus Christ is born!” he shouted maniacally over her body.

A friend who’d had dinner with Davenport and Hines just hours earlier described her as “ecstatic,” the Daily Beast reported.

“I’ve never seen E’Dena as happy as she was last night,” said the friend, Ray Rosario.

By 3 a.m., Davenport was so crazed that he continued his attack even as Hines lay lifeless on the sidewalk, one police source said.

When cops wrestled him off her, he “was still making a stabbing motion with his arm, but he had nothing in his fist — the knife was jutting out of her chest,” the police source said.

Davenport — an actor and rapper wannabe whose nickname is “Lyric” — abuses cocaine, pot and booze, and has two young children, according to law enforcement sources. Hines was not their mother.

He has six prior arrests, including for marijuana and petit larceny, the sources added.

Davenport was taken to New York-Presbyterian Hospital for a psychological evaluation, sources said. He has been charged with murder.

Freeman, 78, issued a statement soon after the attack.

“The world will never know her artistry and talent and how much she had to offer,” the Oscar winner said. “Her star will continue to shine bright in our hearts, thoughts and prayers. May she rest in peace.”

Hines was Freeman’s granddaughter because her mother had been adopted by the star.

He was so close to Hines that in 2012, he had to quash reports that they were lovers.

Hines was a graduate of NYU’s Graduate Acting Program and played Beneatha in “A Raisin in the Sun” on Broadway in 2012.

She’d left the city to teach in her hometown of Memphis, Tenn., but returned to New York in April to co-star in the indie film “Landing Up.’’

“She was an amazing, incredible, loving human being,” the film’s director, Daniel Tenenbaum, told The Post.

Additional reporting by ­Reuven Fenton, Daniel Prendergast and Beckie Strum