Square of Quadratic Gauss Sum

Theorem
Let $p$ be an odd prime.

Let $a$ be an integer coprime to $p$.

Let $g(a,p)$ denote the quadratic Gauss sum.

Then $g(a,p)^2=\left(\dfrac{-1}p\right)\cdot p$.