Jennifer Lopez says she was "stunned" when she heard the news that her friends, Tom Cruise and Katie Holmes, had split.

Lopez, who attended the couple's wedding nearly six years ago, sat down with "Entertainment Tonight" Thursday and offered some insight into the split, drawn from her own recent divorce from singer Marc Anthony.

"I'm sad for them. They're both really lovely people, and just like Marc and I, it's not what you want to happen," Lopez said. "You fight and you try until you realize you can't anymore."

Lopez, who announced Friday that she would be leaving "American Idol," said she hasn't spoken to either Holmes or Cruise since the split, but that she's "thought about it a lot."

With two children of her own from her marriage to Anthony, Lopez also considered the impact the split might have on Cruise and Holmes' 6-year-old daughter, Suri, and Cruise's two adopted children, Isabella and Connor, from his marriage to Nicole Kidman.

"You know I just wish them peace in their decision. And really for Suri and their other children as well, because you become such a family," she said. "It's not just Suri, it's Connor and Isabella and everybody; you all become a family. And when that breaks apart, nobody wins; everybody's heartbroken in some way. And I just wish them peace."

Lopez isn't the first star to offer some kind words to a fellow celeb during divorce. Click through the slides below to see which celebrities stood by their friends during a tough split.

Loading Slideshow...
  • QUESTION: During her divorce from NBA player Tony Parker, Eva Longoria found support from friends on the set of "Desperate Housewives." Along with Felicity Huffman, which co-star did Longoria say was especially supportive?

    <strong>a) Nicollette Sheridan b) Teri Hatcher c) Marcia Cross d) Ricardo Chavira</strong>

  • ANSWER: Marcia Cross

    After <a href="http://www.people.com/people/eva_longoria/0,,,00.html" target="_hplink">filing for divorce</a> from Tony Parker in November 2010, Eva Longoria returned to the "Desperate Housewives" set. "Everyone is being very sympathetic to Eva's situation," an on-set <a href="http://www.people.com/people/article/0,,20443667,00.html" target="_hplink">source told <em>People </em></a>at the time. "Work has to go on -- but the whole set is very protective of Eva." Marcia Cross and Felicity Huffman were especially protective of Eva, who split from Parker after reports of his infidelity emerged. "I'm really close with Felicity [Huffman] and Marcia [Cross]," <a href="http://www.accesshollywood.com/newly-divorced-eva-longoria-talks-regrets-and-her-wedding-day-tattoo-did-she-have-it-removed_article_46382" target="_hplink">Longoria told "Access Hollywood"</a> in April 2011. "We live near each other and we just kind of see each other a lot more and they've been amazingly supportive through this whole thing that I've been through so we are friends outside of the show."

  • QUESTION: Which famous friend lent Nicole Kidman some support on the red carpet days before the news of her split from Tom Cruise was announced?

    <strong>a) Ewan McGregor b) Naomi Watts c) Hugh Jackman d) Thandie Newton </strong>

  • ANSWER: Naomi Watts

    Just days before Nicole Kidman and Tom Cruise announced their split, Kidman walked the red carpet for the U.S. premiere of "The Others," sans Cruise (the <a href="http://pqasb.pqarchiver.com/latimes/access/77237814.html?dids=77237814:77237814&FMT=ABS&FMTS=ABS:FT&type=current&date=Aug+09%2C+2001&author=ANN+O'NEILL&pub=Los+Angeles+Times&desc=Keeping+Their+Distance+at+Premiere&pqatl=google" target="_hplink">mega star arrived after</a> his soon-to-be-ex wife was seated.) But she didn't do it alone. Longtime friend Naomi Watts lent some support as the bulbs flashed, <a href="http://www.dailymail.co.uk/tvshowbiz/article-313856/Naomi-wears-Nicoles-hand-downs.html#ixzz1phb19qAa" target="_hplink">walking hand-in-hand with Kidman</a> at the premiere. Kidman commented on the supportive friendship in a <a href="http://www.thedailybeast.com/newsweek/2002/02/03/don-t-mention-the-oscars.html" target="_hplink">February 2002 "Newsweek" Oscar roundtable</a> featuring the the two women. "This is not that kind of friendship where it's like, 'Oh, yeah, we were friends,'" she explained. "We've shared boyfriends, breakups, bottles of wine when we thought our lives were over. I mean, every single thing you can imagine. She moved into my house when I got divorced and took care of me."

  • QUESTION: Which of Courteney Cox's former "Friends" co-stars did the actress say had "been amazing" when she separated from David Arquette?

    <strong>a) David Schwimmer b) Lisa Kudrow c) Matthew Perry d) Jennifer Aniston </strong>

  • ANSWER: Jennifer Aniston

    It's a friendship that would do Monica and Rachel proud. Cox, who was <a href="http://www.askmen.com/celebs/entertainment-news/courteney-cox/cox-friendly-support.html" target="_hplink">reportedly supportive</a> of Jennifer Aniston during her <a href="http://www.people.com/people/article/0,26334,1042412,00.html" target="_hplink">2005 divorce from Brad Pitt</a>, leaned on Aniston when she announced her <a href="http://www.people.com/people/article/0,,20433530,00.html" target="_hplink">separation from David Arquette</a> in October 2010. "It's funny, a lot of really close friends are kind of going through this right now or like Jennifer [who] has gone through it," <a href="http://www.usmagazine.com/celebrity-body/news/cox-and-arquette-flashes-2010111#ixzz1qdUKkzRZ" target="_hplink">Cox told <em>US Weekly</em></a> shortly after the announcement. "I don't know what's going on in the planets or what, but things are being shaken up and I don't know what's going to happen, but, yeah, Jennifer has been amazing for sure." When the holidays came around, the <a href="http://www.people.com/people/article/0,,20453303,00.html" target="_hplink">pair reportedly spent Christmas Eve</a> together with Cox's daughter, Coco Arquette.

  • QUESTION: Which of Sandra Bullock's famous friends said, "When times are tough, friends step up" after reports of Jesse James' affair emerged?

    <strong>a) Ryan Reynolds b) Heidi Klum c) Keanu Reeves d) George Lopez</strong>

  • ANSWER: George Lopez

    George Lopez, who was discovered by Sandra Bullock (whom he calls <a href="http://www.people.com/people/article/0,,20356926,00.html" target="_hplink">his "fairy godmother"</a>) in 2000, <a href="http://www.parade.com/celebrity/hollywood-wire/2010/04/16/george-lopez-supports-sandra-bullock.html" target="_hplink">visited Bullock's home</a> multiple times after <a href="http://blog.sfgate.com/abraham/2010/03/17/sandra-bullock-marriage-trouble-jesse-james-cheating/" target="_hplink">Jesse James' infidelity</a> came to light in March 2010. "She knows how much I care about her," Lopez told<a href="http://www.parade.com/celebrity/hollywood-wire/2010/04/16/george-lopez-supports-sandra-bullock.html" target="_hplink"> E!'s "Daily 10" in April 2010</a>, the same month Bullock <a href="http://www.people.com/people/package/article/0,,20364464_20364640,00.html" target="_hplink">filed to divorce James</a>. "And, you know, when times are tough, friends step up."

  • QUESTION: Even at the wedding, Oprah said she knew things wouldn't work out between this famous friend and her spouse.

    <strong>a) Julia Roberts b) Rosie O'Donnell c) Gayle King d) Maria Shriver</strong>

  • ANSWER: Gayle King

    In an August 2006 <a href="http://www.oprah.com/omagazine/Gayle-King-and-Oprah-Uncensored-The-O-Magazine-Interview/4" target="_hplink">"O, The Oprah Magazine" interview</a>, Gayle King was shocked to learn that Oprah, her maid of honor at her 1983 wedding to William Bumpus, knew the marriage wouldn't work out. "It just felt kind of pitiful. I never told you because it wasn't my place to say that," Oprah said, adding "maybe it's just me being jealous." But Oprah's bestie intuition was right; King and Bumpus would go on to divorce in 1993 due to his infidelity, King said on her <a href="http://www.cbsnews.com/stories/2006/11/14/entertainment/main2180020.shtml" target="_hplink">XM Satellite radio show</a> in February 2009. Oprah also commended King's co-parenting with Bumpus in the interview. "I love the way she understood that though the marriage was not going to work, her husband still needed to have a space to maintain a strong relationship with these kids," <a href="http://www.oprah.com/omagazine/Gayle-King-and-Oprah-Uncensored-The-O-Magazine-Interview/4#ixzz1r0jxDlJA" target="_hplink">she said</a>. "That takes a real woman. It's always, always, always been about what's best for her children.

Also on HuffPost: