This excerpt is taken from Sheikh Hussain bin Mubarak Al-Mawsili's Arabic book Al-Awamer wal-Nawahi, whose Urdu translation has been done by Muhammad Sarwar Gohar Sahib under the title Ahkamat o Mamnoaat.
① Sayyiduna Ka'b bin Malik (may Allah be pleased with him) narrates, I heard the Messenger of Allah (peace be upon him) say:
من طلب العلم ليجاري به العلماء، أو يماري به السفهاء، أو يصرف وجوه الناس إليه أدخله الله النار
"Whoever seeks knowledge to argue with the scholars, to debate, to dispute with ignorant and foolish people, or to attract people towards himself, Allah will admit him to Hell."
Reference: (Tirmidhi, Book of Knowledge, Hadith: 2654)
① It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Messenger of Allah (peace be upon him) said:
من أفتي بغير علم كان إثمه على الذى أفتاه، ومن أشار علىٰ أخيه بأمر يعلم أن الرشد فى غيره فقد خانه
”Whoever gives a fatwa without knowledge (and acts upon it), then the sin is upon the one who gave the fatwa. And whoever advises his brother in a matter while knowing that the better option is another matter, then he has betrayed and ill-wished him.“
Reference: (Abu Dawood, Book of Knowledge, Hadith: 3657. Ibn Majah, Introduction, Hadith: 53)