The Prophet ﷺ said, "There are three to whom Allah will not speak on the Day of Resurrection, nor will He look at them. A man who swears regarding merchandise that he was offered more for it than he actually was, while he is lying. A man who swears a false oath after the afternoon prayer in order to seize the wealth of a Muslim man. And a man who withholds surplus water. Allah will say to him, 'Today I withhold My bounty from you, just as you withheld the surplus of what your own hands did not produce.'"
عن النبي ﷺ قال: ثلاثة لا يكلمهم الله يوم القيامة، ولا ينظر إليهم: رجل حلف على سلعة لقد أعطى بها أكثر مما أعطى وهو كاذب، ورجل حلف على يمين كاذبة بعد العصر ليقتطع بها مال رجل مسلم، ورجل منع فضل ماء، فيقول الله: اليوم أمنعك فضلي، كما منعت فضل ما لم تعمل يداك.
Bukhari narrated it in the chapter on irrigation (2369), and in the chapter on monotheism (7446), from Abdullah bin Muhammad, who said, Sufyan related to us, from Amr, from Abu Salih Samman, from Abu Hurairah, and he mentioned the hadith.It was also narrated from Abdullah bin Amr, from the Prophet ﷺ, who said, "Whoever withholds surplus water, or surplus pasture, Allah will withhold His surplus from him on the Day of Judgment." Ahmad narrated it (6673), from Ismail, from Layth, from Amr bin Shuayb, from his father, from his grandfather, and he mentioned it. Layth here is Ibn Sulaym, and there is well-known discussion about him.He also narrated it (6722) with another chain from Muhammad bin Rashid, from Sulayman bin Musa, that Abdullah bin Amr wrote to an agent of his over some land of his, saying, do not withhold your surplus water, for I heard the Messenger of Allah ﷺ say, "Whoever withholds surplus water in order to withhold surplus pasture through it, Allah will withhold His surplus from him on the Day of Judgment."Muhammad bin Rashid is al-Khuzai al-Dimashqi, who settled in Basra, and there is disagreement about him. Ahmad, Ibn Main, Nasai, and others considered him reliable. Ibn Hibban criticized him, saying, "He was a man of piety and devotion, but hadith was not his craft, and there were many objectionable narrations in his transmission, so he deserves to be abandoned." Haythami faulted the hadith on this basis in al-Majma (4/124).Sulayman bin Musa is al-Ashdaq, who never met Abdullah bin Amr, so his narration from him is disconnected.The hadith has other chains of transmission, and this is the soundest of them.