The Messenger of Allah ﷺ said on the day of Badr: He who does such-and-such, will have such-and such. The young men came forward and the old men remained standing near the banners, and they did not move from there. When Allah bestowed victory on them, the old men said: We were support for you. If you had been defeated, you would have returned to us. Do not take this booty alone and we remain (deprived of it). The young men refused (to give), and said: The Messenger of Allah ﷺ has given it to us. Then Allah sent down: "They ask thee concerning (things taken as) spoils of war, Say: (Such) spoils are at the disposal of Allah and the Apostle......Just as they Lord ordered thee out of thy house in truth, even though a party among the believers disliked it." This proved good for them. Similarly obey me. I know the consequence of this better than you. (Using translation from Abū Dāʾūd 2737)
قَالَ رَسُولُ اللهِ ﷺ يَوْمَ بَدْرٍ مَنْ فَعَلَ كَذَا وَكَذَا فَلَهُ مِنَ النَّفْلِ كَذَا وَكَذَا قَالَ فَتَقَدَّمَ الْفِتْيَانُ وَلَزِمَ الْمَشْيَخَةُ الرَّايَاتِ فَلَمْ يَبْرَحُوهَا فَلَمَّا فَتَحَ اللهُ عَلَيْهِمْ قَالَتِ الْمَشْيَخَةُ كُنَّا رِدَاءً لَكُمْ لَوِ انْهَزَمْتُمْ فِئْتُمْ إِلَيْنَا فَلَا تَذْهَبُوا بِالْمَغْنَمِ وَنَبْقَى فَأَبَى الْفِتْيَانُ وَقَالُوا جَعَلَهُ رَسُولُ اللهِ ﷺ لَنَا فَأَنْزَلَ اللهُ تَبَارَكَ وَتَعَالَى {يَسْأَلُونَكَ عَنِ الْأَنْفَالِ قُلِ الْأَنْفَالُ لِلَّهِ وَالرَّسُولِ} [الأنفال 1] إِلَى قَوْلِهِ {كَمَا أَخْرَجَكَ رَبُّكَ مِنْ بَيْتِكَ بِالْحَقِّ وَإِنَّ فَرِيقًا مِنَ الْمُؤْمِنِينَ لَكَارِهُونَ} [الأنفال 5] يَقُولُ فَكَانَ ذَلِكَ خَيْرًا لَهُمْ وَكَذَلِكَ أَيْضًا فَأَطِيعُونِي فَإِنِّي أَعْلَمُ بِعَاقِبَةِ هَذَا مِنْكُمْ 12713 أَخْبَرَنَا عَلِيُّ بْنُ أَحْمَدَ بْنِ عَبْدَانَ أنا أَحْمَدُ بْنُ عُبَيْدٍ الصَّفَّارُ ثنا أَبُو عِمْرَانَ التُّسْتَرِيُّ ثنا سَهْلُ بْنُ عُثْمَانَ ثنا يَحْيَى بْنُ زَكَرِيَّا بْنِ أَبِي زَائِدَةَ عَنْ دَاوُدَ بْنِ أَبِي هِنْدَ فَذَكَرَهُ بِمَعْنَاهُ زَادَ فَقَسَمَهَا بَيْنَهُمْ بِالسَّوَاءِ