The main result: Let R be a 2-torsion free semiprime ring with extended centroid C and let T : R ! R be an additive mapping. Suppose that 3T (xyx) = T (x)yx + xT (y)x + xyT (x) holds for all x; y 2 R. Then there exists an element 2 C such that T (x) = x for all x 2 R.