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