It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that after the Battle of Badr was over, it was said to the Messenger of Allah (peace and blessings be upon him): "Now go after the caravan; there is nothing standing in its way." The narrator says: Then Sayyiduna Abbas bin Abd al-Muttalib (may Allah be pleased with him) called out to him (peace and blessings be upon him): "That is not right for you." He (peace and blessings be upon him) asked: "Why?" He said: "Because Allah, the Mighty and Majestic, promised you one of the two groups, and He has already given you what He promised."
Imam Ahmad (may Allah have mercy on him) also narrated this hadith through both Abd al-Razzaq and Yahya bin Adam from Isra'il.
And Imam al-Tirmidhi (may Allah have mercy on him) narrated it from Abd bin Humayd, he from Abd al-Razzaq, he from Isra'il, and said: "This hadith is hasan."
Related hadith on this topic