President Donald Trump said Friday "it's a shame what's happened" with the FBI, calling the agency's handling of the Hillary Clinton email investigation "really disgraceful."

The comments came as Trump departed the White House for a speech at the FBI training academy in Quantico, Va. and an hour after an aide said newly revealed FBI records show there is "extreme bias" against Trump among senior leadership at the FBI.

Trump, who has described the agency as "in tatters," is scheduled to speak at a ceremony at the FBI campus for law enforcement leaders graduating from a program aimed at raising law enforcement standards. He told reporters that "we're going to rebuild the FBI."

White House Deputy press secretary Hogan Gidley told Fox News Channel Friday morning that edits to former FBI Director James Comey's statement on Hillary Clinton's private email server and text messages from a top agent critical of Trump are "deeply troubling."