Qutaylah reported: A Jewish man came to the Prophet, peace and blessings be upon him, and he said, “Indeed, you are setting up rivals with Allah and associating partners with Him when you say, ‘What Allah wills and you will,’ and when you swear by the Ka’bah!” The Prophet ordered them to say when they intend to swear an oath, “By the Lord of the Ka’bah,” and for them to say, “What Allah wills and then what you will.”
Source: Sunan al-Nasā’ī 3773
Grade: Sahih (authentic) according to Al-Albani
عَنْ قُتَيْلَةَ امْرَأَةٍ مِنْ جُهَيْنَةَ أَنَّ يَهُودِيًّا أَتَى النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ فَقَالَ إِنَّكُمْ تُنَدِّدُونَ وَإِنَّكُمْ تُشْرِكُونَ تَقُولُونَ مَا شَاءَ اللَّهُ وَشِئْتَ وَتَقُولُونَ وَالْكَعْبَةِ فَأَمَرَهُمُ النَّبِيُّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ إِذَا أَرَادُوا أَنْ يَحْلِفُوا أَنْ يَقُولُوا وَرَبِّ الْكَعْبَةِ وَيَقُولُونَ مَا شَاءَ اللَّهُ ثُمَّ شِئْتَ
3773 سنن النسائي كتاب الأيمان والنذور الحلف بالكعبة
3782 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح النسائي