House Speaker Nancy Pelosi revealed how she found out that her husband, Paul Pelosi, was attacked inside their San Francisco home.

Pelosi said that officers "banged" on her door at 5 a.m. and at first, she thought that "they must be at the wrong apartment." However, the knocks continued on.

The House Speaker opened up about the incident during her interview with CNN's Anderson Cooper.

Pelosi said she was thinking about her children and her grandchildren because she never thought it would be Paul.

At the end of October, Pelosi's husband was violently attacked inside their house by an intruder wielding a hammer.

Paul was brought to a hospital and underwent emergency surgery to repair a skull fracture after police arrived at 2:31 a.m.

READ NEXT: Paul Pelosi Released From Hospital After Attack; Suspect David DePape in the U.S. Illegally and Could Be Deported After Release

House Speaker Nancy Pelosi on Retirement

During their interview, Cooper asked Pelosi if she has made a decision regarding her retirement.

Pelosi answered that her retirement decision will be affected by what happened with her husband and their San Francisco home break-in.

Cooper further pressed on the matter, asking if her decision will take the assault of her husband into consideration, to which the House Speaker answered, "yes."

Pelosi had earlier promised in 2018 that she would give up the House Speaker position at the end of this term. However, some Democrats believe that she may retain her position if the party pulls an upset and manages to hold control of the lower chamber.

Pelosi has remained silent about her future plans most of the time.

Meanwhile, California Rep. Adam Schiff has been reported to preparing himself as heir to Pelosi's speakership, if she chooses to retire from her role after the midterm elections. He was reportedly "gauging members' interest and planting the seed that leading the caucus is his goal."

The California representative has also reached out to progressive and minority-led congressional groups, but the results has been described as "tepid," as reported by People.

There are other Democrats aiming for the position if Pelosi decides to step back, such as Reps., James Clyburn, Hakeem Jeffries, and Steny Hoyer.

Paul Pelosi Assault

The alleged attacker was identified as 42-year-old David Wanye DePape. He was charged with attempted murder, residential burglary, and assault with a deadly weapon.

DePape's other charges include elder abuse, false imprisonment of an elder, and threats to a public official and their family.

He was also recently charged with federal counts of assault on the immediate family member of a federal official and attempted kidnapping of a federal official.

Pelosi said in a statement that her family is "heartbroken and traumatized by the life-threatening attack" on Paul.

She also thanked the quick response of law enforcement and emergency services.

Meanwhile, DePape waived his appearance in a San Francisco Superior Court. The attacker of the House Speaker's husband is currently being held without bail.

DePape allegedly awoke Paul by standing over his bedside and preventing him from escaping while wanting to know the whereabouts of his wife.

READ MORE: Nancy Pelosi, Kevin McCarthy Urged in a Letter to Pass Bill on Stock Ban Among Congress Members

This article is owned by Latin Post.

Written by: Mary Webber

WATCH: Nancy Pelosi addresses attack on her husband for 1st time on camera - from ABC News