Abdullah bin Abbas reported,

The Prophet of Allah ﷺ was suffering from severe hunger. When this news reached Ali, he went out seeking work by which he could earn something to feed the Messenger of Allah ﷺ. He came to an orchard belonging to a Jewish man and drew seventeen buckets of water for him, each bucket in exchange for a date. The Jewish man let him choose from his dates, and Ali selected seventeen ajwa dates and brought them to the Prophet of Allah ﷺ.

Ibn Majah 2446

Daif

حدثنا محمد بن عبد الأعلى الصنعاني حدثنا المعتمر بن سليمان عن أبيه عن حنش عن عكرمة

عن ابن عباس قال

أصاب نبي الله ﷺ خصاصة فبلغ ذلك عليا فخرج يلتمس عملا يصيب فيه شيئا ليقيت به رسول الله ﷺ فأتى بستانا لرجل من اليهود فاستقى له سبعة عشر دلوا كل دلو بتمرة فخيره اليهودي من تمره سبع عشرة عجوة فجاء بها إلى نبي الله ﷺ

ابن ماجه 2446ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Pledges
Chapter
A man drawing water, each bucket for a date, and stipulating a hide
Numbering
Darussalam 2446
Ibn Majah 2446