Democratic presidential candidate Bernie Sanders Bernie SandersMcConnell accuses Democrats of sowing division by 'downplaying progress' on election security The Hill's Campaign Report: Arizona shifts towards Biden | Biden prepares for drive-in town hall | New Biden ad targets Latino voters Why Democrats must confront extreme left wing incitement to violence MORE accused rival Hillary Clinton Hillary Diane Rodham ClintonHillicon Valley: FBI chief says Russia is trying to interfere in election to undermine Biden | Treasury Dept. sanctions Iranian government-backed hackers The Hill's Campaign Report: Arizona shifts towards Biden | Biden prepares for drive-in town hall | New Biden ad targets Latino voters FBI chief says Russia is trying to interfere in election to undermine Biden MORE of closely embracing President Obama to win support from the black community.

"You know, Hillary Clinton now is trying to embrace the president as closely as she possibly can. Everything the president does is wonderful. She loves the president, he loves her and all that stuff," Sanders said in an interview with BET News.

ADVERTISEMENT

"And we know what's about. That's trying to win support from the African-American community where the president is enormously popular.

The Vermont senator said he had a lot of respect for the president, calling Obama "a friend," but noted the two have had disagreements in the past.

"We have worked together. I think he has done a great job in many respects. But you know what? Like any other human being, he is wrong on certain issues," Sanders said.

A campaign official for Clinton, Obama’s former secretary of State, said she is “proud of President Obama’s work,” as is most of the party.

"It's disappointing that Senator Sanders thinks the only reason a Democrat would be proud of President Obama's work would be a political ploy to court African American voters. We know Senator Sanders believes the President has shown failed leadership, but like Hillary Clinton, most Democrats have a different view,” the spokesman said.

On Wednesday, Republican presidential candidate Donald Trump Donald John TrumpHR McMaster says president's policy to withdraw troops from Afghanistan is 'unwise' Cast of 'Parks and Rec' reunite for virtual town hall to address Wisconsin voters Biden says Trump should step down over coronavirus response MORE said Clinton is cozying up to the president so his administration won't prosecute her for using a private email account and server as secretary of State.

“I think she’s being totally protected,” Trump said at a rally in Sumter, S.C.

“Do you ever notice the way she’s acting with Obama now? 'The president is right about this. The president is right about that. Oh, the president doesn’t want to do this.' I mean, did you ever hear her so solicitous? I mean, you know why. Tell me why. That’s right. She doesn’t want to get indicted.”

—Updated Friday at 8:13 a.m.