Narrated by Abū Hurayrah, and collected by Bukhari and Muslim, the Prophet (ṣallallāhu ʿalayhi wa-sallam) said, “Whosoever believes in Allāh and the last day then let him speak good or remain silent.”
Reported by Ahmad (2/267, 433, and 463),
al-Bukhari (6018, 6136, and 6475), Muslim (47), Abu Dawud (5154), at-Tirmidhi
(2500), and Ibn Hibban (506 & 516)
https://www.salafipubs.com/the-basics-m/2597-speak-good-or-remain-silent