Wasn't it a big mistake for Hitler to attack the Soviets?

If Hitler had attacked the United Kingdom instead of attacking the Soviets, he could have destroyed the United Kingdom and won World War II.
Wasn't it a big mistake for Hitler to attack the Soviets?
Post Opinion