Complex sentence: In 1825 he set out for hajj with his father, while in Mecca he encountered Imam Shamil where the two spoke at length on different topics.
Split into simpler sentences: In 1825 he set out for the Muslim pilgrimage, hajj, with his father. While in Mecca he encountered Imam Shamil; the two spoke at length on different topics.