Sahih Muslim, Book 27, Hadith 31 (Muslim 4245)

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

An oath is to be interpreted according to the intention of the one who takes it.