كتاب المساقاة
22  
The Book of Musaqah
(8)
Chapter: The prohibition of selling surplus water which is in the wilderness and is needed to take care of the pasture. The prohibition of not allowing others to use it. The prohibition of Stud fees
(8)
بَاب تَحْرِيمِ بَيْعِ فَضْلِ الْمَاءِ الَّذِي يَكُونُ بِالْفَلَاةِ وَيُحْتَاجُ إِلَيْهِ لِرَعْيِ الْكَلَأِ وَتَحْرِيمِ مَنْعِ بَذْلِهِ وَتَحْرِيمِ بَيْعِ ضِرَابِ الْفَحْلِ
Sahih Muslim 1566 c

Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:

The excess of water should not be sold in order to enable the sate of herbage.
وَحَدَّثَنَا أَحْمَدُ بْنُ عُثْمَانَ النَّوْفَلِيُّ، حَدَّثَنَا أَبُو عَاصِمٍ الضَّحَّاكُ بْنُ مَخْلَدٍ، حَدَّثَنَا ابْنُ جُرَيْجٍ، أَخْبَرَنِي زِيَادُ بْنُ سَعْدٍ، أَنَّ هِلاَلَ بْنَ أُسَامَةَ، أَخْبَرَهُ أَنَّ أَبَا سَلَمَةَ بْنَ عَبْدِ الرَّحْمَنِ أَخْبَرَهُ أَنَّهُ، سَمِعَ أَبَا هُرَيْرَةَ، يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ لاَ يُبَاعُ فَضْلُ الْمَاءِ لِيُبَاعَ بِهِ الْكَلأُ ‏"‏ ‏.‏
Reference : Sahih Muslim 1566c
In-book reference : Book 22, Hadith 47
USC-MSA web (English) reference : Book 10, Hadith 3802
  (deprecated numbering scheme)