RICHMOND, Va. (AP) - Former President Barack Obama is set to return to the campaign trail for the first time since he left office with a rally to help Democrat Ralph Northam in Virginia's closely watched race for governor.

The Northam campaign announced that the lieutenant governor and Obama will appear together at an event in Richmond on Oct. 19.

Virginia is one of only two states electing new governors this year and the swing state's contest is viewed as a possible early referendum on President Donald Trump.

Trump recently endorsed Republican Ed Gillespie in a tweet, but has otherwise not been directly involved in the race. Former Vice President Joe Biden will campaign with Northam the same day.

According to our sister ABC affiliate, WRIC, the event is set to take place at the Richmond Convention Center, where the doors will open at 5 p.m.

Tickets are required to enter.

Representatives will be distributing tickets at the Richmond Coliseum starting Wednesday at 5 p.m. for those who have pre-registered for the event.