It is not clear if we are asked to prove equality as polynomial functions (i.e. they have the same values) or as formal polynomials (i.e. they have the same coefficients).
For the former, by little Fermat both sides are $\equiv 0\,$ for $\,x\equiv 0,1,\ldots, p\!-\!1.\,$ And, for the latter, let $\,f(x) =$ LHS $-$ RHS. Since LHS and RHS have same lead coefs we deduce that $f$ has degree $< p,$ and, by little Fermat, $\,f\,$ has $\,p\,$ distinct roots $\,1,2,\ldots p\,$ in the field $\,\Bbb Z/p.\,$ Therefore $\,f\,$ must be the zero polynomial (i.e. all coefs $\equiv 0)$ since a nonzero polynomial over a field (or domain) has no more roots than its degree (a proof follows by iteratively applying the Factor Theorem, and using the fact that the difference of any two distinct roots is nonzero so cancellable). See also the BiFactor Theorem.
Remark $ $ This may fail in non-domains, e.g. mod $\,8\!:\,\ x^2-1\,$ has $\,4\,$ roots $\, x\equiv \pm1,\,\pm 3,\,$ i.e. ${\rm odd}^2\equiv 1\pmod 8$