David on Character: My Lord enjoined upon me nine good character traits

Hasan ibn Dhakwan reported: David, peace be upon him, said, “My Lord Almighty enjoined upon me nine traits. He enjoined me to revere him in privacy and in public, to be just in a time of anger or pleasure, and to be moderate in a time of wealth or poverty. He enjoined me to reconcile with those who cut me off, to give to those who deprive me, to forgive those who wrong me, to let my observation be a lesson, to let my silence be reflection, and to let my words be remembrance of Allah.”

Source: Iṣlāh al-Māl 311

عَنِ الْحَسَنِ بْنِ ذَكْوَانَ أَنَّ دَاوُدَ عَلَيْهِ السَّلامُ قَالَ أَوْصَانِي رَبِّي عَزَّ وَجَلَّ بِتِسْعِ خِصَالٍ أَوْصَانِي بِخَشْيَتِهِ فِي السِّرِّ وَالْعَلانِيَةِ وَالْعَدْلِ فِي الْغَضَبِ وَالرِّضَا وَالاقْتِصَادِ فِي الْغِنَى وَالْفَقْرِ وَأَوْصَانِي أَنْ أَصِلَ مَنْ قَطَعَنِي وَأَنْ أُعْطِيَ مَنْ حَرَمَنِي وَأَعْفُوَ عَمَّنْ ظَلَمَنِي وَأَنْ يَكُونَ نَظَرِي عِبَرًا وَصَمْتِي تَفَكُّرًا وَقُولِي ذِكْرًا

311 إصلاح المال لابن أبي الدنيا