An identity on generalized derivations involving multilinear polynomials in prime rings