Subsequently, the dynasty were heavily persecuted by the Abbasid government, and eventually the founder of the Barha dynasty, Abul Farah Al Wasiti, fled from Madina to Wasit and from there he fled to the Ghaznavid Empire.