This painting has nothing to do with Umayyad general Tarık Bin Ziyad or his invasion of Andulusian Spain. This is a scene from Shahnama, named "Charge of the Cavaliers of Faramouz". I can't say which time and place this miniature was painted for sure, but my educated guess is possibly in Iran, and more likely from post-Ilkhanid. It might be from Turkmen schools of art of Herat or Shiraz, or from Jelayirid period. The style of art looks like it is before Timurid period, so somewhere between Jalayirids and Timurids.