Complex sentence: He was beaten up, but he persisted in his preaching until the Prophet told him to return to his tribe and spread the true word of Allah there until he heard that the Prophet had migrated to the city of date palms (Yathrib-Madina).
Split into simpler sentences: He was beaten up, but he still persisted until the Prophet told him to return home to his tribe and spread the true word of Allah there. The Prophet told him to stay home until he heard that the Prophet had migrated to the city of date palms (Yathrib-Madina).