President Trump Donald John TrumpBiden on Trump's refusal to commit to peaceful transfer of power: 'What country are we in?' Romney: 'Unthinkable and unacceptable' to not commit to peaceful transition of power Two Louisville police officers shot amid Breonna Taylor grand jury protests MORE on Friday tore into the FBI just hours before speaking at the agency’s training academy.

“It’s a shame what's happened with the FBI. But we’re going to rebuild the FBI; it’ll be bigger and better than ever,” Trump told reporters.

The president doubled down on his criticism of the nation’s top law enforcement agency before leaving the White House for the FBI’s campus in Quantico, Va., where he spoke to law enforcement leaders graduating from a training program.

ADVERTISEMENT

Trump said revelations about the FBI’s handling of the Hillary Clinton Hillary Diane Rodham ClintonDemocratic groups using Bloomberg money to launch M in Spanish language ads in Florida The Hill's Campaign Report: Presidential polls tighten weeks out from Election Day More than 50 Latino faith leaders endorse Biden MORE email investigation and text messages from a top agent that were critical of him were “really, really disgraceful.”

“You have a lot of very angry people who are seeing it,” the president said. "It's a very sad thing to watch, I will tell you that."

The president has long been suspicious of the FBI and intelligence agencies, but the timing of his criticism was remarkable.

Roughly an hour after Trump spoke at the White House, he appeared on stage at the academy with FBI Director Christopher Wray and Attorney General Jeff Sessions Jefferson (Jeff) Beauregard SessionsGOP set to release controversial Biden report Trump's policies on refugees are as simple as ABCs Ocasio-Cortez, Velázquez call for convention to decide Puerto Rico status MORE at the graduation ceremony.

During the speech, the president cast himself as a defender of law enforcement and lauded the bravery of police officers and FBI agents.

“These are great, great people. These are really heroes for all of us,” he said.

ADVERTISEMENT

“The president of the United States has your back 100 percent,” Trump added. “I will fight for you and I will never, ever let you down. Ever."

Trump’s comments come as special counsel Robert Mueller is working through his investigation into Russia’s election interference and whether the Trump campaign had any ties to it.

The president repeated his insistence his campaign staff had nothing to do with Russia’s election-related activities.

“Let’s put it this way: there is absolutely no collusion. That’s been proven,” Trump said.

"I didn't make a phone call to Russia," he added. "Even Democrats admit there was no collusion."

Trump did speak about his Thursday phone call with Russian President Vladimir Putin, during which Trump said he tried to persuade Putin to do more to counter North Korea.

Trump thanked Putin for praising the performance of the U.S. economy this year.

The president and his allies are increasingly questioning the FBI’s integrity as they attack the Russia probe.

Republicans on Capitol Hill have slammed former FBI Director James Comey for revising a draft document detailing the agency’s findings in the Clinton email probe in a way that appeared to lessen its severity.

They have also zeroed in on text messages sent by top FBI agent Peter Strzok, who was a senior official on the Clinton probe and the Russia investigation. He was reassigned from Mueller’s investigation after private texts were discovered of him criticizing Trump.

“The level of anger at what they've been witnessing with respect to the FBI is certainly very sad,” Trump said.

Strzok also sent text messages criticizing Sen. Bernie Sanders Bernie SandersOutrage erupts over Breonna Taylor grand jury ruling Dimon: Wealth tax 'almost impossible to do' Grand jury charges no officers in Breonna Taylor death MORE (I-Vt.), former attorney general Eric Holder Eric Himpton HolderThe Hill's Campaign Report: Trump's rally risk | Biden ramps up legal team | Biden hits Trump over climate policy Biden campaign forming 'special litigation' team ahead of possible voting battle Pompeo, Engel poised for battle in contempt proceedings MORE and Chelsea Clinton, among others.

ADVERTISEMENT

Earlier Friday, White House spokesman Hogan Gidley said on Fox News that “the president is absolutely supportive of and has full faith and confidence in the rank-and-file members of the DOJ and also the FBI" but is upset with its some of its leaders.

Trump spoke to state and local law enforcement officials graduating from a program that is designed to improve standards and cooperation with federal authorities.

Updated at 11:39 a.m.