(65) باب مَا يُسْتَخْرَجُ مِنَ الْبَحْرِ
Narrated Abu HurairaThe Prophet (ﷺ) said, "A man from Bani Israel asked someone from Bani Israel to give him a loan of one thousand Dinars and the later gave itto him. The debtor went on a voyage (when the time for the payment of the debt became due) but he did not find a boat, so he took a piece ofwood and bored it and put 1000 diners in it and threw it into the sea.The creditor went out and took the piece of wood to his family to be used as fire-wood." (See Hadith No. 488 B, Vol. 3). And the Prophet (ﷺ) narrated the narration (and said), "When he sawed the wood, he found his money."
Reference: Sahih al-Bukhari 1498
In-book reference: Book 24, Hadith 99
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 24, Hadith 574