Jabir bin Abdullah reported,

The Messenger of Allah ﷺ sent us out as a force of three hundred men, carrying our provisions on our shoulders. Our supplies ran out until each man among us was reduced to a single date.Someone asked, "Abu Abdullah, what use is a single date to a man?"He replied, "We truly felt its loss when it was gone. Then we reached the sea and came upon a whale that the sea had cast ashore, and we ate from it for eighteen days."

Ibn Majah 4159

Sahih

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

عن جابر بن عبد الله قال

بعثنا رسول الله ﷺ ونحن ثلاث مائة نحمل أزوادنا على رقابنا ففني أزوادنا حتى كان يكون للرجل منا تمرة فقيل يا أبا عبد الله وأين تقع التمرة من الرجل فقال لقد وجدنا فقدها حين فقدناها وأتينا البحر فإذا نحن بحوت قد قذفه البحر فأكلنا منه ثمانية عشر يوما

ابن ماجه 4159صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Asceticism
Chapter
Livelihood of the companions of the Prophet ﷺ
Numbering
Darussalam 4159
Ibn Majah 4159