Complex sentence: Qazi Ghulam Mustafa from Ferozepur Jhirka, and who was honoured By Bahadur Shah I was close relative to these two and he was married to Bibi Rasti (died Dhu al-Qi'dah 1147 AH/1734 AD), the daughter of Qazi Syed Rafi Mohammad.
Split into simpler sentences: Qazi Ghulam Mustafa from Ferozepur Jhirka, and who was honoured By Bahadur Shah I was close relative to these two fellows. He was married to Bibi Rasti (died Dhu al-Qi'dah 1147 AH/1734 AD), the daughter of Qazi Syed Rafi Mohammad.