Narrated Abu Hurairah: Allah’s Messenger, peace be upon him, deputed me to keep Sadaqah (Al-Fitr collected during) Ramadhan. A comer came and started taking handfuls of the foodstuff (of Sadaqah stealthily). I took hold of him and said, “By Allah, I will take you to Allah’s Messenger, peace be upon him.” He said, “I am needy and have many dependants, and I am in great need.” I released him.
In the morning Allah’s Messenger, peace be upon him, asked me, “What did your prisoner do yesterday?” [Allah’s Messenger, peace be upon him, was inspired divinely of the whole story and this was the reason why he asked Abu Hurairah though Abu Hurairah had told him nothing.]
I said, “O Allah’s Messenger! The prisoner complained of being needy and of having many dependants, so, I pitied him and let him go.” Allah’s Messenger, peace be upon him, said, “Indeed, he told you a lie and he will be coming again.” I believed that he would show up again as Allah’s Messenger, peace be upon him, had told me that he would return. So, I waited for him watchfully. When he (showed up and) started stealing handfuls of foodstuff, I caught hold of him again and said, “I will definitely take you to Allah’s Messenger, peace be upon him. He said, “Leave me, for I am very needy and have many dependants. I promise I will not come back again.” I pitied him and let him go.
In the morning Allah’s Messenger, peace be upon him, asked me, “What did your prisoner do?” I replied, “O Allah’s Messenger! He complained of his great need and of too many dependants, so I took pity on him and set him free.” Allah’s Messenger, peace be upon him, said, “Verily, he told you a lie and he will return.” I waited for him attentively for the third time. When he (came and) started stealing handfuls of the foodstuffs, I caught hold of him and said, “I will surely take you to Allah’s Messenger, peace be upon him, as it is the third time you promise not to return, yet you break your promise and come.” He said, (Forgive me and) I will teach you some words with which Allah will benefit you.” I asked, “What are they?” He replied, “Whenever you go to bed, recite Ayat-ul-Kursi: Allahu la ilaha illa Huwa Al-Hayyul-Qayyum ….. (Verse 255 of Surah Baqarah) till you finish the whole Verse. (If you do so,) Allah will appoint a guard for you who will stay with you and no Satan will come near you till morning.” So, I released him.
In the morning, Allah’s Messenger, peace be upon him, asked, “What did your prisoner do yesterday?” I replied, “He claimed that he would teach me some words, by which Allah will benefit me, so I let him go.” Allah’s Messenger, peace be upon him, asked, “What are they?” I replied, “He said to me, ‘Whenever you go to bed, recite Ayat-ul-Kursi from the beginning to the end: [i]Allahu la ilaha illa Huwa Al-Hayyul-Qayyum]/i]:’ He further said to me, ‘(If you do so,) Allah will appoint a guard for you who will stay with you till morning’.” (Abu Hurairah or another sub-narrator) added that they (the companions) were very eager to do good deeds).
The Prophet, peace be upon him, said, “He really spoke the truth, although he is an absolute liar. Do you know whom you were talking to these three nights, O Abu Hurairah?” Abu-Hurairah said, “No.” He said, “It was Satan.”
[3: 505- O.B. Sahih Al-Bukhari)