´It was narrated from 'Abdur-Rahman bin Samurah that :` the Messenger of Allah (ﷺ) said: 'Do not take oaths by idols nor by your forefathers. "
Maulana Ataullah Sajid
Benefits and Issues: (1) The singular of (ṭawāghī) is (ṭāghiyah), meaning a rebel. An idol is called ṭāghiyah because it becomes a cause for the polytheism and rebellion of the servants.
(2) An oath by an idol is, in reality, taken due to the importance and reverence of the person whose image the idol has been made upon; thus, this is essentially also an oath by elders and saints. And taking an oath by other than Allah is forbidden (haram).
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 2095