Narrated Ibn 'Umar: The Prophet ﷺ said, "If anybody has to take an oath, he should swear only by Allah". The people of Quraish used to swear by their fathers, but the Prophet ﷺ said, "Do not swear by your fathers".
This hadith also teaches us about the importance of respecting our parents and honoring them in all aspects of life except for when it comes to taking an oath or making a promise - then we must only use the name of Allah. We should always strive to honor our parents in all aspects, but this hadith reminds us that even if someone else has asked us to take an oath on their behalf, we must refuse and instead take an oath on behalf of Allah alone.