A man accused of stabbing two children in Brooklyn in 2014, killing one of them, was found guilty Tuesday at his trial.

"I'm so glad that there is a God," Arika McClinton, the mother of the little boy killed, said to members of the media outside the courthouse. "God said, 'Hold on: Nothing happens in man's time. Everything happens in God's time. And this was his time, and he made it our time, and now little Prince [Joshua Avitto] can run around heaven and do whatever he's doing!'"

Daniel St. Hubert was found guilty on murder and attempted murder charges.

Prosecutors said he followed Mikayla Capers and Avitto into an elevator at the Boulevard Houses in East New York and stabbed them.

Brooklyn prosecutors said St. Hubert stabbed Avitto 11 times. Avitto was six years old. He died from his injuries.

His best friend, Capers, who was seven at the time, was severely injured after she was stabbed 16 times, according to officials, but she survived.

The now-11-year-old testified against St. Hubert last month. Witnesses, video surveillance, and cell phone records also placed the defendant near the crime scene.

The families of Capers and Avitto said they have been living a nightmare in the four years since the children were savagely attacked on their way to Avitto's sixth-floor apartment to get Italian Ices.

"I had a downfall with faiths at some points, because it was hard and long. Sometimes we came here [and] there was nothing to be here for," McClinton said.

But the families exited the courtroom cheering the verdict, with the family of the slain boy chanting, "P.J.! P.J.!" for Prince Joshua. They said they now have justice and believe Avitto can now rest in peace.

St. Hubert's defense attorney still says the wrong man was charged with murder, and that he will appeal the verdict.

"There was too much good cheer that emerged from that jury and you could hear the sounds. Whatever the verdict, it's not an occasion for humor and laughter, because I'm not laughing. And I frankly expect that this verdict will be reversed on appeal," said Howard Greenberg, the defense attorney.

After St. Hubert was found guilty, NY1 talked to his family exclusively, and his sister apologized to the families of the two young children.

"If they stated that my brother did this crime, I am terribly sorry, and understand that the anger should be directed towards the state because he was in their care and they gave him no medical, mental health assistance," said Judith Perry, St. Hubert's sister. "They released him with no medical apprehensive care, they knew he was schizophrenic, they knew he had bipolar, they knew he had manic disorder."

Avitto's mother said she accepts the apology. But Capers's grandmother, Regenia Trevathan, said she does not accept it, saying it is too late and it should have happened four years ago.

"These are children," Trevathan said. "From his mother, his sister, anybody — we don't want it now, because he will rot in hell."

St. Hubert is slated to be sentenced next month, and faces 50 years to life behind bars.