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

Sahih Muslim Book 27 Hadith 32

Sahih Muslim #1653 b

The Book of Oaths 27:32

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

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

Chapter: An oath is judged on the intention of the one who asks for it to be sworn.

Grade: Sahih