Updated

Jennifer Lopez completed the Nautica Malibu Triathlon on Sunday in two hours, 23 minutes and 38.8 seconds, Usmagazine.com reported.

The singer, 39, pumped her arms in the air and smiled broadly as she crossed the finish line of the swimming-running-biking event.

"Thank you guys so much," she told the crowd. "This is an amazing day.

Photo Essay: Jennifer Lopez Finishes Triathlon

"I feel really great and so glad I finished and that I made it out of the water but more amazing than that, I feel really great that we raised $127,000 for the Children's Hospital [of Los Angeles] and hopefully it'll go to good use," Lopez added. The entire event raised $950,000.

Husband Marc Anthony was on the sidelines. The couple kissed between the biking and running portions of the race.

After finishing, Lopez joined her family and Matthew McConaughey, who came in before her, in the VIP area. McConaughey was accompanied by his girlfriend Camila Alves and their newborn son Levi. McConaughey's race time was one hour, 30 minutes and 44.7 seconds.

Lopez was inspired to run a triathlon while eight months pregnant with twins Max and Emme, who were born in February.

"I was beached like a whale," Lopez said on ABC's "Good Morning America" last month. "I was watching TV, and I saw a triathlon and I said, 'You know what? I think I could do that, that would be great for me to do. Maybe I'll do it this year,'" she explained.

"Swimming is a killer," Lopez admitted. "I'm not going to lie."

She also joked that she was determined to finish the race even if she "has to crawl across that finish line."

Lopez and Anthony returned to NYC after the event to host his 40th birthday bash Sunday night.

Click here to read more in usmagazine.com