It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Allah Almighty does not accept charity from stolen war booty, nor does He accept prayer without purification."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 4969
Hadith Gradingحکم دارالسلام:صحيح لغيره، م: 224، وهذا إسناد حسن من أجل سماك بن حرب.