Who did Islam almost lose to

In the tapestry of history, Islam faced formidable challenges that threatened its very essence. From the Byzantine Empire’s relentless campaigns to the Mongol invasions, each encounter tested the faith’s resilience, shaping its path and fortifying its resolve.