“Whoever digs a well, is entitled to forty forearms' length surrounding it is as a resting place for his flocks.”
Sunan Ibn Majah Book 16, Hadith 51