Just building on a previous question, where we showed that an odd number $p$ is prime in $\mathbb{Z}[i]$ if and only if $x^2+1$ does not have roots in $\mathbb{Z}/p\mathbb{Z}$.
The last part of this exercise is to show, in this case, that the multiplicative group of units of $\mathbb{Z}/p\mathbb{Z}$, denoted by $(\mathbb{Z}/p\mathbb{Z})^\times$ does not have an element of order 4, and $p \equiv 3 \mod 4$.
We can also conclude that $p \not\equiv 0,2 \mod 4$ because $p$ is odd.
Here is where I am getting a bit stuck. I assume the point is to show that if we assume that $p \equiv 1 \mod 4$, for example, $p = 5$, then $x^2+1$ has roots in $\mathbb{Z}/5\mathbb{Z}$. Here, $x^2+1 = 0 \mod 5$ for $x=2$. By the previous proposition, then $p$ is not prime in $\mathbb{Z}[i]$.
I am lacking the general statement of this proof. How can I go from assuming $p \equiv 1 \mod 4$ to $x^2+1 \equiv 0 \mod p$, in a general way?