Complex sentence: Muhammadzai were Yusufzai ally in the battle of bajawar against the Ghoryakhel tribe and Shalmani's are subtribe of Momand Ghoryakhel the Shalmani, s were very strong and it was unable to defeat them, in the Hashnaghar battle and it was ended after two years.
Split into simpler sentences: Muhammadzai were Yusufzai ally in the battle of bajawar against the Ghoryakhel tribe and Shalmani's are subtribe of Momand Ghoryakhel. Shalmani were very strong and it was unable to defeat them, in the Hashnaghar battle and it was ended after two years.