Immanuel Kant said this quote

...[T]o be unfaithful to my maxim of prudence may often be very advantageous to me, although to abide by it is certainly safer.