It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever reaches such-and-such a place and does such-and-such a deed, for him is such-and-such a reward." The narrator said: So the young men rushed towards it, while the old men stood firm beneath the banners. Then, when Allah Almighty granted victory, the young men came asking for the reward that Allah had fixed for them. The old men said: "Do not take it away and leave us out, for we were your support (behind you)." So Allah Almighty revealed this verse: "So fear Allah and set right the relations between yourselves."
Imam Abu Dawud (may Allah have mercy on him) narrated it via Wahb bin Baqiyyah, from Khalid, from Dawud.
He also narrated it from Ziyad bin Ayyub, from Hushaym, from Dawud, and the first narration is more complete.
And from Harun bin Muhammad bin Bakkar bin Bilal, from Yazid bin Khalid bin Mawhab al-Hamdani, from Yahya bin Abi Za'idah, from Dawud, and in it is that the Messenger of Allah (peace and blessings be upon him) said this on the day of (the Battle of) Badr.
And Imam al-Nasa'i (may Allah have mercy on him) narrated it via al-Haytham bin Ayyub al-Talaqani, from al-Mu'tamir bin Sulayman.
And Imam Abu Hatim al-Busti (may Allah have mercy on him) narrated it via Umar bin Muhammad al-Hamdani, from Muhammad bin Abd al-A'la, from Mu'tamir.