Endomorphisms of two-generated metabelian groups that induce the identity modulo the derived subgroup