In The Name of Allaah, The Most Merciful, The Bestower of Mercy
Allaah [The Most High] said:
فَلَوْلَا نَفَرَ مِن كُلِّ فِرْقَةٍ مِّنْهُمْ طَائِفَةٌ لِّيَتَفَقَّهُوا فِي الدِّينِ
Of every troop of them, a party only should go forth, that they [who are left behind] may get instructions in [Islamic] religion. [Surah At-tawbah. Aayah 122]
Firstly, one seeks knowledge and acquaints himself with it. He acquaints himself with the rights of Allaah, the rights of Allaah’s servants and seeks understanding; then secondly, [وَلِيُنذِرُوا قَوْمَهُم – And that they may warn their people]. Allaah [Glorified and Exalted be He] said:
[إِنْ هُوَ إِلَّا نَذِيرٌ لَّكُم بَيْنَ يَدَيْ عَذَابٍ شَدِيد – He [Muhammad (sallal laahu alayhi wasallam)] is only a warner to you in face of a severe torment]- Meaning: The occurrence of the day of judgement (Ref1). A warner by way of [sound] knowledge; therefore, a person returns to his people [i.e. after seeking sound knowledge] to warn them about a severe punishment [i.e. about the occurrence of the day of judgement]. And how can they be acquainted with Allaah’s rights, the rights of humankind, the path to paradise and the path to leading to the hell fire, except by way of this [sound] knowledge and understanding. This is the path of safety and happiness.
Marhaban Yaa Taalibal Ilm. Page 249. Slightly paraphrased
Ref 1: Fat-hul Qadeer. 4/440. Daarul Wafaa 1st ed 1435AH  Surah Sabah’ Ayah 46