the Messenger of Allah (ﷺ) said: 'Do not take oaths by idols nor by your forefathers. "
Sunan Ibn Majah Book 11, Hadith 6