Nov. 6 (UPI) -- Democratic Rep. Nancy Pelosi, the first woman Speaker of the House, announced Thursday after 40 years representing California in the U.S. Congress that she will not seek re-election.

Pelosi, 85, posted a video on X saying that she is retiring. She expressed her love of San Francisco in the nearly 6 minute video and mentioned her titles of Speaker of the House, leader and whip, but "there has been no greater honor for me than to stand on the House floor and say I speak for the people of San Francisco."

Pelosi's current term is her first in a non-leadership role since 2001. Her retirement comes just two days after the passage of California's ballot measure to redraw its Congressional districts, which she pushed for. She raised tens of millions of dollars for the measure, a person familiar with the efforts told CNN. She worked with California Gov. Gavin Newsom to get Prop 50 passed, and it won with 63% of the vote.

"I will not be seeking reelection to Congress. With a grateful heart, I look forward to my final year of service as your proud representative," she said. "As we go forward, my message to the city I love is this: San Francisco, know your power. We have made history, we have made progress, we have always led the way. And now we must continue to do so by remaining full participants in our democracy and fighting for the American ideals we hold dear."