(9) باب الْحَلِفِ بِالْكَعْبَةِ
It was narrated from 'Abdullah bin Yasar, from Qutailah, a woman from Juhainah, that a Jew came to the Prophet and said:
"You are setting up rivals (to Allah) and associating others (with Him). You say: 'Whatever Allah wills and you will,' and you say: 'By the Ka'bah.'" So the Prophet commanded them, if they wanted to swear an oath, to say: "By the Lord of the Ka'bah;" and to say: "Whatever Allah wills, then what you will."
Reference: Sunan an-Nasa'i 3773
In-book reference: Book 35, Hadith 13
English translation: Vol. 4, Book 35, Hadith 3804