The author , the great scholar of hadeeth, An-Nawawee – may Allah shower blessings on him – said in the Chapter on Guarding Secrets in what he narrated on the authority of Thabit Al-Bunaanee – may Allah shower blessings on him – from Anas bin Malik (may Allah be pleased with him), the servant Allah's Messenger ﷺ that: the Prophet ﷺ passed by him while he was playing with kids and made the Salam to them. That is, he gave the greeting of Salam to the playing
children. Allah's Messenger ﷺ was the best in character; he would go past kids and greet them.
So, he called Anas bin Malik (may Allah be pleased with him) and sent him on an assignment. Anas tarried from his mother, Umm Sulaym, the wife of Aboo Talhah (may Allah be pleased with them both). When he returned to her, she enquired, "What delayed you?" He said, "The Prophet ﷺ sent me on an assignment." She asked, "What was the assignment?" He answered, "I will not divulge the secret of Allah's Messenger ﷺ." So, she said, "Do not ever tell anyone the secret of Allah's Messenger ﷺ." Anas then said to Thabit who was one of those regularly kept his company, "If I would tell anyone, I would have told you"; i.e., the assignment the Prophet ﷺ gave me.
This hadeeth contains lessons:
Firstly: The noble character of the Prophet ﷺ and his modesty; and that he - despite his nobility, status and rank before Allah and His creatures - would humbles himself and even give the greeting of Salam to playing children in the market. Who amongst us does that except the one Allah wills.
Secondly: From the lessons of this hadeeth is that, it is right for a person to greet those he passes by even if they be children. The greeting of Salam is supplication for your brother, (you say): As-Salam 'Alayka (May Allah's peace be upon you), and his response is supplication for you; 'Alayka as-salaam (May Allah's peace be on you too). Because when you greet children with the Salam you have them accustomed to good training they would grow to know and live upon and you will earn rewards each time they follow you to do the same thing. Whatever an individual imitates you in of good deeds, you earn rewards therefrom.
Thirdly: Also, among the points of benefit in this hadeeth: the permissibility of sending a child on an assignment, even though that must be on the condition that he has the ability to fulfill such. But if he will be unable to carry it out, perhaps because the child plays much and is forgetful, then he should not be relied on.
Fourthly: Among that is what the scholars of jurisprudence – may Allah shower blessings on them – say, that if a child comes to you and says: “this is from my father”, “this is from my mother” and the like, then you have the right to take it even though he himself has not the right to gift out anything of his wealth on his own.” But if he comes upon being sent and says, “this from my father”; he comes to you, for example, with dates or brings watermelon to you or a cloth, anything, accept it. Do not say, “this is a child; he might have taken it without due permission” or “may be this and that...” all by way of depending on the apparent.
Fifthly: Also, among the points in this hadeeth is: giving consideration to one’s parents and family; and that if the individual intends to carry out an assignment but fears having to be away from them, he should inform them if that does not disturb executing the assignment. That is to say, when you go out leaving the family, it is necessary for you to say, (for example), “I am going towards such-and-such direction” so that they may be calm and relaxed. The individual would not know, perhaps, he might go in a particular direction and be injured in an incidence or he may fall and if it were not known, it becomes a problem to his family.
Therefore, when you go somewhere out of your routine, it is necessary to inform them of your movement. But as regard the usual movements, such as going to the mosque and the like, then there is no blame. But if you intend to go somewhere unusual, like leaving for a nearby town, you should say (for example), “Today I am going to such-and-such place.” Likewise when you leaving for an excursion, you should say, “Today, I am going on an excursion”; tell them, so that they may remain calm.
Sixthly: Amongst the benefits in this hadeeth is that: it is not permissible for an individual to divulge the secrets of another person, not even to his mother or father. If someone sent you on an assignment and then your father says to you, “What did he send you?”; do not tell him although he is your father or your mother because this is part of people’s secrets and it is not permissible to divulge it to anyone.
Seventhly: Part of it is the lesson of righteous upbringing Umm Sulaym gave her son when she said, “Do not tell anyone the secret of Allah’s Messenger ﷺ.” She only said that to him - despite the fact that he neither informed her nor anyone else -, by way of approving his (refusal to divulge it) and excusing him since he declined to disclose it owing its being the secret of Allah’s Messenger ﷺ. So she said, “You should never tell anyone” as if to say, “I support you on this; keep it up.”
Eighthly: Also, it indicates Anas’ affection for Thabit Al-Bunaanee - may Allah shower blessings on him - owing to regularly being with Anas’. And so, you find him giving a lot of narrations from him. Hence, he said to him, “If I would tell anyone, I would have told you.” This indicates the affection between Anas and his student, Thabit. This is how there should be mutual fondness between the student and his teacher; when such is lacking, the student will not accept what the teacher says. Likewise the teacher, he will neither find the zeal to teach his student nor pay much attention to him. But if there occurs mutual affection among them, tremendous benefit will be achieved.
Allah alone grants success.