وَعَنْ جَابِرٍ قَالَ : سَمِعْتُ رَسُولَ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ يَقُولُ : مَنْ صَامَ يَوْمًا فِي سَبِيلِ اللهِ جَعَلَ اللهُ بَيْنَهُ وَبَيْنَ النَّارِ خَنْدَقًا كَمَا بَيْنَ السَّمَاءِ وَالْأَرْضِ .
It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that he said: I heard the Messenger of Allah (peace and blessings be upon him) saying: "Whoever fasts one day in the way of Allah, Allah Almighty places between him and the Fire a trench as wide as the distance between the heaven and the earth."
Related hadith on this topic