And know that anything you obtain of war booty - then indeed, for Allāh is one fifth of it and for the Messenger1 and for [his] near relatives2 and the orphans, the needy, and the [stranded] traveler,3 if you have believed in Allāh and in that which We sent down to Our Servant4 on the day of criterion [i.e., decisive encounter] - the day when the two armies met [at Badr]. And Allāh, over all things, is competent.
Translation: Saheeh International (English)
1 To be spent in Allāh's cause.
2 The tribes of Banū Hāshim and Banū Muṭṭalib, who were not eligible for zakāh.
3 The remaining four fifths are divided among the soldiers.
Know, O believers, that whatever you take by force from the disbelievers when striving in Allah’s path shall be divided into five. Four-fifths shall be distributed to those who strove in Allah’s path and the remaining fifth shall be further divided into five portions and distributed equally between the following: Allah and His Messenger, to be spent on the general expenses of the Muslims; the relatives of the Prophet (peace be upon him) from the Children of Hāshim and the Children of Al-Muţţalib; orphans; the poor and destitute; and travellers who are stranded. Obey this if you have faith in Allah and what He revealed to His servant, Muhammad (peace be upon him), on the day of the Battle of Badr, when Allah made a clear distinction between truth and falsehood by giving you victory over your enemies.