This hadith has been narrated on the authority of Muhammad b. Ja'far but with a slight variation of wording.

Sahih Muslim Book 37, Hadith 36