حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ الْعَزِيزِ، ثَنَا مُسْلِمُ بْنُ إِبْرَاهِيمَ، ثَنَا شُعْبَةُ، عَنْ عَبْدِ الْعَزِيزِ بْنِ رُفَيْعٍ، عَنْ تَمِيمٍ الطَّائِيِّ، عَنْ عَدِيِّ بْنِ حَاتِمٍ، أَنَّ رَسُولَ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ: «مَنْ حَلَفَ عَلَى يَمِينٍ فَرَأَى غَيْرَهَا خَيْرًا مِنْهَا فَلْيَتْرُكْهَا وَلْيَأْتِ الَّذِي هُوَ خَيْرٌ»
It is narrated from Sayyiduna Adi bin Hatim (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever swears an oath and then sees something else better than it, let him leave it and do what is better."