Messenger of Allah, are you leaving me behind amongst women and children? Thereupon he (the Holy Prophet) said: Aren't you satisfied with being unto me what Aaron was unto Moses but with this exception that there would be no prophet after me? (Using translation from Muslim 2404b)
خَلَّفَ رَسُولُ اللهِ ﷺ عَلِيَّ بْنَ أَبِي طَالِبٍ ؓ فِي غَزْوَةِ تَبُوكَ فَقَالَ يَا رَسُولَ اللهِ أَتُخَلِّفُنِي وَالنِّسَاءَ وَالصِّبْيَانَ؟ فَقَالَ أَمَا تَرْضَى أَنْ تَكُونَ مِنِّي بِمَنْزِلَةِ هَارُونَ مِنْ مُوسَى غَيْرَ أَنَّهُ لَا نَبِيَّ بَعْدِي