كتاب الصيام
5  
Fasting
Bulugh al-Maram 663
Abu Hurairah (BAA) narrated that The Messenger of Allah (ﷺ) said:
“Whoever does not give up forged speech and evil actions and does not abandon foolishness, Allah is not in need of his leaving food and drink (i.e. Allah will not accept his FASTING).” Related by Al-Bukhari and Abu Dawud, and the wording is from the latter.
وَعَنْهُ قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ مَنْ لَمْ يَدَعْ قَوْلَ اَلزُّورِ وَالْعَمَلَ بِهِ, وَالْجَهْلَ, فَلَيْسَ لِلَّهِ حَاجَةٌ فِي أَنْ يَدَعَ طَعَامَهُ وَشَرَابَهُ } رَوَاهُ اَلْبُخَارِيُّ, وَأَبُو دَاوُدَ وَاللَّفْظُ لَهُ 1‏ .‏
Reference : Bulugh al-Maram 663
In-book reference : Book 5, Hadith 663
English translation : Book 5, Hadith 684
Hadith Text
Reference