Seth Rogen heard about Stormy Daniels’ alleged tryst with President Donald Trump long before the rest of the world did.

“I’ve known Stormy Daniels a long time, and I’ll be honest, she may have mentioned some of this stuff around 10 years ago,” Rogen, 35, said on “The Ellen DeGeneres Show” on Monday. “At the time, when you ask a porn star who they’ve been sleeping with and the answer was Donald Trump, it was, like, the least surprising thing that she could’ve said.”

He stammered, “Again it wasn’t — at the time — wasn’t that surprising and then, as his campaign rolled out, it became clear that no one cared about anything he did. So, it didn’t really occur to me even that it would come out or that anyone would care about it, but then when I saw it, I was like, ‘Oh, yeah, Stormy told us all about that.’ ”

Rogen got to know the adult film actress because she made cameos in two of his films, “The 40-Year-Old Virgin” and “Knocked Up.”

“In our movies … there were two scenes in strip clubs, and we realized it was easier to hire, like, porn stars to play strippers rather than get actresses to play strippers who were not in porn,” he said. “‘Cause for Stormy, that was the easiest thing she did all week.”

Rogen said he hasn’t seen Daniels in years, “but she’s clearly done well with herself.”

Daniels, 39, claims to have had a one-night stand with Trump in 2006, and opened up about their alleged relationship in a recent interview on “60 Minutes,” despite signing a non-disclosure agreement in exchange for $130,000 in 2016. The White House has said Trump denies Daniels’ allegations of an affair.

For his part, Rogen has spent at least a year trolling Trump.

When he noticed that Donald Trump Jr. was following him on Twitter in February 2017, Rogen tweeted, “Yo! @DonaldJTrumpJr! I noticed you follow me on Twitter. Please ask your dad to resign before he destroys the planet. Thanks dude.”

Since then, he’s slid into Don Jr.’s DMs several times, asking him to get the commander-in-chief to resign as well as to accuse him of being a sexual predator.