Generalizing a theorem of P. Hall on finite-by-nilpotent groups