Splash News 1 / 10

Usher attempted to make peace with ex-wife Tameka Foster at end of the emergency child custody hearing on Friday, Aug. 9, walking over to the mother of his two sons, Usher V, 5, and Naviyd, 4, and giving her a hug.

PHOTOS: Celeb health scares

In photos from inside the courtroom, the singer is seen pulling her into him and giving her a hug, whispering something to her. She accepts the hug but seems to hold back, trying not to look at him.

Indeed, it's been an emotional roller coaster for the couple, as their son Usher nearly died in a pool incident on Aug. 5. (According to TMZ, on Monday, the 5-year-old was swimming in the singer's pool with his aunt Rena Oden when he dove under water to retrieve a toy from the drain. His arm then got stuck in the drain, and neither his aunt nor a maid could free him. Two contractors who had been working in the house reportedly came out and they were able to get the child's arm out. He was then given CPR and rushed to the hospital, where he is expected to be OK.)

PHOTOS: Celeb injuries

During the emergency child custody hearing where Foster was seeking temporary primary custody of the kids, the a celeb hairstylist alleged that the children were in a "dangerous environment" and broke down in tears when the 911 call from Monday was played.

As Us Weekly reported on Aug. 9, after much debate, a judge ruled in favor of Raymond. (In 2012, "The Voice" coach was given primary custody of the kids following a bitter custody battle, with Foster receiving limited custodial rights.)

"What happened here was an awful accident, and I don't know based on the evidence I've heard, had any single person been at the poolside, that one person could have done better than Ms. Oden," the judge said on Aug. 9. "He also told Foster that her "standards for caregivers are very high."

PHOTOS: Dad's on duty

"Most people who cared for us or our kids probably didn't' have all the qualifications that you required," the judge added to Foster. "I'm denying the motion. I would say, Mr. Raymond, in the future you would be well-advised to keep your former spouse informed about your whereabouts and who is taking care of the kids. That will be a feature perhaps in this case as it moves forward or the companion case as it moves forward."

Usher and Foster married in 2007 and divorced two years later.


Judge sides with Usher in child custody battle

Usher's son hospitalized after pool accident: Report

Who Said It? Dad quotes