He once wrote headlines for ESPN. Now, he’s spreading the word of God.

Anthony Federico, 33, had his dream job working for ESPN before he inadvertently fired off an infamous racist headline about former Knicks phenom Jeremy Lin in 2012, in which Federico wrote, “Chink in the Armor,” for a story that highlighted a poor night by the Asian-American budding star.

Federico, who was 28 at the time, realized his mistake the minute he saw social media’s disgusted reaction. It made him physically sick and “devastated.” Unsurprisingly, it became his last headline for ESPN, as he was soon fired.

He never landed anywhere else in the sports media world, but he did land with God.

“Everyone thinking of me as a bad person, an evil person — it was the worst 30 days of my life,” Federico, who is becoming a Catholic priest, told the Washington Post. “To think I could be in a place now where I’m genuinely happy with my life and excited about serving the people of God — if you told me that then, I wouldn’t have believed it. I think the thing that Jesus does best is second chances.”

Jesus wasn’t the only one to give Federico a second chance. He met with Lin over lunch shortly after the headline fiasco and apologized for the gaffe, explaining he didn’t mean to use it with a racial connotation.

“We talked more about matters of faith [and] reconciliation. We talked about our shared Christian values and what we’re both trying do with this situation. … We didn’t talk about the headline for more than three minutes,” Federico said at the time.

As it turned out, getting fired by ESPN was a blessing in disguise.

“Looking back, I think God allowed this to happen to me to put me on a path to being a priest, a path that I was avoiding,” Federico said.