WASHINGTON, DC - MAY 11:  Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security.  (Photo by Alex Wong/Getty Images)
Alex Wong/Getty Images
WASHINGTON, DC - MAY 11: Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security. (Photo by Alex Wong/Getty Images)
Now playing
01:27
Source: Wray hints report led to McCabe's exit
WASHINGTON, DC - MAY 11:  Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security.  (Photo by Alex Wong/Getty Images)
Alex Wong/Getty Images
WASHINGTON, DC - MAY 11: Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security. (Photo by Alex Wong/Getty Images)
Now playing
01:11
Who is Andrew McCabe?
Dana J. Boente (R), U.S. Attorney for the Eastern District of Virginia, and Andrew G. McCabe (L), Assistant Director in Charge of the FBI's Washington Field Office, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS.  (Photo by Mark Wilson/Getty Images)
Mark Wilson/Getty Images
Dana J. Boente (R), U.S. Attorney for the Eastern District of Virginia, and Andrew G. McCabe (L), Assistant Director in Charge of the FBI's Washington Field Office, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS. (Photo by Mark Wilson/Getty Images)
Now playing
02:31
NYT: McCabe wrote secret memo detailing Comey firing
WASHINGTON, DC - JUNE 21:  Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey.  (Photo by Pete Marovich/Getty Images)
Pete Marovich/Getty Images North America/Getty Images
WASHINGTON, DC - JUNE 21: Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey. (Photo by Pete Marovich/Getty Images)
Now playing
02:01
Report cites lack of candor by Andrew McCabe
WASHINGTON, DC - MAY 11:  Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security.  (Photo by Alex Wong/Getty Images)
Alex Wong/Getty Images
WASHINGTON, DC - MAY 11: Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security. (Photo by Alex Wong/Getty Images)
Now playing
01:57
Justice IG submits criminal referral on McCabe
WASHINGTON, DC - JULY 13:  Acting FBI Director Andrew McCabe listens during a news conference to announce significant law enforcement actions July 13, 2017 at the Justice Department in Washington, DC. Attorney General Jeff Sessions held the news conference to announce the 2017 health care fraud takedown.  (Photo by Alex Wong/Getty Images)
Alex Wong/Getty Images
WASHINGTON, DC - JULY 13: Acting FBI Director Andrew McCabe listens during a news conference to announce significant law enforcement actions July 13, 2017 at the Justice Department in Washington, DC. Attorney General Jeff Sessions held the news conference to announce the 2017 health care fraud takedown. (Photo by Alex Wong/Getty Images)
Now playing
00:58
Flake on McCabe firing: Horrible day for democracy
ALEXANDRIA, VA - JUNE 11: Andrew G. McCabe (R), Assistant Director of the FBI's Washington Field Office speaks while flanked by Dana J. Boente (L),U.S. Attorney for the Eastern District of Virginia, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS.  (Photo by Mark Wilson/Getty Images)
Mark Wilson/Getty Images/FILE
ALEXANDRIA, VA - JUNE 11: Andrew G. McCabe (R), Assistant Director of the FBI's Washington Field Office speaks while flanked by Dana J. Boente (L),U.S. Attorney for the Eastern District of Virginia, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS. (Photo by Mark Wilson/Getty Images)
Now playing
02:28
Could congressman's offer save McCabe's pension?
WASHINGTON, DC - MAY 23: Former Director of the U.S. Central Intelligence Agency (CIA) John Brennan testifies before the House Permanent Select Committee on Intelligence on Capitol Hill, May 23, 2017 in Washington, DC. Brennan is discussing the extent of Russia's meddling in the 2016 U.S. presidential election and possible ties to the campaign of President Donald Trump. (Photo by Drew Angerer/Getty Images)
Drew Angerer/Getty Images
WASHINGTON, DC - MAY 23: Former Director of the U.S. Central Intelligence Agency (CIA) John Brennan testifies before the House Permanent Select Committee on Intelligence on Capitol Hill, May 23, 2017 in Washington, DC. Brennan is discussing the extent of Russia's meddling in the 2016 U.S. presidential election and possible ties to the campaign of President Donald Trump. (Photo by Drew Angerer/Getty Images)
Now playing
01:40
Ex-CIA chief to Trump: US will triumph over you
WASHINGTON, DC - JUNE 21:  Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey.
Pete Marovich/Getty Images North America
WASHINGTON, DC - JUNE 21: Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey.
Now playing
01:06
Journalist: The real reason Trump wanted McCabe fired
douglas brinkley ctn
douglas brinkley ctn
Now playing
02:07
Historian: This is 'Friday Night Slaughter'
Getty Images/Chris Kleponis-Pool/Chip Somodevilla
Now playing
01:57
Trump celebrates McCabe firing on Twitter
WASHINGTON, DC - MAY 11:  Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security.  (Photo by Alex Wong/Getty Images)
Alex Wong/Getty Images
WASHINGTON, DC - MAY 11: Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security. (Photo by Alex Wong/Getty Images)
Now playing
02:30
McCabe denies he misled investigators
Acting Director of the Federal Bureau of Investigation (FBI) Andrew McCabe speaks during a press conference at the US Department of Justice in Washington, DC, on July 13, 2017.
JIM WATSON/AFP/Getty Images
Acting Director of the Federal Bureau of Investigation (FBI) Andrew McCabe speaks during a press conference at the US Department of Justice in Washington, DC, on July 13, 2017.
Now playing
01:25
Sessions fires FBI's Andrew McCabe
WASHINGTON, DC - MAY 11:  Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security.  (Photo by Alex Wong/Getty Images)
Alex Wong/Getty Images
WASHINGTON, DC - MAY 11: Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security. (Photo by Alex Wong/Getty Images)
Now playing
01:57
McCabe learned he was fired from media reports
ALEXANDRIA, VA - JUNE 11:  Andrew G. McCabe (R), Assistant Director of the FBI's Washington Field Office speaks while flanked by Dana J. Boente (L), U.S. Attorney for the Eastern District of Virginia, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS.  (Photo by Mark Wilson/Getty Images)
Mark Wilson/Getty Images/FILE
ALEXANDRIA, VA - JUNE 11: Andrew G. McCabe (R), Assistant Director of the FBI's Washington Field Office speaks while flanked by Dana J. Boente (L), U.S. Attorney for the Eastern District of Virginia, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS. (Photo by Mark Wilson/Getty Images)
Now playing
02:52
Conservative media: McCabe part of 'deep state'
WASHINGTON, DC - JUNE 21:  Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey.
Pete Marovich/Getty Images North America
WASHINGTON, DC - JUNE 21: Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey.
Now playing
01:04
FBI deputy director McCabe stepping down
Washington CNN —  

FBI Director Chris Wray hinted to FBI staff in an all-employee email that a government watchdog investigation played a role in FBI Deputy Director Andrew McCabe’s departure Monday, sources who have seen the memo told CNN.

Wray said in the message he could not comment on the coming inspector general report about the FBI’s conduct during the 2016 election and defended himself as not being swayed by politics.

A source familiar with the matter told CNN that Wray had informed McCabe he is bringing in his own team, which McCabe would not be a part of, and that it was McCabe’s decision whether to stay at the FBI or leave.

The coming inspector general report into the handling of the 2016 Hillary Clinton email investigation has taken on increased scrutiny as President Donald Trump and his allies have railed against FBI officials like McCabe for months over the agency’s handling of sensitive political matters and what they argue is political bias.

Last week, the Justice Department’s inspector general told Congress it was able to recover a trove of missing text messages exchanged between two FBI employees, Peter Strzok and Lisa Page, who have been accused of demonstrating anti-Trump bias in the leadup to the general election.

Earlier Monday, The New York Times reported that McCabe’s sudden decision to step down came after he told friends he felt pressure to do so from Wray.

The Times, citing one official close to McCabe, said the deputy director’s decision to leave before his anticipated retirement in March came after Wray discussed the looming inspector general report and suggested demoting McCabe from the number two post at the bureau.

Rather than accept the demotion, the source told the Times, McCabe informed colleagues he would leave the bureau Monday.

CNN’s Mary Kay Mallonee, Laura Jarrett and Dan Merica contributed to this report.