Former FBI Director James Comey said in testimony he'll deliver to the Senate on Thursday that he told President-elect Trump he was not under investigation, confirming Trump's recollection of the event.

In a May letter describing his decision to fire Comey, Trump said he appreciated that Comey told him "on three separate occasions" that Trump was not under investigation personally. Instead, the FBI was looking at Russia's meddling in the election.

Trump's claim was met with skepticism, especially among Democrats, and left some wondering if Trump pushed Comey to offer that information. But Comey's prepared remarks bear out that Comey voluntarily told Trump three times that Trump was not under investigation.

Comey said that before his first meeting with Trump on Jan. 6, he discussed with the FBI whether he should tell Trump that the FBI was not investigating him.

"That was true; we did not have an open counter-intelligence case on him," Comey's testimony said. "During our one-on-one meeting at Trump Tower, based on President-Elect Trump's reaction to the briefing and without him directly asking the question, I offered that assurance."

On Jan. 27, at a White House dinner with just Trump and Comey, Trump suggested an FBI investigation to prove that certain rumors about him were not true.

"I replied that he should give that careful thought because it might create a narrative that we were investigating him personally, which we weren't, and because it was very difficult to prove a negative," Comey wrote.

In a March 30 phone call, Comey discussed the congressional probe into Trump's alleged ties to Russia and again reminded Trump that he was not under investigation personally.

"I explained that we had briefed the leadership of Congress on exactly which individuals we were investigating and that we had told those congressional leaders that we were not personally investigating President Trump," he wrote.

Comey's testimony also said several times that Trump was pushing him to "get out" the word that he was not under investigation. Comey explained in a parenthetical statement why he didn't want to explain that in public.

"(I did not tell the president that the FBI and the Department of Justice had been reluctant to make public statements that we did not have an open case on President Trump for a number of reasons, most importantly because it would create a duty to correct, should that change.)" he wrote.