Allah says in Quran
And the slaves of the Most Beneficent (Allah) are those who walk on the earth in humility and sedateness, and when the foolish address them (with bad words) they reply back with mild words of gentleness.
Allah says in Quran that
And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient.