Goes back to the same digit

Let $a$ and $b$ be distinct single-digit positive integers such that

• the last digit of $a^b$ is $b;$
• the last digit of $b^a$ is $a.$

What is $a\times b?$

×