At the end of an election filled with divisiveness, Yosef Rapaport didn’t know what to expect when he tweeted that he had dedicated his vote to the American Muslim soldier Captain Humayun Khan — the American Muslim soldier killed in combat whose father Khizr spoke movingly about his sacrifice at the Democratic National Convention. That speech was an extended rebuke to Republican candidate Donald Trump’s repeated call to ban Muslims from the United States, after which Trump belittled the family.

But Rapaport, whose parents were Hungarian Holocaust survivors, shouldn’t have worried about how his tweet would be received. At the time of publication, his message had been liked almost 12,000 times and retweeted 5,496 times, including by such luminaries as J.K. Rowling, author of the Harry Potter series.

“The people who write me in response,” he told the Forward, “it brought me to tears. It’s what makes me proud to be an American.”

I’m an Orthodox Jewish Immigrant My vote is private. Dedicated in honor of US CPT Khan, his devotion makes (religious) freedom possible pic.twitter.com/httaaUspeM— Yosef Rapaport (@YosefRapaport) November 8, 2016

Rapaport, who is a Haredi Hasidic Jew, shared a photo of himself holding a folder carefully masking his completed ballot, alongside a photo of Captain Khan and his gravestone. As an Orthodox Jewish immigrant, he wrote, he wanted to highlight how Captain Khan’s “devotion makes (religious) freedom possible.”

“Religious freedom and freedom in general is something that’s near and dear to my heart,” he told the Forward.

In his speech at the convention, Khizr Khan, an immigration lawyer, pulled a mini edition of the Constitution out of his pocket and urged Trump to read it. Afterwards, Trump asked why Humayun Khan’s mother hadn’t spoken as well, and said that he had sacrificed as well — by working hard.

“I definitely had it in mind that an attack on one religious minority is a threat to my existence in America,” Rapaport said. “I feel this extra need to have gratitude towards others [with whom] I probably wouldn’t see eye to eye politically.”

“It’s a fundamental Jewish concept of hakarat hatov, you have to honor the goodness that others did for you.”

A number of Twitter users praised Rapaport for lending some much-needed goodness to the stressful climax of the campaign season.

So who’s Rapaport voting for? He laughed at the question.

“You don’t gottta be stupid to know who I voted for,” he said.

This is exactly the kind of unity our country needs going forward. Thank you, @YosefRapaporthttps://t.co/oT0WQ6YQbB— Jen Phillips (@ClutchScience) November 8, 2016

This is the power of humanity! Very proud of you @YosefRapaporthttps://t.co/rd8tUmINYV— Shahbaz Taseer (@ShahbazTaseer) November 8, 2016

We come to our political views from different places but @YosefRapaport honors America & our community with this heartfelt election message https://t.co/Z1Mun4rfLT— Chaskel Bennett (@ChaskelBennett) November 8, 2016

This Ultra-Orthodox Jew Dedicated His Vote to Slain Muslim Soldier — and Tweeted It

This Ultra-Orthodox Jew Dedicated His Vote to Slain Muslim Soldier — and Tweeted It

Talya Zax is the Forward’s culture fellow. Contact her at zax@forward.com or on Twitter, @TalyaZax