It was narrated from Ibn 'Umar that:
The Prophet said: "Whoever seeks knowledge for a reason other than the sake of Allah, or intends it for a purpose other than for the sake of Allah, let him take his place in hell."
English reference: Vol. 1, Book 1, Hadith 258
Arabic reference: Book 1, Hadith 269
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.