عَنْ مُعَاذٍ رَضِيَ اللَّهُ عَنْهُ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ سَأُنَبِّئُكَ بِأَبْوَابٍ مِنَ الْخَيْرِ الصَّوْمُ جُنَّةٌ وَالصَّدَقَةُ تُطْفِئُ الْخَطِيئَةَ كَمَا يُطْفِئُ الْمَاءُ النَّارَ وَقِيَامُ الْعَبْدِ مِنَ اللَّيْلِ ثُمَّ قَرَأَ {تَتَجَافَى جُنُوبُهُمْ عَنِ الْمَضَاجِعِ} [سورة السجدة: ١٦] الْآيَةَ
It is narrated from Sayyiduna Mu'adh (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: Shall I not inform you about the doors of goodness and virtue? Fasting is a shield, charity wipes out sins just as water extinguishes fire, and a servant standing (in prayer) at night. Then the Prophet (peace and blessings be upon him) recited this verse: {تَتَجَافٰی جُنُوبُھُمْ عَنِ الْمَضَاجِعِ … }.