It was narrated from Salim bin 'Abdullah bin 'Umar, from his father, from 'Umar, that : the Messenger of Allah (ﷺ) heard him swearing by his father. The Messenger of Allah (ﷺ) said: 'Allah forbids you from making oaths by your forefathers. 'Umar said: I never took an oath by them (i.e., my forefathers) myself nor narrating such words from anyone else.
It was narrated from 'Abdur-Rahman bin Samurah that : the Messenger of Allah (ﷺ) said: 'Do not take oaths by idols nor by your forefathers.
It was narrated from Abu Hurairah that : the Messenger of Allah (ﷺ) said: Whoever takes an oath, and swears, saying: 'By Al-Lat and Al-Uzza,' let him say:'La ilaha illallah.'
It was narrated that Sa'd said: I took an oath by Lat and 'Uzza. The Messenger of Allah (ﷺ) said : 'Say: La ilaha illallah wahdahu la sharika lahu (None has the right to be worshipped but Allah alone, with no partner or associate), then spit toward your left three times, and seek refuge with Allah, and do not do that again. '