Complex sentence: When he went to pledge allegiance, his intention was to stay for a very short while but he remained for forty two days during which he became very attached to Haji Imdadullah Muhajir Makki.
Split into simpler sentences: When he went to take bayat, his intention was to stay for a very short while but he remained for forty-two days. He became very attached to Haji Imdadullah Muhajir Makki.