The product of two quaternionic matrices is either hamiltonian or octonionic. The quaternion field, , is a non-commutative field, so the product of two quaternionic matrices may or may not preserve the order of multiplication.
Hamiltonian product
The hamiltonian product preserves the order of multiplication.
Octonionic product
The octonionic product does not preserve the order of multiplication: on the main diagonal, there is an inversion of the second product and on the reverse diagonal there is an inversion of the first product.