Sunan Ibn Majah, Book 11, Hadith 31 (Ibn Majah 2120)

It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:

"The oath is only according to the intention of the one who requests the oath to be taken."'