Suppose it were false. Then there exists $r>0$ and there exist sequences $(t_n)_n$ and $(x_n)_n$ in $[a,b]$ with $t_n\ne x_n$ and with
$t_n,x_n$ both converging to some $y\in [a,b],$ and such that $$(*)\quad \left|\frac {f(t_n)-f(x_n)}{t_n-x_n}-f'(x_n)\right|>r$$ for every $n.$
Now $$\frac {f(t_n)-f(x_n)}{t_n-x_n}=\frac {1}{t_n-x_n}\int_{x_n}^{t_n}f'(u)du$$ is bounded above by $\max_{u\in [x_n,t_n]}f'(u)$ and bounded below by $\min_{u\in [x_n,t_n]}f'(u)$. So by $(*)$ there exists $u_n\in [x_n,t_n]$ with $$|f'(u_n)-f'(x_n)|>r.$$
But $u_n$ and $x_n$ both converge to $y$ so $f'$ is not continuous at $y,$ a contradiction.