Complex sentence: Balban's eldest son, Khan Muhammad (who was in Multan), arrived in Delhi, and when he heard about Khusrow he invited him to his court.
Split into simpler sentences: Balban's eldest son, Khan Muhammad (who was in Multan), arrived in Delhi. When he heard about Khusrau he invited him to his court.