It was narrated from Abu Hurairah that:
The Prophet said: "The best of charity is when a Muslim man gains knowledge, then he teaches it to his Muslim brother." (ID)
English reference (ID): Vol. 1, Book 1, Hadith 243 (ID)
Arabic reference (ID): Book 1, Hadith 250 (ID)