*Performing in her hometown of Brooklyn, NY Thursday night, Barbra Streisand brought some special guests along to join her onstage.

“I cannot say how incredible this moment for me to be onstage with you,” said Jamie Foxx, who stood alongside the living legend at Barclays Center and chatted a bit before tearing into “Climb Every Mountain” from “The Sound of Music.” They also sing the classic on Streisand’s forthcoming 35th studio album, “Encore: Movie Partners Sing Broadway.”

Patrick Wilson was also on hand Thursday, joined Streisand on stage for their duet “Loving You.”

Streisand entertained an A-List crowd that included Sarah Jessica Parker, Bravo’s Andy Cohen, CBS’s Gayle King and music mogul Clive Davis.

“Encore: Movie Partners Sing Broadway,” also featuring duets with Hugh Jackman, Alec Baldwin and Melissa McCarthy, is due Aug. 26.

Watch Streisand and Foxx below: