Abu Umamah (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said, "The superiority of the learned over the devout worshipper is like my superiority over the most inferior amongst you (in good deeds)." He went on to say, "Allah, His angels, the dwellers of the heaven and the earth, and even the ant in its hole and the fish (in water) supplicate in favour of those who teach people knowledge."[At-Tirmidhi].
App reference: Book 13, Hadith 12
Arabic/English book reference: Book 13, Hadith 1387