And know that whatever ye take as spoils of war , lo ! a fifth thereof is for Allah , and for the messenger and for the kinsman ( who hath need ) and orphans and the needy and the wayfarer , if ye believe in Allah and that which We revealed unto Our slave on the Day of Discrimination , the day when the two armies met . And Allah is Able to do all things .