It is narrated from Sayyiduna Abu Ubaydah bin al-Jarrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Fasting is a shield as long as (the fasting person) does not tear it."
Imam al-Nasa'i (may Allah have mercy on him) narrated the mention of fasting through the chain of Yahya bin Arabi (may Allah have mercy on him), Hammad (may Allah have mercy on him) and Wasil (may Allah have mercy on him).
And (al-Nasa'i also narrated it) through the chain of Muhammad bin Hatim (may Allah have mercy on him), Ibn al-Mubarak (may Allah have mercy on him), Mis'ar (may Allah have mercy on him) and al-Walid bin Abi Malik (may Allah have mercy on him), who said: Our companions narrated to us from Sayyiduna Abu Ubaydah (may Allah be pleased with him) that he said: "Fasting," and then he mentioned it as mawquf (from the Companion).
Imam Abu Ya'la (may Allah have mercy on him) narrated it in full through the chain of Abdullah bin Muhammad bin Asma' (may Allah have mercy on him), Mahdi (may Allah have mercy on him) and Wasil (may Allah have mercy on him).
Imam Abu Bakr bin Khuzaymah (may Allah have mercy on him) narrated in his Sahih, through the chain of Bahr bin Nasr al-Khawlani (may Allah have mercy on him), Ibn Wahb (may Allah have mercy on him), Jarir bin Hazim (may Allah have mercy on him) and Sayf bin Abi Sayf (may Allah have mercy on him), these words: "Fasting is a shield as long as he does not tear it."