I came to the Prophet ﷺ, and took the oath of allegiance to him. He said: If anyone reaches a water which has not been approached before by any Muslim, it belongs to him. The people, therefore, went out running and marking (on the land). (Using translation from Abū Dāʾūd 3071)
أَتَيْتُ النَّبِيَّ ﷺ فَبَايَعْتُهُ فَقَالَ مَنْ سَبَقَ إِلَى مَا لَمْ يَسْبِقْهُ إِلَيْهِ مُسْلِمٌ فَهُوَ لَهُ قَالَ فَخَرَجَ النَّاسُ يَتَعَادَوْنَ يَتَخَاطَوْنَ