I was sitting with my father and there was also a boy with him. He got up and then returned. So my father mentioned a tradition on the authority of Abu Hurairah from the Prophet (ﷺ) saying: If anyone gets up from where he has been sitting and comes back to it, he has most right to it.
Sunan Abi Dawud Book 43, Hadith 81