Mayor de Blasio implored a skeptical congregation of Syrian Jews Saturday to empathize with Muslim refugees from their shared homeland and welcome them to New York.

Orthodox worshippers at Brooklyn’s Congregation Shaare Zion murmured uncomfortably as de Blasio compared Syrian refugees fleeing their war-torn country with Jews fleeing the Nazis.

“I know this community understands deeply the pain of any family that must leave a homeland they love because they were forced away by violence and discrimination,” said de Blasio in his Sabbath address.

“When it comes to saving children and families from one of the greatest crises of our times, I remind people to look at history,” he added.

Some worshippers disputed the mayor’s historical interpretation.

“I don’t think it’s a fair comparison . . . The Jews never had a history of being destructive,” said Brooklyn resident Judy Zarug.

“I was sitting next to a woman who is a Syrian refugee and she really reacted and it was uncomfortable.”

Another congregant, whose family fled Syria, also disagreed, explaining:

“The difference between me coming here in 1991 with my family is that we were kicked out for being Jewish.”

The crowd’s only applause came when the mayor vowed to protect the city’s Jews in the wake of targeted attacks in Jerusalem and Paris this year.