Abstract
Let R be a prime ring of characteristic different from 2 and m a fixed positive integer. If R admits a generalized derivation associated with a nonzero deviation d such that [F(x),d(y)] (m) =[x,y] for all x,y in some appropriate subset of R, then R is commutative. Moreover, we also examine the case R is a semiprime ring. Finally, we apply the above result to Banach algebras, and we obtain a non-commutative version of the Singer-Werner theorem.