Bilāl b. Saʿd – Allāh have mercy him – said:

When a sin is hidden it harms only the perpetrator, but if it is made apparent and not rectified, it harms all the people.

Ibn Waḍḍāḥ, Al-Bidʿah #287.