Complex sentence: Ghotki was founded by an ambassador general of Raja Ibn Selaj Birhman (a relative of Raja Dahar of Sindh) in 637 A.D (15th year of Hijra) and named after Hath Sam who set up an military camp after defeating the Muslim Army of Arabia.
Split into simpler sentences: Ghotki was founded by an ambassador general of Raja Ibn Selaj Birhman (a relative of Raja Dahir of Sindh) in 637 ACE (the 15th year of Hijra). It was named after Hath Sam, who set up a military camp in the area after defeating the Muslim Army of Arabia.