Qutayla reported,

A Jewish man came to the Prophet ﷺ and said, "You set up rivals to Allah and you commit shirk. You say, 'Whatever Allah wills and you will,' and you say, '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."

Azami 463

Sahih

عن قتيلة امرأة من جهينة

أن يهوديا أتى النبي ﷺ فقال: إنكم تنددون وإنكم تشركون تقولون: ما شاء الله وشئت! وتقولون: الكعبة! فأمرهم النبي ﷺ إذا أرادوا أن يحلفوا أن يقولوا: ورب الكعبة، ويقولوا: ما شاء الله ثم شئت.

الأعظمي 463صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in Allah عز وجل
Section
Prohibition of saying "What Allah wills and you will" out of fear of equating them
Numbering
Jami al-Kamil 463 (2nd edition)
Azami 463