Hadithcore
Sahih Muslim, 2179
sahih

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

When anyone amongst you stands up, and in the badltb transmitted on the authority of Abu 'Awina, the words are:" He who stands in his place and (goes away) and then comes back to it, he his the greatest right (to occupy that).

وَحَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، أَخْبَرَنَا أَبُو عَوَانَةَ، وَقَالَ، قُتَيْبَةُ أَيْضًا حَدَّثَنَا عَبْدُ الْعَزِيزِ، - يَعْنِي ابْنَ مُحَمَّدٍ - كِلاَهُمَا عَنْ سُهَيْلٍ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏"‏ إِذَا قَامَ أَحَدُكُمْ ‏"‏ ‏.‏ وَفِي حَدِيثِ أَبِي عَوَانَةَ ‏"‏ مَنْ قَامَ مِنْ مَجْلِسِهِ ثُمَّ رَجَعَ إِلَيْهِ فَهُوَ أَحَقُّ بِهِ ‏"‏ ‏.‏

References2 variants
In-Book Reference
Book 39, Hadith 43
USC-MSA web (English) reference
Book 26, Hadith 5414 (deprecated numbering scheme)