Abd al-Rahman b. Samura reported Allah's Messenger (ﷺ) as saying
Do not swear by idols, nor by your fathers.