Note that 3x2+p is the derivative of x3+px+r and hence the common root ‘a’ is at least a double root of the cubic. If a is a triple root then since sum of roots is 0, a=0=p=r and the statement is true.
If a is a double root, then the third root is -2a.
Hence product of roots = -r = -2a3…..........................1
Also, from the quadratic we have a2 = -p/3..................2
From the above two eqns the given relation easily follows.