He's back.

Former president Barack Obama is set to return to the campaign trail next week for the first time since leaving the White House.

The 44th U.S. president is scheduled to attend a rally on Oct. 19 for Virginia's Democratic gubernatorial candidate Ralph Northam, Northam's campaign said in a statement Wednesday.

“President Barack Obama said that ‘I want to tell you how important Virginia is to me. It means the world to me. It means our legacy, for me and Michelle. I’m going to do everything that I can to come to Virginia to campaign for you,’” Northam told the crowd at a Wednesday campaign event, Richmond Times Dispatch reported.

The event will focus on "the need for the next governor to create economic opportunity for all Virginians," Northam's campaign said.

A swing state, Virginia is holding one of only two gubernatorial elections in the off-year cycle, with the other in New Jersey.

Since leaving office, Obama has mostly remained out of politics — he admitted to crying after dropping daughter Malia off for her freshman year at Harvard University — but he hasn't shied away from criticizing President Trump and Republicans when it comes to rollbacks of his signature policies.

Last month, he called GOP efforts to dismantle Obamacare "aggravating" and he condemned Trump's decision to end DACA because "to target these young people is wrong — because they have done nothing wrong."

Former vice president Joe Biden will also hit the trail for Northam, attending a roundtable discussion with the state's lieutenant governor Saturday.

But Northam's Republican opponent, Ed Gillespie, is not lacking in high profile endorsements and campaign trail cameos, either.

Last week, Trump urged people to vote for Gillespie by bashing Northam for "fighting for the violent MS-13 killer gangs & sanctuary cities."

On Saturday, Vice President Pence will join the former GOP chair at an event in Abingdon, Va., and former president George W. Bush will hold fundraisers in Alexandria and Richmond on Oct. 16, the Richmond Times Dispatch reported.

With less than a month remaining until the Nov. 7 election, Northam leads in the polls by four to 13 points, according to RealClear Politics' data.

Contributing: The Associated Press

Follow Ryan Miller on Twitter @RyanW_Miller