The Messenger of Allah ﷺ went out on the day of Badr along with three hundred and fifteen (men). The Messenger of Allah ﷺ said: O Allah, they are on foot, provide mount for them; O Allah , they are naked, clothe them; O Allah, they are hungry, provide food for them. Allah then bestowed victory on them. They returned when they were clothed. There was no man of them but he returned with one or two camels; they were clothed and ate to their fill. (Using translation from Abū Dāʾūd 2747)
أَنَّ رَسُولَ اللهِ ﷺ خَرَجَ يَوْمَ بَدْرٍ فِي ثَلَاثِمِائَةٍ وَخَمْسَةَ عَشَرَ فَقَالَ رَسُولُ اللهِ ﷺ اللهُمَّ إِنَّهُمْ حُفَاةٌ فَاحْمِلْهُمُ اللهُمَّ إِنَّهُمْ عُرَاةٌ فَاكْسُهُمُ اللهُمَّ إِنَّهُمْ جِيَاعٌ فَأَشْبِعْهُمْ فَفَتَحَ اللهُ لَهُ يَوْمَ بَدْرٍ فَانْقَلَبُوا حِينَ انْقَلَبُوا وَمَا مِنْهُمْ رَجُلٌ إِلَّا قَدْ رَجَعَ بِجَمَلٍ أَوْ جَمَلَيْنِ وَاكْتَسَوْا وَشَبِعُوا قَالَ الشَّيْخُ قَدْ أَعَادَ الشَّافِعِيُّ رَحِمَهُ اللهُ هَذِهِ الْمَسْأَلَةَ فِي كِتَابِ السِّيَرِ وَنَحْنُ نَذْكُرُهَا بِتَمَامِهَا فِي مَوْضِعِهَا مِنْ كِتَابِ السِّيَرِ إِنْ شَاءَ اللهُ تَعَالَى