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