Sahih Muslim 1653
Sahih Muslim · Book 27: The Book of Oaths · An oath is judged on the intention of the one who asks for it to be sworn.
Abu Huraira reported Allah's Messenger (ﷺ) as saying:
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ، حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ ، عَنْ هُشَيْمٍ ، عَنْ عَبَّادِ بْنِ، أَبِي صَالِحٍ عَنْ أَبِيهِ ، عَنْ أَبِي هُرَيْرَةَ ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " الْيَمِينُ عَلَى نِيَّةِ الْمُسْتَحْلِفِ " .
An oath is to be interpreted according to the intention of the one who takes it.