Rei turpis nullum mandatum est

Rei turpis nullum mandatum est. A mandate of an illegal thing is void. Dig. 17, 1, 6, 3.

A Law Dictionary, Adapted to the Constitution and Laws of the United States. By John Bouvier. Published 1856.