Hadithcore
Riyad as-Salihin, 1769

Jarir bin Abdullah (May Allah be pleased with him) said:

The Prophet (ﷺ) said, "When the slave runs away from his master, his Salat (prayer) will not be accepted." <b>[Muslim]</b>. Another narration is: "He is guilty of disbelief (i.e., in case he believes in the lawfulness of doing so)."

وعنه عن النبي صلى الله عليه وسلم ‏:‏ ‏"‏إذا أبق العبد، لم تقبل له صلاة ‏"‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏ ‏.‏ وفي رواية‏:‏ ‏"‏فقد كفر ‏"‏ ‏.‏

References1 variant
In-Book Reference
Book 17, Hadith 259
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) They give a stern warning against slaves rejecting obedience to their masters in what is good.<br> 2) A slave’s flight from his master is one of the things that render deeds worthless and one of the branches of disbelief.