“If one of the members of his family died, Hudhaifah would say: ‘Do not inform anyone of it, for I am afraid that that would be a public death announcement. I heard the Messenger of Allah ﷺ with these two ears of mine forbidding making public death announcements.’” (Using translation from Ibn Mājah 1476)
لَا تُؤْذِنُوا بِهِ أَحَدًا إِنِّي أَخَافُ أَنْ يَكُونَ نَعْيًا إِنِّي سَمِعْتُ رَسُولَ اللهِ ﷺ يَنْهَى عَنِ النَّعْيِ