It was narrated to us by my father رحمه الله, who said – it was narrated to us by ʿAbd Allāh bin Jaʿfar al-Ḥumairi, who said – it was narrated to us by Yaʿqūb bin Yazīd, from Moḥammed bin Abī ʿUmayr, from Hishām bin Sālim, from Sulaymān bin Khālid, from al-Ṣādiq Jaʿfar bin Moḥammed, from his father, from his forefathers:1

‘Amīr al-Mu’minīn عليه السلام said: All good is contained with three traits.
1. Observation
2. Silence
3. Utterance
For each observation that does not have within it a lesson, is negligence; and each [moment] of silence that does not have within it contemplation, is inattentiveness; and each utterance that does not have within it remembrance [of Allāh], is garrulity. So glad tidings (ṭūba) for the one whose observation is admonition, and his silence is contemplation, and his utterance is remembrance [of Allāh], and he cries over his faults, and saves people from their evil.

1. The ḥadīth has a reliable chain (Āṣif al-Moḥsini, Moḥammed Taqi al-Majlisi I)

حدثنا أبي ( رحمه الله ) ، قال : حدثنا عبد الله بن جعفر الحميري ، قال : حدثنا يعقوب بن يزيد ، عن محمد بن أبي عمير ، عن هشام بن سالم ، عن سليمان بن خالد ، عن الصادق جعفر بن محمد ، عن أبيه ، عن آبائه ( عليهم السلام ) : أن أمير المؤمنين ( عليه السلام ) ، قال : جمع الخير كله في ثلاث خصال : النظر ، والسكوت ، والكلام ، فكل نظر ليس فيه اعتبار فهو سهو ، وكل سكوت ليس فيه فكرة فهو غفلة ، وكل كلام ليس فيه ذكر فهو لغو ، فطوبى لمن كان نظره عبرا ، وسكوته فكرا ، وكلامه ذكرا ، وبكى على خطيئته ، وأمن الناس شره