Meaning of “stray” - Learner’s Dictionary

stray

verb [ I ] us uk /streɪ/
MOVE AWAY

to move away from the place where you should be, without intending to:

I suddenly realized that I had strayed / far from the village.
CHANGE THOUGHTS

to start thinking or talking about a different subject from the one you should be giving attention to:

We seem to have strayed from / the original subject.

(Definition of “stray verb” from the Cambridge Learner’s Dictionary © Cambridge University Press)