Muhammad b. Sirin reported from Abu Huraira a hadith from Allah's Apostle (ﷺ) and he mentioned in his hadith his words:
"I dislike shackles," up to the end of his statement, but he made no mention of this: "A vision is a forty-sixth part of Prophecy."
Reference: Sahih Muslim 2263 d
In-book reference: Book 42, Hadith 12
USC-MSA web (English) reference(deprecated numbering scheme): Book 29, Hadith 5624