the ability to stop yourself doing or saying something that you want to because you know it is better not to She exercised all her self-restraint and kept quiet.
Check pronunciation: self-restraint
Definition of self-restraint noun from the Oxford Advanced American Dictionary