Sahih al-Bukhari 6563
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
اتَّقُوا النَّارَ وَلَوْ بِشِقِّ تَمْرَةٍ، فَمَنْ لَمْ يَجِدْ فَبِكَلِمَةٍ طَيِّبَةٍ "
Narrated `Adi bin Hatim:
The Prophet (ﷺ) mentioned the Fire and turned his face aside and asked for Allah's protection from it, and then again he mentioned the Fire and turned his face aside and asked for Allah's protection from it and said, "Protect yourselves from the Hell-Fire, even if with one half of a date, and he who cannot afford that, then (let him do so) by (saying) a good, pleasant word."
Full reference and source
Sahih al-Bukhari 6563 In-book : Book 81, Hadith 152 USC-MSA web (English) : Vol. 8, Book 76, Hadith 568 (deprecated)
View source on Sunnah.com (opens in a new tab)