Sunan an-Nasa'i, Book 22, Hadith 144 (Nasa'i 2238)

Abu 'Ubaidah said:

"I heard the Messenger of Allah say: 'Fasting is a shield, so long as you do not damage it."'