动心忍性 dòngxīnrěnxìng to strengthen one's resolve
to steel one's heart and harden one's nature through hardship; to persist despite external difficulties and obstacles. This term originates from Mencius, referring to how struggle can stimulate one's mind and build character.