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