Abu Hurairah reported,

The Prophet ﷺ reported that a man from the Children of Israil asked another man from the Children of Israil to lend him a thousand Dinars, and he gave them to him. The borrower then set out to sea but could not find a ship. So he took a piece of wood, hollowed it out, placed the thousand Dinars inside, and threw it into the sea.The man who had lent him the money went out and came across the piece of wood, which he took home as firewood. The narrator then mentioned the rest of the hadith, that when he sawed it open, he found the money inside.

Bukhari 1498

Sahih

وقال الليث حدثني جعفر بن ربيعة، عن عبد الرحمن بن هرمز،

عن أبي هريرة رضى الله عنه

عن النبي ﷺ أن رجلا من بني إسرائيل سأل بعض بني إسرائيل بأن يسلفه ألف دينار، فدفعها إليه، فخرج في البحر، فلم يجد مركبا، فأخذ خشبة فنقرها فأدخل فيها ألف دينار، فرمى بها في البحر، فخرج الرجل الذي كان أسلفه، فإذا بالخشبة فأخذها لأهله حطبا فذكر الحديث فلما نشرها وجد المال.

البخاري 1498صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Zakat
Chapter
What is extracted from the sea
Numbering
Darussalam 1498
Bukhari 1498