Let R be a prime ring of characteristic different from 2, with extended centroid C, U its two-sided Utumi quotient ring, F a nonzero generalized derivation of R, f(x1,..., xn) a noncentral multilinear polynomial over C inn noncommuting variables, and a, b ∈ R such that a[F(f(r1,..., rn)), f(r1,...,rn)]b = 0 for any r1..., rn ∈ R. Then one of the following holds: (1) a = 0; (2) b = 0; (3) there exists λ ∈ C such that F(x) = λx, for all x ∈ R; (4) there exist q ∈ U and λ ∈ C such that F(x) = (q + λ)x + xq, for all x ∈ R, and f(xl,..., xn)² is central valued on R; (5) there exist q ∈ U and λ, μ ∈ C such that F(x) = (q + λ)x + xq, for all x ∈ R, and aq = μa, qb = μb. [ABSTRACT FROM AUTHOR]