Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:2618bYaḥyá b. Yaḥyá > Abū Bakr b. Shuʿayb b. al-Ḥabḥāb > Abū al-Wāziʿ al-Rāsibī > Abū Barzah al-Aslamī > Abū Barzah

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

مسلم:٢٦١٨bحَدَّثَنَا يَحْيَى بْنُ يَحْيَى أَخْبَرَنَا أَبُو بَكْرِ بْنُ شُعَيْبِ بْنِ الْحَبْحَابِ عَنْ أَبِي الْوَازِعِ الرَّاسِبِيِّ عَنْ أَبِي بَرْزَةَ الأَسْلَمِيِّ أَنَّ أَبَا بَرْزَةَ قَالَ

قُلْتُ لِرَسُولِ اللَّهِ ﷺ يَا رَسُولَ اللَّهِ إِنِّي لاَ أَدْرِي لَعَسَى أَنْ تَمْضِيَ وَأَبْقَى بَعْدَكَ فَزَوِّدْنِي شَيْئًا يَنْفَعُنِي اللَّهُ بِهِ فَقَالَ رَسُولُ اللَّهِ ﷺ افْعَلْ كَذَا افْعَلْ كَذَا أَبُو بَكْرٍ نَسِيَهُ وَأَمِرَّ الأَذَى عَنِ الطَّرِيقِ  


See similar narrations below:

Collected by Aḥmad
ahmad:19785Ḥasan b. Mūsá > Abū Bakr / Ibn Shuʿaybib. al-Ḥabḥāb > Abū al-Wāziʿ Jābir al-Rāsibī Dhakar > Abū Barzah

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

أحمد:١٩٧٨٥حَدَّثَنَا حَسَنُ بْنُ مُوسَى حَدَّثَنَا أَبُو بَكْرٍ يَعْنِي ابْنَ شُعَيْبِبْنِ الْحَبْحَابِ قَالَ سَمِعْتُ أَبَا الْوَازِعِ جَابِرًا الرَّاسِبِيَّ ذَكَرَ أَنَّ أَبَا بَرْزَةَ حَدَّثَهُ

قَالَ سَأَلْتُ رَسُولَ اللهِ ﷺ قُلْتُ يَا رَسُولَ اللهِ إِنِّي لَا أَدْرِي لَعَسَى أَنْ تَمْضِيَ وَأَبْقَى بَعْدَكَ فَحَدِّثْنِي بِشَيْءٍ يَنْفَعُنِي اللهُ بِهِ فَقَالَ لَهُ رَسُولُ اللهِ ﷺ افْعَلْ كَذَا افْعَلْ كَذَا أَنَا نَسِيتُ ذَلِكَ وَأَمِرَّ الْأَذَى عَنِ الطَّرِيقِ