From Sahih Bukhari (Hadith 3099):
Narrated `Aisha:(the wife of the Prophet) When the sickness of Allah's Messenger (ﷺ) got aggravated, he asked the permission of his wives that he should be treated in my house, and they permitted him
Reference: Bukhari 3099