WASHINGTON (AP) — President Donald Trump urged his former national security adviser to strike an immunity deal Friday, even as congressional investigators rebuffed Michael Flynn’s offer of cooperation in exchange for protection from prosecution.

Trump tweeted that Flynn, the adviser he fired in February, should ask for immunity because he’s facing “a witch hunt.”

The president weighed in the day after Flynn’s attorney confirmed the immunity discussions with intelligence committees in both the Senate and House that are investigating Russia’s meddling in the 2016 presidential election.

A congressional aide confirmed that preliminary discussions with the Senate intelligence committee involved immunity but that it was too early in the investigation to set terms. The aide was not authorized to discuss private conversations and spoke on condition of anonymity. The Justice Department did not immediately respond to a request for comment.

It was unclear from Trump’s tweet whether he was advising the Justice Department or the congressional panels to give his former adviser immunity. The president is not supposed to direct ongoing investigations.

White House spokesman Sean Spicer said Trump just wants Flynn to testify, and there are no concerns that Flynn could implicate the president in any wrongdoing.

White House Press Secretary Sean Spicer speaks during the daily briefing in the Brady Briefing Room of the White House on February 23, 2017 in Washington, DC. (AFP PHOTO / Mandel Ngan)

White House Press Secretary Sean Spicer speaks during the daily briefing in the Brady Briefing Room of the White House on February 23, 2017 in Washington, DC. (AFP/Mandel Ngan)

The top Democrat on the House intelligence committee, Rep. Adam Schiff of California, said committee leaders would be discussing the issue with their Senate counterparts and the Justice Department.

“We should first acknowledge what a grave and momentous step it is for a former national security adviser to the president of the United States to ask for immunity from prosecution,” Schiff said in a statement.

Flynn’s attorney, Robert Kelner, said no “reasonable person” who has a lawyer would answer questions without assurances that he would not be prosecuted, given calls from some members of Congress that the retired lieutenant general should face criminal charges.

Flynn seemed to have a different view last September when he weighed in on the implications of immunity on NBC’s “Meet the Press,” criticizing Democratic presidential candidate Hillary Clinton and her associates in the FBI’s investigation into her use of a private email server.

“When you are given immunity, that means that you have probably committed a crime,” Flynn said during the interview.

His own lawyer, Kelner, said Thursday, “General Flynn certainly has a story to tell, and he very much wants to tell it, should the circumstances permit.”

Trump spokesman Spicer said the president “thinks he should go out and tell his story.”

Flynn’s ties to Russia have been scrutinized by the FBI and are under investigation by the congressional committees. Both panels are looking into Russia’s meddling in the election and any ties between Trump associates and the Kremlin.

Russian President Vladimir Putin holds a meeting with his cabinet at the Novo-Ogaryovo residence outside Moscow, Russia on February 17, 2017. (Mikhail Klimentyev, Sputnik, Kremlin Pool Photo via AP)

Russian President Vladimir Putin holds a meeting with his cabinet at the Novo-Ogaryovo residence outside Moscow, Russia on February 17, 2017. (Mikhail Klimentyev, Sputnik, Kremlin Pool Photo via AP)

Since July, the FBI has been conducting a counterintelligence investigation into Russia’s interference in the election and possible coordination with Trump associates.

In September, Flynn weighed in on the implications of immunity on NBC’s “Meet the Press,” criticizing Democratic presidential candidate Hillary Clinton and her associates in the FBI’s investigation into her use of a private email server.

“When you are given immunity, that means that you have probably committed a crime,” Flynn said during the interview.

A spokesman for Rep. Devin Nunes, the Republican chairman of the House intelligence committee, said the panel has not offered an immunity deal to Flynn.

Then-National Security Adviser Michael Flynn (L) and US President Donald Trump (R) upon arrival at MacDill Air Force Base in Tampa, Florida, February 06, 2017. (AFP PHOTO / MANDEL NGAN)

Then-National Security Adviser Michael Flynn (L) and US President Donald Trump (R) upon arrival at MacDill Air Force Base in Tampa, Florida, February 06, 2017. (AFP/Mandel Ngan)

The committee “had a preliminary conversation with Michael Flynn’s lawyer about arranging for Flynn to speak to the committee,” spokesman Jack Langer said. “The discussions did not include immunity or other possible conditions for his appearance.”

Schiff, who has called for Nunes’ recusal from the investigation because of his close ties to the White House, said the committee is interested in Flynn’s testimony but is also “mindful” of the Justice Department’s interests.

Congress has the authority to grant someone immunity, but doing so could jeopardize federal prosecutors’ ability to use that person’s testimony as the basis for any criminal case.

“When the time comes to consider requests for immunity from any witness, we will of course require a detailed proffer of any intended testimony,” Schiff said.

Kelner released a statement late Thursday after The Wall Street Journal first reported that Flynn’s negotiations with Congress included discussions of immunity.

Four other Trump associates have come forward in recent weeks, saying they would talk to the committees. As of Wednesday, the Senate panel had asked to interview 20 people.

Flynn was fired from his job as Trump’s first national security adviser after it was disclosed that he misled Vice President Mike Pence about a conversation he had with the Russian ambassador to the US during the transition.

In the weeks after he resigned, Flynn and his business registered with the Justice Department as foreign agents for $530,000 worth of lobbying work that could have benefited the Turkish government.

The lobbying occurred while Flynn was a top Trump campaign adviser.

Copyright 2017 The Associated Press.