Let us choose A=(2001) and B=(1011) (both invertible, detA=2, detB=1).
Left-hand side. AB=(2021), with det(AB)=2, therefore
(AB)−1=21(10−22)=(210−11).
Right-hand side. A−1=(21001), B−1=(10−11), therefore
B−1A−1=(10−11)(21001)=(210−11).
The two sides coincide ✓. Note the reversed order of the factors: it is B−1A−1, not A−1B−1, because the product of matrices is not commutative.