Searching for a quote

Postel's Law: Be generous in what you accept; strict in what you send.*

*From aging memory, but I think that is close.

https://en.wikipedia.org/wiki/Robustness_principle

Be conservative in what you do, be liberal in what you accept from others (often reworded as "Be conservative in what you send, be liberal in what you accept").