There are probably loads of proofs of this online, but I do not want to cheat. Here is my attempt:
Convexity says that
$$f(\lambda a + (1-\lambda)b) \leq \lambda f(a) + (1-\lambda) f(b)$$
$$f(b + \lambda(a-b)) \leq f(b) + \lambda (f(a) - f(b))$$
We know from the intermediate value theorem that there exists a ##c \in (b,a)## such that
$$\frac{f(a) - f(b)}{a-b} = f'(c).$$
Hence
$$f(b + \lambda(a-b)) \leq f(b) + \lambda (a - b) f'(c))$$
$$\frac{f(b + \lambda(a-b)) - f(b)}{\lambda(a-b)}...