Chris Rockis cracking jokes about his own divorce amid the news that his friend and fellow comicJohn Mulaneyhas split from wifeAnna Marie Tendler.

Rock, 56, made an appearance onThe Tonight Show with Jimmy FallonTuesday and shared that he gave some friendly advice to Mulaney, 38, when he saw him recently while doing standup.

Reflecting on his split from ex-wife Malaak Compton-Rock, the comedian joked about “how much money” he lost during the divorce.

“The other night I saw Mulaney. Mulaney’s working on new stuff, Mulaney’s getting divorced,” Rock said. “This is how much money I lost in my divorce — I recommended my ex-wife’s divorce lawyer. I was like ‘You should get this guy, he’ll get you your money.'”

“That’s a friend!” hostJimmy Fallonreplied as the pair shared a laugh.

“This guy is good, ‘cause I walked out with nothing. I couldn’t even afford the tickets tonight!” Rock further quipped. “You think I’m joking, but I really did.”

Matt Winkelmeyer/Getty Images; Kevin Mazur/Getty Images

John Mulaney and Chris Rock

Rockfinalized his divorcefrom Compton-Rock in 2016, two years after the former couple first announced their split following nearly 20 years of marriage.

Meanwhile, news broke last week that Mulaney and Tendler areending their six-year marriage.

“I am heartbroken that John has decided to end our marriage. I wish him support and success as he continues his recovery,” Tendler said in a statement to PEOPLE through her rep, referencing the comedian’s addiction recovery after his60-day rehab stayearlier this year.

John Mulaney and Anna Marie Tendler.Kevin Mazur/Getty Images

John Mulaney and Annamarie Tendler

Mulaney’s rep toldPage Six, “John will not have any further comment as he continues to focus on his recovery and getting back to work.”

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories.

“This is very new, they’re taking it slowly,” a source close to Mulaney said. “They met at church in Los Angeles.”

Reps for the two could not be reached for immediate comment at the time.

source: people.com