\documentclass{minimal}
\begin{document}

\begin{equation}
    \label{eq:eq}
    x = y
\end{equation}

Hello World, behold eq.~\ref{eq:

\end{document}
