Sunan Abu Dawud #3643
Knowledge (Kitab Al-Ilm) 26:3
Abu Hurairah reported the Prophet (ﷺ) as saying:
If anyone pursues a path in search of knowledge, Allah will thereby make easy for him a path to paradise; and he who is made slow by his actions will not be speeded by his genealogy.