Forbearance is patient self-control when you could hit back. You had every right and you did not use it.
That restraint is the whole word, which is why it is a virtue rather than merely a behaviour. It is formal and slightly old-fashioned, and thanking somebody for their forbearance is a polite way of acknowledging that you have been trying. Finance has a precise sense, since mortgage forbearance means a lender agreeing not to enforce payment for a period. The verb forbear means to refrain.
1nounforbearancePatient restraint when you would be entitled to act.
“He thanked the neighbours for their forbearance during the work.”
From forbear + -ance.
Etymology from Wiktionary, CC BY-SA