Ben Affleck had a cute message for his ex-wife Jennifer Garner.

Affleck and Garner, who share kids Violet, 15, Samuel, 9, and Seraphina, 12, were married from 2005 to 2018.

RELATED: Ben Affleck Hilariously ‘Batmansplains’ Jimmy Kimmel During ‘Vax Live’

“So happy to share these kids with you. Luckiest parents in the world. Thanks for all the good you do,” Affleck wrote next to a collection of photos of Garner and their kids.

He added, “Happy Mother’s Day. Love, their Dad.”

RELATED: Jennifer Garner Opens Up About The ‘Hard’ Parts Of Ben Affleck Divorce

Affleck and Garner have continued to co-parent their kids over the years and frequently put the effort out there to put the kids first like both attending Samuel’s swim class recently.

A number of other celebs have posted messages for Mother’s Day including Ryan Reynolds and Celine Dion.