The Prophet ﷺ said: Do not swear by your fathers, or by your mothers, or by rivals to Allah; and swear by Allah only, and swear by Allah only when you are speaking the truth. (Using translation from Abū Dāʾūd 3248)
قَالَ رَسُولُ اللهِ ﷺ «لَا تَحْلِفُوا بِآبَائِكُمْ وَلَا بِأُمَّهَاتِكُمْ وَلَا بِالْأَنْدَادِ وَلَا تَحْلِفُوا بِاللهِ إِلَّا وَأَنْتُمْ صَادِقُونَ»