Justinian's mistake was to try to reclaim the West instead of devoting imperial resources to stabilize and fortify the Empire's new borders. If he had chose the latter course, Islam might not have penetrated as far West as it eventually did.
(Denny Crane: "Sometimes you can only look for answers from God and failing that... and Fox News".)