TABARANI 14362:
from Tamīm b. Ṭarafah —
[Machine] I do not have anything to give you except my shield and forgiveness. So, I wrote to my family asking them to give it to you, but they refused. Then, my enemy became angry and said, "By Allah, I will not give you anything." Then, the man was pleased and said, "By Allah, if I had not heard the Messenger of Allah ﷺ say, 'Whoever swears an oath to do something and sees that it is more righteous to do something else, then he should do what is more righteous, but he should not break his oath.'"
الطبراني ١٤٣٦٢:
عن تميم بن طرفه —
لَيْسَ عِنْدِي مَا أُعْطِيكَ إلَّا دِرْعِي وَمِغْفَرِي فَأَكْتُبُ إِلَى أَهْلِي أَنْ يُعْطُوكَهُمَا فَلَمْ يَرْضَ فَغَضِبَ عَدِيٌّ فَقَالَ وَاللهِ لَا أُعْطِيكَ شَيْئًا ثُمَّ إِنَّ الرَّجُلَ رَضِيَ فَقَالَ وَاللهِ لَوْلَا أَنِّي سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ «مَنْ حَلَفَ عَلَى يَمِينٍ رَأَى مَا هُوَ أَتْقَى لِلَّهِ فَلْيَأْتِهِ وَلَكِنْ مَا حَنِثَ فِي يَمِينٍ»