President Obama will nominate former Deputy Attorney General James Comey to be the next director of the FBI, according to sources.

Comey is a Republican who served in the Justice Department under President George W. Bush and is perhaps best known for his time as acting attorney general, when he refused to certify parts of the National Security Agency’s domestic surveillance program.

Then-White House chief of staff Andy Card and White House counsel Alberto Gonzalez visited Attorney General John Ashcroft at a hospital in March 2004 to try to convince the attorney general to authorize the program.

Comey would replace FBI Director Robert Mueller, who has served in the position since 2001. The Senate two years ago approved legislation that allowed Obama to extend Mueller’s term at the FBI.

Some lawmakers and groups had pushed Obama to consider Rep. Mike Rogers (R-Mich.) for the post. Rogers is a former FBI agent.

--Jordy Yager contributed.

--This report was updated at 7:38 p.m.