The terror-linked Brooklyn imam who palled around in a photo opp this week with socialist NYC mayoral candidate Zohran Mamdani once urged “jihad” on the Big Apple.

Imam Siraj Wahhaj, one of the nation’s foremost Muslim leaders, delivered his radical message during a sermon in the early 2000s, telling followers to participate in gun-free jihad and “march through the city of New York,” according to a foreign intelligence assessment obtained Saturday by The Post.

“I pray one day Allah will bless us to raise an army, and I’m serious about this,” he said during the sermon, which was first reported by Islamist Watch and cited in the intelligence report.

Siraj Wahhaj, the terror-linked Brooklyn imam who palled around in a photo opp Friday with socialist NYC mayoral candidate Zohran Mamdani, once urged “jihad” on the Big Apple. Anadolu

“We were very close, recently. We had made intention to raise an army of 10,000 men in New York City.”

“Muslim men to go fight in the way of subhanahu wa ta’ala,” added the Imam, using a using a phrase that roughly translates to “glory be to Allah.”

“800,000 Muslims in New York City,” he said. “Can you imagine, if 800,000 Muslims decide to march every day?”

Mamdani is the heavy favorite to win this year’s mayoral race. Andrew Schwartz / SplashNews.com

“I’m not telling you, no, don’t pick up a gun, no. Just march. March through the city of New York. Let them hear your voice. Let them hear it at night. Let them hear it 24 hours, until the whole city can’t sleep.”

He said a main goal of the demand was drumming up support to help fellow Muslims defend themselves against enemies in Bosnia.

“I’m asking for us to greet the duty for jihad here in America,” the 75-year-imam of a Bedford-Stuyvesant mosque said. “How? By helping our Muslim brothers and sisters by sending money over there and bringing weapons to Bosnia to the Muslims by any means necessary.”

Mamdani (center) poses for photo Friday with NYC Councilman Yusef Salaam (left) and Wahhaj (right). X/ZohranKMamdani

He added, “But don’t stop there. Collect money for the Muslims who are dying by the millions in Somalia. Don’t stop there. Let us march to Palestine and liberate our brothers and sisters there. But don’t stop there. Let’s go to Algeria, and liberate the Muslims there. Don’t stop there. Go all over the world.”

Mamdani gleefully campaigned Friday with Wahhaj, a notorious, gay-hating imam who is an unindicted co-conspirator in 1993 World Trade Center bombing and who has been linked to other terrorist activity in the United States.

The Democratic frontrunner to become the city’s next mayor was seen laughing and grinning while standing arm-in-arm with Wahhaj  at the imam’s Bedford-Stuyvesant mosque in a photo the socialist posted on X a day after the first mayoral debate.