The Euler four-square identity simply states that
It may be derived from the property of quaternions that the norm of the product is equal to the product of the norms.