And it is narrated with the previous chain that the Prophet (peace and blessings be upon him) said: Whoever swears an oath about something and then sees something else better, its expiation is that he should leave it.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 11727
Hadith Gradingحکم دارالسلام:إسناده ضعيف، وهو إسناد الحديث رقم : 11717