It was transmitted by Ibn Abī Shaybah (6/82/347) and Aḥmad (2/180).
Muḥammad ibn ʿAjlān also corroborated him in narrating it, with the wording:
The Prophet, peace and blessings be upon him, was asked about hanging fruit, and he said:
“Whoever takes some of it out of need, without carrying anything away in his garment, incurs no liability.”
It was transmitted by a number of scholars, including al-Tirmidhī (1289), who said:
“This is a good hadith.”
It also has a corroborating report attributed to a Companion. Mujāhid narrated from Abū ʿIyāḍ that ʿUmar said:
“When you pass by an orchard, eat, but do not carry anything away in your garment.”
It was transmitted by Ibn Abī Shaybah (6/83/350) and al-Bayhaqī (9/359), through two routes from Manṣūr, from Mujāhid, with this wording.
I say: This is an authentic chain of transmission, as al-Bayhaqī said. He further said:
“In our view, this applies to a situation of necessity. And Allah knows best.”
I say: This means—or necessarily implies—that one may not enter a walled garden or orchard except out of necessity. Among the evidences are several narrations cited by al-Bayhaqī, including the Prophet’s saying, peace and blessings be upon him:
“…When you come upon a walled garden or orchard, call out to its owner three times. If he responds, and if not, then eat, provided that you do not cause damage.” In another version: “And do not carry anything away.”
Its chain of transmission is good, and it is cited in al-Irwāʾ (2521).
Furthermore, the report of ʿUmar was narrated by ʿAbd al-Razzāq (10/223/18918) through another interrupted chain. *