Al-Khatib narrated it in al-Tarikh (5/189), through two routes from Hamzah ibn Muhammad ibn al-‘Abbas:
Ahmad ibn al-Walid related to us; Abu Ahmad al-Zubayri related to us; ‘Abd al-‘Aziz ibn Abi Rawwad related to us, from Nafi‘, from Ibn ‘Umar, from the Prophet, peace and blessings be upon him.
I say: This is a good chain of transmission. Its narrators are trustworthy and are among Muslim’s narrators, apart from Ahmad ibn al-Walid—who was Ibn Abi al-Walid, Abu Bakr al-Fahham—and Hamzah ibn Muhammad ibn al-‘Abbas. Both are trustworthy, as al-Khatib explicitly stated in their biographical entries (5/188 and 8/183). Al-Suyuti attributed this hadith only to Ibn al-Najjar! Note that there is no contradiction between the statement in this hadith that a righteous dream is one of twenty-five parts, the statement in the following hadith that it is “one of forty-six parts,” and the hadith of Ibn ‘Umar, “one of seventy parts,” narrated by Muslim (7/54) and others. This difference relates to the dreamer: the more righteous he is, the higher the proportion. Other explanations have also been given; see Imam al-Nawawi’s Sharh Muslim.
1870 — “Dreams are of three types: among them are terrors from Satan, by which he seeks to grieve the son of Adam; among them is what a man thinks about while awake and then sees in his sleep; and among them is one of forty-six parts of prophethood.”
Al-Bukhari narrated it in al-Tarikh (4/2/348); Ibn Majah (2/450); Ibn Abi Shaybah in al-Musannaf (12/193/2); al-Tahawi in Mushkil al-Athar (3/46–47); Ibn Hibban (1794); al-Mukhlis in al-Fawa’id al-Muntaqah—the second of its sixth part—(folio 182/2); Ibn ‘Abd al-Barr in al-Tamhid (1/286); Ibn ‘Asakir in al-Tarikh (16/243/1 and 18/173/2); and al-Diya’ al-Maqdisi in Muwafaqat Hisham ibn ‘Ammar (40/1–2), through two routes from Yahya ibn Hamzah, from Yazid ibn ‘Ubaydah, who said: Abu ‘Ubayd—who was