Messenger of Allah ﷺ ordered me to guard the Zakat revenue of Ramadan. Then somebody came to me and started stealing from the foodstuff. I caught him and said, "I will take you to Messenger of Allah ﷺ!" Then Abu Huraira described the whole narration and said: That person said (to me), "(Please don't take me to Messenger of Allah ﷺ and I will tell you a few words by which Allah will benefit you.) When you go to your bed, recite Ayat-al-Kursi, (2.255) for then there will be a guard from Allah who will protect you all night long, and Satan will not be able to come near you till dawn." (When the Prophet ﷺ heard the story) he said (to me), "He (who came to you at night) told you the truth although he is a liar; and it was Satan."
وَكَّلَنِي رَسُولُ اللَّهِ ﷺ بِحِفْظِ زَكَاةِ رَمَضَانَ فَأَتَانِي آتٍ فَجَعَلَ يَحْثُو مِنَ الطَّعَامِ فَأَخَذْتُهُ فَقُلْتُ لأَرْفَعَنَّكَ إِلَى رَسُولِ اللَّهِ ﷺ فَقَصَّ الْحَدِيثَ فَقَالَ إِذَا أَوَيْتَ إِلَى فِرَاشِكَ فَاقْرَأْ آيَةَ الْكُرْسِيِّ لَنْ يَزَالَ مَعَكَ مِنَ اللَّهِ حَافِظٌ وَلاَ يَقْرَبُكَ شَيْطَانٌ حَتَّى تُصْبِحَ وَقَالَ النَّبِيُّ ﷺ صَدَقَكَ وَهْوَ كَذُوبٌ ذَاكَ شَيْطَانٌ