A Brooklyn man suspected of butchering his father walked into a bagel shop near the grisly crime scene and claimed he not only killed his dad — but also devoured parts of his body, police sources told The Post on Thursday.

Khaled Ahmad allegedly walked into Park Bagels drenched in blood Wednesday, ranting to a clerk about the murder, a high-ranking police source said.

“One of the store’s owners alerted the officer who was outside that it appears his partner was having an interaction with a person that they know is a regular and is crazy,” according to the source.

“The perp was ranting about how he killed and ate his father and had visible signs of blood on him.”

Officers handcuffed Ahmad, 26, and returned to the two-family brick home on 84th Street, where they found 57-year-old Imad Ahmad’s mutilated body.

The two had been holed up in the family’s Dyker Heights home during the coronavirus outbreak.

Ahmad, who was charged with murder and weapons possession, later denied to detectives that he had eaten parts of his father’s body, source said.

He was taken to Lutheran Hospital for evaluation, police said.

Officers had been at the home before, responding to reports of a disturbance at least four times in February, including a Feb. 15 incident when Ahmad was taken to the hospital after his father reported he had a knife, police records show.

According to a GoFundMe page he posted last year, the younger Ahmad was unhappy about living in Brooklyn and sought $1 million to return to the Palestinian territories to be with his family.

He griped about “cockroaches everywhere,” including in his bed, “processed food” and the lack of money in the GoFundMe page. “Smells like dog piss everywhere I go,” Ahmad wrote on a list of “reasons I’m leaving NY.”

“Stress level is very high,” he said. “Everything is expensive.”

By contrast, he gave four reasons why he wanted to go back: “I want to be in my country: food is great, family, nice weather” and “restful sleep.”

As for the high dollar amount he was seeking, the balding Ahmad’s reasons included: “look at my hair :(”

He said he was born in Brooklyn but moved to the Palestinian territories with his family when he was 2, and lived there for 13 years.

Despite the political turmoil in the region, he said he had a happy childhood there.

He wrote that “yes it was hard growing up there but I am a guy who always looks in the positives before I worry about the negatives, so overall it didn’t effect [sic] me.”

“As a kid I was always happy moving around and playing major sports, speaking about sports it was my only escape from stressful situation I deal with and was a platform to meet new people on a daily bases [sic],” he wrote. “Anyways the reason I’m asking for this much money because I would like to go back there and enjoy family time like the good old school way.”

“If you’re rich and would like to donate it would be appreciated.”

The page, posted on Sept. 25, has received no donations.