Harlem was feelin’ the Bern on Thursday night.

Sen. Bernie Sanders made a surprise appearance at the Jazz Foundation of America’s annual gala concert at the Apollo Theater to honor Harry Belafonte, who, along with Tony Bennett, received a lifetime achievement award from the organization.

“Everybody in this room, in this historic theater tonight knows that Harry has not just been one of the great entertainers of our lifetime, but he has been an incredible and heroic figure in the fight for human dignity, for racial justice and for economic justice,” Sanders, 77, told the crowd. “Harry was there before it was cool to be there. Harry stood with Dr. King, and with the civil rights movement, with the labor movement and with activists all over the world in the fight for human dignity and justice. So it’s just an honor for me to be here tonight to acknowledge to extraordinary life of Harry Belafonte.”

Belafonte, 92, wasn’t there to accept the honor himself, so former ambassador and civil rights activist Andrew Young accepted the award on Belafonte’s behalf.

“Harry would be here tonight, but I expect he’s too proud,” Young, 87, said. “He comes on a stage and he takes it over and I didn’t mind limping out here because nobody expects me to do anything, but I think Harry has been, in many ways, the godfather of the civil rights movement … He has been a voice of freedom and dignity that I thank you for supporting.”

Ben Stiller was on hand to present Bennett with his award, joking that the music legend was his real father. After accepting the award, the 92-year-old crooner belted out one of his most famous tunes, “I Left My Heart in San Francisco.”

Patti Smith, Savion Glover, Bruce Willis, The Count Basie Orchestra and Common’s supergroup August Greene were among the performers.

Even Quincy Jones, one of the honored guests of the evening, was spotted dancing as Common sang his set.