It was narrated from 'Abdur-Rahman bin Samurah that :
the Messenger of Allah (ﷺ) said: 'Do not take oaths by idols nor by your forefathers. " (DE)
English reference (DE): Vol. 3, Book 11, Hadith 2095 (DE)
Arabic reference (DE): Book 11, Hadith 2173 (DE)