Rakočević’s property for generalized derivations