"I was throwing stones at a date-palm belonging to some of the Ansar. They took me along with them to the Prophet (ﷺ). He said: "O Rafi'! Why were you throwing stones at their date-palm?'" He said: "I said: 'Out of hunger, O Messenger of Allah! He said: 'Do not throw stones at them, eat what falls. May Allah fill you and quench your thirst.'"

This Hadith is Hasan Gharib Sahih.
Jami` at-Tirmidhi Book 14, Hadith 90