It is narrated from Hazrat Hudhaifa (may Allah be pleased with him) that when someone would die, he would say that no one should be informed about it, for I fear that this may be counted as "Nai" (public announcement of death), from which I heard the Holy Prophet (peace and blessings be upon him) forbidding.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 23455
Hadith Gradingحکم دارالسلام:إسناده ضعيف لانقطاعه، بلال العبسي لم يسمع من حذيفة