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)
قَالَ سَأَلْتُ رَسُولَ اللهِ ﷺ قُلْتُ يَا رَسُولَ اللهِ إِنِّي لَا أَدْرِي لَعَسَى أَنْ تَمْضِيَ وَأَبْقَى بَعْدَكَ فَحَدِّثْنِي بِشَيْءٍ يَنْفَعُنِي اللهُ بِهِ فَقَالَ لَهُ رَسُولُ اللهِ ﷺ افْعَلْ كَذَا افْعَلْ كَذَا أَنَا نَسِيتُ ذَلِكَ وَأَمِرَّ الْأَذَى عَنِ الطَّرِيقِ