Example of the non-commutative ring with the set of units are commutative
Take the ring of noncommutative polynomials $R\langle X_1, X_2\rangle$ over any commutative ring $R$. The units will be the same as in R.
NB: this is a special case of Mike Debellevue's answer, with $M$ being the free monoid on two generators.