It was narrated from Ibn 'Umar that the Messenger of Allah (ﷺ) said:
"When anyone of you passes by a garden let him eat therefrom, but he should not carry any away in his garment."'
English reference: Vol. 3, Book 12, Hadith 2301
Arabic reference: Book 12, Hadith 2389
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.