NEWYou can now listen to Fox News articles!

A man accused of killing another passenger in a weekend stabbing on a Chicago train allegedly recorded the attack and its aftermath on his cellphone, according to prosecutors.

FOX 32 Chicago reported that 40-year-old Demetrius Thurman is charged with murder in the stabbing death of 37-year-old Dominique Pollion, who was sleeping on a Blue Line train early Saturday morning when the attack occurred.

Court records reviewed by the station show Pollion had been asleep in the train car for nearly an hour without interacting with Thurman, and prosecutors said the men did not know each other.

Thurman allegedly approached Pollion from behind at about 2:17 a.m., began recording on his phone, and stabbed him once in the chest near his heart and once in the abdomen with a knife that had a bright-orange handle, court documents show.

TWICE-DEPORTED HONDURAN ACCUSED OF STABBING PASSENGER ON CHARLOTTE LIGHT RAIL FACES FEDERAL CHARGES

Demetrius Thurman

Prosecutors allege that Demetrius Thurman recorded a fatal Chicago train stabbing and its aftermath on his phone, with CTA video helping identify him as a suspect. (Cook County Sheriff's Office)

Pollion woke up screaming and tried to back away down the train car aisle before collapsing, prosecutors said. Thurman then switched trains.

Pollion was taken to a nearby hospital, where he later died.

CTA surveillance video captured the attack and its aftermath, prosecutors said, as did video recorded on Thurman’s phone.

NYC TEEN ARRESTED, CHARGED FOR SETTING HOMELESS SUBWAY RIDER ON FIRE, POLICE SAY

Chicago Blue Line Train

A security officer talks with a passenger on a Blue Line train at the CTA Forest Park station in Chicago. (John J. Kim/Chicago Tribune/Tribune News Service via Getty Images)

Immediately after the stabbing, court documents say, Thurman pointed the phone toward himself, capturing his face on video.

When the train arrived at the Clark/Lake station a short time later, a passenger alerted security officers on the platform. While outside the train car, Thurman allegedly turned the camera on himself again and said, "somebody got his ass," before leaving the station.

Investigators gathered images from surveillance video that prosecutors said showed Thurman’s face and submitted them to Illinois’ facial recognition program, which led to his identification.

CHICAGO PERSON OF INTEREST IN TRAIN FIRE ATTACK HAS 22 PRIOR ARRESTS, WAS FREED BY JUDGE: REPORT

Chicago shooting police tape

Investigators allege that a Chicago man recorded a fatal Blue Line train stabbing and its aftermath on his phone, with CTA video helping identify the suspect. (Terrence Antonio James/Chicago Tribune/Tribune News Service via Getty Images)

Police later issued a bulletin, and a Chicago police officer who had encountered Thurman just days earlier recognized him. The officer said Thurman had been sleeping on a Blue Line train at the time and provided his driver’s license during that encounter.

Thurman was arrested Sunday. Court documents say he was wearing the same clothes seen in the surveillance video and was in possession of a cellphone that contained recordings of the stabbing, along with photos of other passengers sleeping on the train.

Prosecutors said Thurman’s cousin also identified him as the person seen on surveillance video, and they allege Thurman admitted to stabbing Pollion. He was charged with first-degree murder.

CLICK HERE TO DOWNLOAD THE FOX NEWS APP

FOX 32 reported that Thurman’s criminal past includes disorderly conduct, DUI and a 2023 traffic arrest. His next court date is scheduled for Jan. 20.

Crime on the CTA drew federal scrutiny after a November incident in which a man set a woman on fire aboard a downtown train.

On Dec. 19, federal transit officials ordered the agency to submit a tougher safety plan within 90 days or risk losing a quarter of its federal operating funds.