Jennifer Garner is hoping for the best for Ben Affleck and Jennifer Lopez.

Jennifer Garner Is Supporting Ben Affleck Through Marital Struggle Rumors with Jennifer lopez

As Affleck, 51, and Lopez, 54, experience marriage troubles just under two years since tying the knot, a source tells PEOPLE that Garner “wants the best for” ex-husband Affleck.

“She wants him happy and healthy so he can be the best dad possible,” says the source. Garner, 52, and Affleck share three kids: Violet, 18, Seraphina, 15, and Samuel, 12.

The source adds that Garner, who is dating chairman and CEO of Cali Group John Miller, “likes that [Lopez] lives a healthy lifestyle and supports Ben’s sobriety. Jen wants that for Ben.”

Ben Affleck and Jennifer Lopez 'This Is Me... Now: A Love Story' Los Angeles Premiere

Ben Affleck and Jennifer Lopez on Feb. 13, 2024.JOHN SALANGSANG/SHUTTERSTOCK

Affleck and Garner married in 2009. The former couple announced they were divorcing in 2015 and officially filed for divorce in April 2017; their divorce was finalized the following year.

Lopez and Affleck rekindled their romance in 2021 and married in July 2022. Lopez has promoted her movie Atlas in Los Angeles and Mexico solo as Affleck continues filming his upcoming project The Accountant 2 in Los Angeles. The pair have been living apart from each other in L.A. in recent weeks.

ben-affleck-jennifer-garner-1.jpg

Ben Affleck and Jennifer Garne. ALBERTO E. RODRIGUEZ/WIREIMAGE

Back in 2020, Affleck told PEOPLE he felt “very grateful and respectful” toward Garner and spoke to the need for their children to see both parents continue to communicate and get along after divorce.

“Our marriage didn’t work, and that’s difficult. Both of us really believe that it’s important for kids to see their parents respect one another and get along, whether they’re together or not,” he said at the time.

“It’s important for my kids to know that I respect and care about Jen and she treats me the same way,” Affleck added. “I have a lot of respect and gratitude toward her. And I wish her the very best.”