In The Name of Allaah, The Most Merciful, The Bestower of Mercy
Seek understanding first and foremost, go out and travel to the land of [sound] knowledge. If you are in the furthest region of the earth and you hear about a scholar in another region, then travel to obtain this good [i.e. sound knowledge and understanding]. Seek understanding of your religion and return to your people so that you become a means to their happiness and [a means] of saving them from ignorance and misguidance.
Indeed, during the era of Allaah’s Messenger [sallal laahu alayhi wasallam], the people used to travel from the furthest regions of the Arabian peninsula to him. The delegation of Abdul Qais [radiyallaahu anhum] travelled to the Prophet [sallal laahu alayhi wasallam] and asked him questions, so he responded to them regarding the subject matter of Tawheed, the prayer and other than that.
Dimaam Bin Tha’labah Al-Hudhaliy [radiyallaahu anhu] travelled to him [sallal laahu alayhi wasallam] and asked him about Tawheed and the rulings [pertaining to acts of worship and other affairs], so he [sallal laahu alayhi wasallan] answered him.
Maalik Ibn Al-Huwayrith and a number of youths [radiyallaahu anhum] stayed for twenty nights and [likewise other] people travelled from the furthest regions of the Arabian peninsula to the noble Messenger [sallal laahu alayhi wasallam] to learn and seek understanding in the religion; thereafter, they returned to their people to warn and teach them. Maalik and the youth with him [radiyallaahu anhum] stayed with the Prophet [sallal laahu alayhi wasallam] for days, but when Allaah’s Messenger [sallal laahu alayhi wasallam] realised that they were missing their families, he [sallal-laahu-alayhi-wasallam] – due to his kindness and mercy – said to them, “Return to your families and teach them. When the time of the prayer arrives, let one of you call the A’dhaan and the eldest of you leads the prayer, and perform the prayer in the manner you have seen me perform the prayer.” They returned to their people -who did not know how to perform the prayer- and taught them how to perform the prayer.
Marhaban Yaa Taalibal Ilm. 249-250. slightly paraphrased