The author, the great scholar of hadeeth, An-Nawawee – may Allah shower blessings on him – said, "Chapter on Guarding Secrets."
As-Sirr (as in the Arabic text, rendered as Secret) refers to something private between you and your companion. It is not permissible for you to divulge this private matter or expose it to anyone. Whether he says, "do not divulge it to anyone" or you understand from his actions or the circumstances surrounding the matter that he does not like that anyone comes to know about it.
The first example: Verbal: That he tells you something and warns that, "do not tell anyone; it's a trust."
The second example: That he tells you while watching around, fearing that any other persons hear it. His looking around implies that he does not desire that anyone knows it.
The third example: Circumstance; when what he told you is among the matters he is shy of or he fears should be told, and similar other
circumstances. It is not therefore permissible for you to divulge and expose the secret.
Then the author – may Allah shower blessings on him – evidenced this with the statement of Allah - the Exalted:
“And fulfill (every) covenant, verily the covenant will be questioned about.”
That is, whenever you promise them something, whether directly or implicitly, it becomes mandatory upon you to fulfill the promise. Among such promises are: the conditions people agree to during buying and selling, renting and leasing, in mortgages and so on. These conditions form aspects of promises.
Likewise that between Muslims and non-Muslims, it is mandatory on the Muslims to fulfill them. As regard the non-Muslims under pact with the Muslims, Allah explained in Surat At-Taubah that they are of three categories:
A category that fulfills its covenants; we must fulfill the pacts with them.
The second category: those who broke their covenants; there is no valid pact between us and them since they already broke the pact. Allah - the Exalted - :
“Will you not fight a people who have violated the oaths (pagan of Makkah) and intended to expel the Messenger while they did attack you first.” (At-Tawbah: 13)
The third category: those who have not broken the pact, and there is no indication they will uphold the pacts. We are rather worried that may violate the agreements. Concerning those, Allah the Exalted says:
“If you (O Muhammad ﷺ) fear treachery from any people throw back (their covenant) to them (so as to be) on equal terms (that there will be no more covenant between you and them).”
(Al-Anfaal: 58)
That is, say to them: there is no pact between us and you unless the matter becomes clearly stated.
The point is, whatever agreements people go into constitutes promise such as the workers' punctuality and diligence on their jobs. The employee had accepted the work conditions stipulated by government, such as arriving at work on time and not leaving until the end of working hours, sincerity at work among other things well-known in the laws of service. It is compulsory to fulfill these agreements; otherwise, you should resign from the job and become free to do whatever you like. The job was not imposed on you; you rather even applied and took up the job. So, you must abide by the entire conditions of service, otherwise you may resign and become free to do as you wish. Then, no one will as you to give accounts except Allah – the Mighty and Sublime.
Then, he mentioned the hadeeth of Aboo Sa'eed Al-Khudree - may Allah be pleased with him - that the Prophet ﷺ said, “Amongst the worst people in rank on the Day of Resurrection”: Asharr (as in the Arabic text, meaning worst): this word is rarely so used. In most cases, the hamzah (the first letter in Asharr in the Arabic text) would be omitted. Both Khayr (better) and Sharr (worse) (in Arabic grammar) mostly have their hamzah (i.e., the first letter in a superlative Arabic syntax) omitted. So they not say, Akhyar (to refer to better) nor Asharr (to refer to worse); they'll rather only say, Khayr (better) or Sharr (worse).
Allah - the Exalted - said:
“The dwellers of Paradise (that is, those who deserved it through
their faith and righteousness) will on that day have the best abide and have the fairest of places for repose.” (Furqan: 24)
He – the Mighty and Sublime - also said:
“They will come to know who is worst in position, and who is weaker in forces.” (Maryam: 75)
In both verses, the hamzah was omitted in Khayr and Sharr (in the Arabic text); but sometimes, they are placed by way of retaining the basic form.
So here, “Amongst the worst people in rank on the Day Resurrection is the man who met a woman and she met to him”, referring to the wife, “then he wakes up divulging her secret” or also wakes up exposing his secrets. So he goes about saying, “I did such-and-such with my wife last night”, “I did such-and-such and such-and-such with my wife” - we seek refuge with Allah -, to such an extent that those who were not there became like eye-witnesses; as if they were with them on the bed – and the refuge is with Allah! He goes on telling about the private affairs which the wife would detest that any other person knew about.
In other cases, the wife may be the person telling other women that her husband would do such-and-such with her. All these are prohibited and not permissible. Such an individual will be of the worst of people in rank before Allah – the Mighty and Sublime - on the Day of Resurrection.
Therefore, it is compulsory for you to preserve the private affairs of the home, the bed and so on; no one else should know about them, for whoever keeps his brother’s secrets, Allah will preserve his own secrets: Rewards come in the form of actions.
Allah alone grants success.