There are multiple narrations of the Prophet Muhammad (peace and blessings of Allah be upon him) advising his companions to maintain good character even in trying circumstances.
Waa Muxaadaro ka waramaysa Dhibkii la marsiiyay salixnta anbiyada oo musal sal ah ku waas oo iimaan badan u siyaadin doona cidii dhagaysata kuna cibro qadan doonta dadkii alle dortay iyo sida loo imtixaamay iyo sidee alle farajka ugu furay intaba dhagaysi wacan.