For hydrogen orbitals, a dipole matrix element of the form
\begin{align*}
\int_{\mathbb R^3}\overline{\psi_{n',l',m'}(x)}\,x_j\,\psi_{n,l,m}(x)\,d\mathcal L^3(x)
\end{align*}
can be nonzero only if
\begin{align*}
l'=l\pm 1,
\qquad m'=m,m+1,\text{ or }m-1,
\end{align*}
subject to $|m'|\le l'$.