Sunan Abi Dawud, Book 40, Hadith 10 (Abu Dawud 4362)

Jarir reported the prophet (ﷺ) as saying:

When a slave runs away and reverts to polytheism, he may lawfully be killed.