Former CIA Director David Petraeus has agreed to voluntarily testify before the House and Senate intelligence committees about the attacks on the U.S. Consulate in Benghazi, Libya, Fox News reported Wednesday morning.

Petraeus had been slated to testify Thursday before his abrupt resignation last week, after which Acting CIA Director Michael Morell was expected to take his place.

It was not immediately clear when Petraeus would give his testimony. He resigned from his post Friday after admitting to an extramarital affair.

The CIA has come under sharp scrutiny in the wake of the Sept. 11 Benghazi terror attacks that killed four Americans, including Ambassador Christopher Stevens.

“I hope we don’t have to subpoena a four-star general and the former CIA director, I hope he would come voluntarily, but if he won’t he will be subpoenaed and none of what has happened [with the resignation] is a defense to a subpoena,” Rep. Trey Gowdy (R-S.C.) said on Fox News.