Abu Huraira reported Allah's Messenger (ﷺ) as saying: An oath is to be interpreted according to the intention of the one who takes it
Book 27 · Hadith 31
صحيح مسلم
Abu Huraira reported Allah's Messenger (ﷺ) as saying: An oath is to be interpreted according to the intention of the one who takes it