A commutativity condition fors-unital rings