كتاب الصيام
13  
The Book of Fasting
(29)
Chapter: Guarding One's Tongue when Fasting
(29)
باب حِفْظِ اللِّسَانِ لِلصَّائِمِ ‏
Sahih Muslim 1151 a

Abu Huraira (Allah be pleased with him) reported:

When any one of you gets up in the morning in the state of fasting, he should neither use obscene language nor do any act of ignorance. And if anyone slanders him or quarrels with him, he should say:" I am fasting, I am fasting."
حَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، - رضى الله عنه - رِوَايَةً قَالَ ‏ "‏ إِذَا أَصْبَحَ أَحَدُكُمْ يَوْمًا صَائِمًا فَلاَ يَرْفُثْ وَلاَ يَجْهَلْ فَإِنِ امْرُؤٌ شَاتَمَهُ أَوْ قَاتَلَهُ فَلْيَقُلْ إِنِّي صَائِمٌ إِنِّي صَائِمٌ ‏"‏ ‏.‏
Reference : Sahih Muslim 1151a
In-book reference : Book 13, Hadith 209
USC-MSA web (English) reference : Book 6, Hadith 2563
  (deprecated numbering scheme)