Sahih Muslim, Book 45, Hadith 171 (Muslim 6602)

Abu Barza reported that he said to Allah's Messenger (ﷺ):

Allah's Messenger, I do not know whether I would survive after you, so confer upon me something by which Allah should benefit me. Thereupon Allah's Messenger (ﷺ) said: Do this and that and remove the troublesome things from the paths.