Wahb bin Huzaifa reported,

The Prophet ﷺ said, "If a man gets up from his seat and then returns to it, he has the greater right to it. And if he has a need, gets up to attend to it, and then returns, he has the greater right to it."

Azami 14292

Sahih

عن وهب بن حذيفة

عن النبي ﷺ قال: إذا قام الرجل من مجلسه فرجع إليه فهو أحق به، وإن كانت له حاجة، فقام إليها ثم رجع فهو أحق به.

الأعظمي 14292صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of sitting and gatherings
Section
One who leaves his seat then returns is most entitled to it
Numbering
Jami al-Kamil 14292 (2nd edition)
Azami 14292