Sayyiduna Abu Hurayrah (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) said: "The oath that counts is the one which the person demanding the oath accepts as true."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 20034