Hadith 6:1070
Jarir narrated to us, from Mughira, from Ibrahim, regarding the captives who are taken from the land of the enemy, he said: If he affirms the Oneness (Tawhid) and the two testimonies (Shahadatayn), then pray over him.
حدثنا جرير عن مغيرة عن إبراهيم في السبي يسبى من أرض العدو قال إذا أقر بالتوحيد وبالشهادتين صلي عليه