"The Messenger of Allah ﷺ heard a man taking an oath by his father and said: 'Do not make oaths by your forefathers. Whoever makes an oath by Allah, let him fulfill his oath, and if an oath is sworn for a person by Allah, let him accept it. Whoever is not content with Allah has nothing to do with Allah.' (Using translation from Ibn Mājah 2101)
رَسُولُ اللهِ ﷺ رَجُلًا يَحْلِفُ بِأَبِيهِ فَقَالَ لَا تَحْلِفُوا بِآبَائِكُمْ مَنْ حَلَفَ بِاللهِ فَلْيَصْدُقْ وَمَنْ حُلِفَ لَهُ بِاللهِ فَلْيَرْضَ وَمَنْ حُلِفَ لَهُ بِاللهِ فَلَمْ يَرْضَ فَلَيْسَ مِنَ اللهِ تَابَعَهُ مُحَمَّدُ بْنُ إِسْمَاعِيلَ الْأَحْمَسِيُّ عَنْ أَسْبَاطٍ