Narrated Abu Huraira: Allah's Apostle said, "My heirs will not inherit a Dinar or a Dirham (i.e. money), for whatever I leave (excluding the adequate support of my wives and the wages of my employees) is given in charity."
— Sahih Bukhari, Volume 4, Book 51: Wills and Testaments (Wasaayaa), Hadith #37
Narrated Abu Huraira: Allah's Apostle said, "My heirs will not inherit a Dinar or a Dirham (i.e. money), for whatever I leave (excluding the adequate support of my wives and the wages of my employees) is given in charity."
This hadith is from the book of Wills and Testaments (Wasaayaa) in Sahih Bukhari, compiled by Imam al-Bukhari. It is hadith number 37 in book 51 of volume 4.
This hadith is referenced in the following topics: Inheritance.