Sunan Abi Dawud, Book 26, Hadith 3 (Abu Dawud 3644)

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.