Sunan Ibn Majah, Book 7, Hadith 54 (Ibn Majah 1691)
It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:
“When anyone of you is fasting, let him not utter evil or ignorant speech. If anyone speaks to him in an ignorant manner, let him say: ‘I am fasting.’”