NEWARK, N.J. (AP) -- Former U.S. President Barack Obama called on fellow Democrats to reject politics of "division" and "fear" while rallying on Thursday with party's candidates for governors in Virginia and New Jersey.

"Why are we deliberately trying to misunderstand each other, and be cruel to each other and put each other down? That's not who we are," Obama said at the Virginia rally in front of several thousand supporters.

Stepping back into the political spotlight for the first time since leaving the White House in January, Obama did not mention President Donald Trump in his speeches at Richmond's convention centre or at a Newark hotel. But he did tell crowds at both events that they could send a message to the rest of the country in the upcoming elections.

"Our democracy's at stake and it's at stake right here in Virginia," Obama said.

Virginia and New Jersey are the only two states electing new governors this year and those Nov. 7 races will be considered a bellwether of Democrats' strength in the face of Trump's victory last year.