Patton Oswalt is paying it forward – but not in the way you might expect.

It all started with a NSFW tweet from Oswalt on Thursday, in which he criticized President Donald Trump and said, "you're going to resign."

Twitter user Michael Beatty tweeted back at Oswalt, "I just realized why I was so happy you died in Blade Trinity!" Beatty also said in another tweet that Oswalt plays basketball like "the sawed off little man you are."

Oswalt responded to Beatty's barbs, "I get told this at least twice a week by Trump supporters. It always makes me smile and I’m grateful and blessed."

What Oswalt didn't know was that the 64-year-old from Huntsville, Ala., who had just tweeted at him was fighting to pay his medical bills following a two-week hospital stay after falling into a coma because of diabetes and sepsis complications.

But when Oswalt found out, he swapped out his snark for generosity, directing his followers to Beatty's GoFundMe page, set up to help alleviate his medical expenses.

"Aw, man. This dude just attacked me on Twitter and I joked back but then I looked at his timeline and he’s in a LOT of trouble health-wise. I’d be pissed off too," Oswalt wrote in a NSFW tweet. "He’s been dealt some (expletive) cards — let’s deal him some good ones. Click and donate — just like I’m about to."

Oswalt donated $2,000 to the fund, which has since reached $30,524 – well past the original $5,000 goal – at the time of publication.

Beatty responded on Twitter, saying that the comedian's support left him speechless.

"Patton. You have humbled me to the point where I can barely compose my words. You have caused me to take pause and reflect on how harmful words from my mouth could result in such an outpouring," Beatty tweeted. "Thank you for this and I will pass this on to my cousin who needs help. A cascade."

Their exchange continued when Oswalt suggested that Rep. Alexandria Ocasio-Cortez, whom Beatty criticized in past tweets, is trying to make it so people like Beatty can get affordable medical help.

"Whew! Is your cousin the one who had sepsis or was it you? Either way I’m glad the $$$ goal was met. And PLEASE understand that people like @AOC are battling so you DON’T have to depend on GoFundMe to live with dignity and vigor. (And I’m working on getting to Alabama...)"

Beatty continued to share his gratitude, tweeting: "@pattonoswalt managed to not only let me slide on a rough tweet to him but started something that has me reevaluating friendships and productive dialogue regardless of political affiliation. He's a good man and I hope that I can meet him one day to cement a relationship."

Oswalt's giving streak didn't end with Beatty, as the 49-year-old actor encouraged Beatty to pay it forward as well.

"What a great way to end the day. If you want to pay this forward, maybe find a GoFundMe for a furloughed government worker who’s feeling the pinch? Or make a big-ass haul o’ goodies to your local food bank? Something? Anything?"

“After today, I tend to think I’m a tempered Republican,” Beatty said in an interview with the Washington Post. “I’m having to reevaluate some of the things I’ve gone along with. The biggest thing I learned about (Oswalt) is that he is a man of character.”