In a video message on X, Pelosi said she will not be seeking re-election to Congress at the end of her term in January 2027.