This article originally appeared on Time.
(WASHINGTON) — Republican Rep. Tim Murphy of Pennsylvania, an anti-abortion lawmaker who allegedly urged his mistress to have an abortion when he thought she was pregnant, is resigning from Congress.
House Speaker Paul Ryan, R-Wis., on Thursday announced Murphy’s plans to leave Congress, effective Oct. 21. The decision comes less than 24 hours after Murphy said he would retire at the end of his term next year.
“It was Dr. Murphy’s decision to move on to the next chapter of his life, and I support it,” Ryan said in a statement. “We thank him for his many years of tireless work on mental health issues here in Congress and his service to the country as a naval reserve officer.”
Murphy’s downfall came quickly, within days of the Pittsburgh Post-Gazette publishing text messages between the married congressman and Shannon Edwards.
A Jan. 25 text message from Edwards told the congressman he had “zero issue posting your pro-life stance all over the place when you had no issue asking me to abort our unborn child just last week when we thought that was one of the options,” according to the newspaper.
A text message from Murphy’s number in response said his staff was responsible for his anti-abortion messages: “I’ve never written them. Staff does them. I read them and winced. I told staff don’t write any more.”
Edwards, it turned out, wasn’t pregnant. Murphy recently acknowledged his affair with Edwards, which became public as a result of her divorce proceedings.
The newspaper’s revelation came as the House on Tuesday approved Republican legislation that would make it a crime to perform an abortion after 20 weeks of fetal development. Murphy, a member of the House Pro-Life Caucus, is among the bill’s co-sponsors and voted for it.
On Wednesday, Murphy announced he would not seek re-election, saying he would “take personal time to seek help as my family and I continue to work through our personal difficulties.”
Ryan said he supports the resignation.
“I’ve spoken to Tim quite a bit the last few days,” Ryan told reporters at an event in Chestertown, Maryland. “I think it’s appropriate he move on to the next chapter in his life.”
Pennsylvania Gov. Tom Wolf is empowered to set a date for a special election to fill the seat.
The Post-Gazette also published a six-page memo apparently written by Murphy’s congressional chief of staff and dated June 8, in which she accused Murphy of subjecting his staff members to “threats, hostility, anger and harassment.”
Neither Murphy nor his office has commented on the newspaper report.
Murphy is serving his eighth term representing a district in southwestern Pennsylvania, including parts of suburban Pittsburgh. The district is a safe Republican seat, with Republican Donald Trump beating Democrat Hillary Clinton by a margin of 3-to-2 in last November’s presidential election.
Murphy, a member of the Energy and Commerce Committee, was uncontested in his re-election bid.