This hadith is narrated in Sahih al-Bukhari
Its words are as follows:
عن أنسٍ أن النبي صلى الله عليه وسلم طافَ على نسائِه في ليلةٍ واحدةٍ، وله تسعُ نسوةٍ.
Translation: Anas (may Allah be pleased with him) narrates that the Prophet ﷺ went to all his wives in one night, and they were nine in number.
Clarifying the misunderstanding
Some people take the word “یطوف” in this hadith to mean sexual intercourse, whereas in the Arabic language “یطوف” means to go around or to make a round. This is explained by other hadiths:
Visiting the wives after Asr
عن عائشة رضي الله عنها: “كان رسول الله صلى الله عليه وسلم إذا صلى العصر دار على نسائه.”
Translation: When the Messenger of Allah ﷺ finished the Asr prayer, he would go around to his wives.
The clarification of Aisha (may Allah be pleased with her)
Lady Aisha (may Allah be pleased with her) says that the Prophet ﷺ would go to all of his wives and would not give any one of them preference in this matter. He would go near each wife, but he would have intercourse only with the wife whose turn it was that day.
The wisdom of the Prophet ﷺ and his consoling of his wives
The purpose of the Messenger of Allah ﷺ in going to all his wives was to look after their needs and to console them. Had he ﷺ not done so, the turn of each wife to be visited would have come only after nine days. This act is a manifestation of his great wisdom and justice.
Objection: the Ummah’s occupations
To say that the Messenger of Allah ﷺ had no free time from the occupations of the Ummah is a false impression. A non-Muslim author, Paul Brunton, has also praised the wisdom and balanced life of the Prophet ﷺ:
Translation: “I could not help respecting the wisdom of the Prophet ﷺ, who taught his followers to harmonise religious and worldly life with skill.”
Explanation of another hadith
In another narration from Anas (may Allah be pleased with him), it is mentioned that the Prophet ﷺ would have intercourse with his eleven wives at one time.
However, this narration is stated in a general manner, and according to the clarification of Aisha (may Allah be pleased with her), intercourse was only with the wife whose turn it was that day. Therefore, the understanding of any Companion does not take precedence over the clarification of the Mothers of the Believers.
Conclusion
The purpose of the Prophet ﷺ in going to his wives was to console them and to look after their needs. This act is the finest example of his wisdom, justice and love, and presenting it in a wrong manner is utter injustice.