The Messenger of Allah ﷺ said, "The oath is according to the intention of the one who administers it."
حدثنا أبو بكر بن أبي شيبة حدثنا يزيد بن هارون أنبأنا هشيم عن عباد بن أبي صالح عن أبيه
قال رسول الله ﷺ إنما اليمين على نية المستحلف
No references are available.
Muslim narrated it in Kitab al-Iman, chapter "Swearing an Oath According to the Intention of the One Who Administers It," hadith 1653, from Abu Bakr bin Abu Shayba, through this same chain.