[guided]We need a lower bound for $f(y)$ in terms of the value and gradient at $x$. The natural way to get it is to restrict the convex function $f$ to the line segment from $x$ to $y$. Since $U$ is convex and $x,y \in U$, every point $x + t(y - x)$ with $0 \le t \le 1$ lies in $U$, so the following map is well-defined:
\begin{align*}
\phi_{x,y}: [0,1] \to \mathbb{R}, \qquad t \mapsto f(x + t(y - x)).
\end{align*}
Convexity of $f$ implies that $\phi_{x,y}$ is convex. Indeed, for $s,t \in [0,1]$ and $\lambda \in [0,1]$, the point
\begin{align*}
x + ((1-\lambda)s + \lambda t)(y - x)
\end{align*}
is the convex combination
\begin{align*}
(1-\lambda)(x + s(y - x)) + \lambda(x + t(y - x)).
\end{align*}
Applying convexity of $f$ to these two points gives convexity of $\phi_{x,y}$.
Now fix $t \in (0,1]$. Convexity of $\phi_{x,y}$ at the point $t = (1-t)0 + t1$ gives
\begin{align*}
\phi_{x,y}(t) \le (1 - t)\phi_{x,y}(0) + t\phi_{x,y}(1).
\end{align*}
Subtracting $\phi_{x,y}(0)$ and dividing by the positive number $t$ gives
\begin{align*}
\frac{\phi_{x,y}(t) - \phi_{x,y}(0)}{t} \le \phi_{x,y}(1) - \phi_{x,y}(0).
\end{align*}
Because $f$ is differentiable at $x$, the directional derivative of $f$ at $x$ in the direction $y - x$ exists and is given by the Euclidean inner product with the gradient:
\begin{align*}
\lim_{t \downarrow 0}\frac{f(x + t(y - x)) - f(x)}{t} = \nabla f(x) \cdot (y - x).
\end{align*}
This is exactly the right derivative of $\phi_{x,y}$ at $0$. Taking the limit $t \downarrow 0$ in the previous inequality therefore yields
\begin{align*}
\nabla f(x) \cdot (y - x) \le f(y) - f(x).
\end{align*}
Equivalently,
\begin{align*}
f(y) \ge f(x) + \nabla f(x) \cdot (y - x).
\end{align*}
This is the first-order inequality for differentiable convex functions.[/guided]