It is narrated from Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him), while Sayyiduna Abu al-Darda' (may Allah be pleased with him) was also present with him, that the Prophet of Allah (peace and blessings be upon him) led the prayer facing a camel from the spoils of war. When he finished the prayer, he took a small tuft of wool from the side of that camel between his two fingers and said: "Behold! This too is part of your spoils, and my share in it is only the fifth, and that fifth is also returned to you. So hand over (to the commander of the army) the thread and the needle, and everything smaller and larger than that, for misappropriation (of the spoils) becomes a disgrace and a burden for those who commit it, in this world and the Hereafter. Strive (wage jihad) in the path of Allah against those near and those far, do not care about the blame of any blamer in the matter of Allah, and establish the prescribed punishments (hudud) of Allah both when resident and when travelling. Hold fast to jihad, for it is one of the great gates of Paradise; through it Allah Almighty rescues from grief and anxiety."
These are the words of Musa bin Harun.
In the narration of Muhammad bin Ishaq it says: "towards a camel from the distribution"; and in his version: "my share in it is only the fifth"; and in his version: "those of you who are near and those who are far"; and in his version: "it is one of the gates of good"; and the rest of the narration is like it.
Abu al-Mughirah and Isma'il bin Ayyash narrated this hadith from Abu Bakr bin Abi Maryam, from Abu Sallam al-Aswad, from Sayyiduna al-Miqdam bin Ma'dikarib al-Kindi (may Allah be pleased with him), that he sat with Sayyiduna Ubadah bin al-Samit, Sayyiduna Abu al-Darda' and Sayyiduna al-Harith bin Mu'awiyah al-Kindi (may Allah be pleased with them), and they discussed among themselves the hadith of the Messenger of Allah (peace and blessings be upon him) about the khums (the fifth); (then he narrated the full) hadith.