Muslim conquests of Afghanistan
The Muslim conquests of Afghanistan began during the Muslim conquest of Persia as the Arab Muslims expanded eastwards to Khorasan, Sistan and Transoxiana. Fifteen years after the battle of Nahāvand in 642 AD, they controlled all Sasanian domains except in Afghanistan.
Source: Wikipedia — Muslim conquests of Afghanistan (CC BY-SA 4.0)