Marc Anthony and Jennifer Lopez recently proved that exes can still be good friends.

Just recently, the “You Sang to Me” singer shared a photo with his wife Shannon De Lima and some male friends at Lopez’s “All I Have” show in Las Vegas. His wife also posted a photo of the estranged couple with their respective partners, De Lima and Casper Smart, backstage, looking friendly and cozy.

Meanwhile, Entertainment Tonight reported that Anthony, De Lima and their friends sat at the VIP table during the event. During her performance, Lopez also gave her ex-husband a shoutout: “You’re an international legend and icon, but you’re also my baby daddy.” At this point, the crowd cheered and laughed. Lopez and Anthony have been blessed with twins, Max and Emme, 8.

According to E! News, Anthony and Lopez finalized their divorce in June 2013 after seven years of being together. However, they first made the announcement that they would be going their separate ways in 2011. “This was a very difficult decision. We have come to an amicable conclusion on all matters,” they said in a joint statement.

Meanwhile, Lopez also shared some details about her relationship with Anthony in her memoir “True Love.” According to the singer/actress/producer, she told her manager Benny Medina that her marriage to Anthony was already in the rocks the minute she realized that she could no longer stay married to him. “It was one of those moments when you’re so scared you can’t even scream. In a blur of fear and panic, I looked at Benny and my mother and blurted out the words: ‘I don’t think I can be with Marc anymore.’ Then I burst into tears,” she wrote.

Jennifer Lopez and Marc Anthony Jennifer Lopez and Marc Anthony's divorce in June 2013. Pictured: Jennifer Lopez and Marc Anthony at the finale of "Q'Viva! The Chosen" live show in Las Vegas, Nevada on May 26, 2012. Photo: Getty Images/Ethan Miller