NEW YORK (AP) — Shepard Smith, whose newscast on Fox News Channel seemed increasingly an outlier on a network dominated by supporters of President Donald Trump, abruptly quit after working at Fox since it started in 1996.

Shepard Smith

Shepard Smith

Smith said at the end of his daily newscast on Friday that he had asked the network to let him out of his contract and it had agreed.

Even in the current polarized environment, Smith said "it's my hope that the facts will win the day, that the facts will always matter and journalism and journalists will thrive."

Neil Cavuto, who anchors the broadcast following Smith's, looked shocked after the announcement.

"Whoa," Cavuto said. "Like you, I'm a little stunned."

Smith's departure also comes one day after Attorney General William Barr met privately with media mogul Rupert Murdoch, founder of Fox News. President Trump has been increasingly critical of personalities on Fox News that he views as disloyal.

On his afternoon newscast, Smith had frequently given tough reports debunking statements made by Trump and his supporters — even the Fox News opinion hosts that rule the network's prime-time lineup.

Two weeks ago, Smith clashed with Tucker Carlson when an analyst on Smith's program, Andrew Napolitano, said that it was a crime for President Trump to solicit aid for his campaign from a foreign government, in this case the Ukraine. Later that night, Carlson asked his own analyst, Joseph diGenova, to comment and he called Napolitano a fool.

The next day, Smith said that "attacking our colleague who is here to offer legal assessments, on our air, in our work home, is repugnant."