Rep.-elect Ayanna Pressley (D), who became the first black woman to ever be elected to Congress from Massachusetts last month, says after she's sworn in she will work out of an office once occupied by her "hero," former Rep. Shirley Chisholm (D-N.Y.).

Pressley said on Twitter that she got the space thanks to fellow incoming Democratic congresswoman Katie Hill (Calif.), who she said had drawn a better number in the Congressional office lottery and used her turn to give Pressley the office she wanted.

"Wow!" Pressley wrote on Twitter. "TY Mommy for the extra bday luck! We just learned my Congressional Office designation will be #ShirleyChisholm 's former office How's that for divine intervention, AND the selflessness of my colleague @KatieHill4CA who drew a better lottery# but still wanted me to have it."

Chisholm became the first black woman ever elected to Congress in 1968 and the first woman to seek the Democratic Party's presidential nomination several years later.

Pressley said in a statement to The Hill on Tuesday that Chisholm has been a "hero of mine since I was a girl."

"Her commitment to fighting injustice and lifting up the voices of the disenfranchised is an inspiration and an example I hope to follow," Pressley continued. "I am humbled to occupy the same space she did on Capitol Hill, and I am deeply thankful to my colleague, Congresswoman-elect Katie Hill of California, for so graciously offering to switch offices."

Hill responded to Pressley's tweet saying she looked forward to working with the Massachusetts Democrat.

"No doubt you're going to do amazing things from that office," Hill tweeted.

The California Democrat also added in a statement to The Hill that she was "excited to work with Ayanna from right down the hall" and added that the pair "will accomplish great things" together.

Hill said she believes Chisholm "was always so clear that women supporting women would move our politics forward. That is more true now than ever before."

"In fact, the success of our freshman class depends on it," she added.

Updated: 4:09 p.m.