The Messenger of Allah ﷺ said, "Allah said, 'Every deed of the son of Adam is for him, except fasting. It is for Me, and I shall reward it.' Fasting is a shield. When one of you is fasting, he should not speak obscenely or raise his voice in argument. If someone insults him or tries to fight him, let him say, 'I am fasting.' By the One in whose hand is the soul of Muhammad, the smell of the fasting person's breath is sweeter to Allah than the fragrance of musk. The fasting person has two moments of joy he looks forward to. When he breaks his fast, he rejoices, and when he meets his Lord, he rejoices over his fast."
قال رسول الله ﷺ: قال الله: كل عمل ابن آدم له إلا الصيام، فإنه لي وأنا أجزي به، والصيام جنة، وإذا كان يوم صوم أحدكم فلا يرفث ولا يصخب، فإن سابه أحد أو قاتله فليقل: إني امرؤ صائم. والذي نفس محمد بيده لخلوف فم الصائم أطيب عند الله من ريح المسك. للصائم فرحتان يفرحهما: إذا أفطر فرح، وإذا لقي ربه فرح بصومه.
Bukhari narrated it in the Book of Fasting (1904), and Muslim in the Book of Fasting (1151:163), both of them via Ibn Jurayj, who said, Ata (that is, Ibn Abu Rabah) informed me, from Abu Salih the oil-seller, that he heard Abu Hurairah say (and he mentioned it). The wording given is Bukhari's, and Muslim's wording is close to it.