It is narrated from Sayyiduna Jarir (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "When a slave runs away to the enemy, the bond of protection is withdrawn from him."
Hadith Referenceالمعجم الكبير للطبراني / باب الجيم / 2332