Jean De La Bruyère said this quote

We should keep silent about those in power; to speak well of them almost implies flattery; to speak ill of them while they are alive is dangerous, and when they are dead is cowardly.