A Jewish man came to the Prophet ﷺ and said, "You commit shirk by setting up rivals to Allah. You say, 'Whatever Allah wills and you will,' and you swear, 'By the Kaabah.'"So the Prophet ﷺ instructed them, when they wished to take an oath, to say, "By the Lord of the Kaabah," and to say, "Whatever Allah wills, then you will."
أن يهوديا أتى النبي ﷺ فقال: إنكم تنددون، وإنكم تشركون تقولون: ما شاء الله وشئت، وتقولون: والكعبة، فأمرهم النبي ﷺ الله إذا أرادوا أن يحلفوا أن يقولوا: ورب الكعبة و يقولوا: ما شاء الله ثم شئت.