This hadith has been narrated through another chain of transmitters (and the words are)
" A person from among the Ansar willed away the freedom of six slaves of his at the time of his death."