Sayyiduna Sa'd bin Abi Waqqas (may Allah be pleased with him) said: When the Messenger of Allah (peace and blessings be upon him) came to Madinah, he (peace and blessings be upon him) sent us out with a party of riders. Sa'd (may Allah be pleased with him) narrated the hadith, and in it he said: "And (the rule for) wealth (then was): whoever takes anything, it is his." Then he narrated the hadith about the party of Sayyiduna Abdullah bin Jahsh (may Allah be pleased with him), and he was the first commander in Islam.
And this indicates that this was before the revelation of the verse concerning spoils (ghanimah) and fay'.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قسم الفيء والغنيمة / 12819