Hadith 2049 Sunan Abu Dawood
The translation is correct. All kind of people were there. When the man refused to divorce his wife despite her immorality, that was the only possible thing thr prophet told him. Man has no authority to kill his wife for this kind of act. The prophet could not ask him to murder her. It would be a crime.