I have tried out to prove it by its contrapositive.
Therefore now I am proving that there is no integer whose square is congruent to $2 \pmod 3$.
Consider the case $n^2 \equiv 2 \pmod 3$
$ n^2 = 3k +2$
I am stuck to show $\sqrt{3k+2}$ is not a integer. Can anyone provide some hint to me?