Abd al-Rahman bin Udhaynah (may Allah have mercy on him) narrates from his father (Udhaynah al-Abdi) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever swears an oath about something, and then sees something else better than it, let him do that which is better and make expiation for his oath."
Imam al-Bukhari (may Allah have mercy on him) said in his Tarikh: "Abd al-Rahman bin Udhaynah al-Abdi narrates through his father from the Prophet (peace and blessings be upon him); it is mursal."
Abd al-Rahman bin Abi Hatim (may Allah have mercy on him) said: "Udhaynah al-Abdi is a Basran; he narrated from the Prophet (peace and blessings be upon him) and from Sayyiduna Umar bin al-Khattab (may Allah be pleased with him), and his son Abd al-Rahman narrated from him; I heard my father saying this."