The Messenger of Allah (sal Allahu alaihi wa sallam) said:
“Seven people will be shaded by Allah under His shade on the Day when there will be no shade except His. They are, (1) a just ruler, (2) a youth who grew up in the worship of Allah, (3) a man whose heart is attached to the Masjid, (4) two men who love each other for Allah’s sake, meeting for that and parting for that, (5) a man who is called by a woman of beauty and position but he says, ‘I fear Allah’, (6) a man who gives in charity and hides it, such that his left hand does not know what his right hand has given, and (7) a man who remembered Allah in private and so his eyes shed tears.”
Abdullah Ibn al-Mubarak used to frequently go to Tarasus and stay in a small inn. There was a young man who would visit him and assist him with his needs and also learn Hadith from him. Once Abdullah Ibn al-Mubarak travelled to Tarasus but did not see the young man there. He had to leave quickly with a group of people but when he returned he asked about the young man. They said he was jailed for not being able to repay a debt of 10,000 Dirhams.
Abdullah Ibn al-Mubarak found out who the creditor was and paid the 10,000 to him secretly, taking an oath from him that he would not inform anyone as long as he lived. The young man was released and came to see Ibn al-Mubarak in the inn. “O young man! Where were you? I haven’t seen you!” greeted Abdullah Ibn al-Mubarak. The young man said, “O Abu Abdur-Rahman, I was jailed for debt.” “How was it settled then?” asked Ibn al-Mubarak. “A man came and settled the debt but I do not know who he was” replied the young man. “Then praise Allah” said Ibn al-Mubarak. And the young man did not get to know who his benefactor was until Ibn al-Mubarak had passed away. [Tarikh Baghdad]
Allah (subhana wa ta’ala) says: “If you give charity openly, it is good, but if you keep it secret and give to the needy in private, that is better for you, and it will atone for some of your bad deeds: Allah is well aware of all that you do.” [Quran: Surah Baqarah, Ayat 271].