Sayyiduna Abu al-Tufayl Amir bin Wathilah (may Allah be pleased with him) narrates from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that he used to address us in sermons in Kufah, saying: "The wretched one is he who was written as wretched while still in his mother's womb, and the fortunate one is he who was written as fortunate while still in his mother's womb." Then one of the Companions of the Prophet (peace and blessings be upon him), Sayyiduna Hudhayfah bin Asid (may Allah be pleased with him), said: "How strange is this matter! He says that the fortunate one is he who became fortunate in his mother's womb, and the wretched one is he who became wretched in his mother's womb." At this Sayyiduna Abdullah (may Allah be pleased with him) said: "O Hudhayfah! What is it about this that makes you wonder?" Then he said: "Shall I not tell you something that gives a complete answer about it?" Then he narrated the hadith as a marfu' report, saying: "Indeed, an angel is appointed over the womb. When Allah, the Mighty and Majestic, intends by the permission of Allah to create something, that angel says: 'O my Lord! What is its lifespan?' So your Lord decrees and the angel writes it down. Then he says: 'O my Lord! How much is its provision?' So your Lord decrees and the angel writes it down. Then he says: '(Is it) wretched or fortunate?' So your Lord decrees and the angel writes it down. So the matter remains just like that; nothing is added to it and nothing is decreased."
No one narrated this hadith from Rabi'ah as a marfu' report except Muslim (may Allah have mercy on him).
Hadith Referenceالمعجم الأوسط / باب الألف / 2631
Hadith Takhrij«أخرجه البخاري فى «صحيحه» برقم: 3208، 3332، 6594، 7454، ومسلم فى «صحيحه» برقم: 2643، 2645، وابن حبان فى «صحيحه» برقم: 6174، 6177، والنسائي فى «السنن الكبرى» برقم: 11182، وأبو داود فى «سننه» برقم: 4708، والترمذي فى «جامعه» برقم: 2137 (م 1)، 2137، 2137 (م 2)، والدارمي فى «مسنده» برقم: 213، وابن ماجه فى «سننه» برقم: 76، والبيهقي فى «السنن الكبرى» برقم: 15522، 15519، 21338، وأحمد فى «مسنده» برقم: 3623، 3694، 4012، 4172، والطيالسي فى «مسنده» برقم: 296، والحميدي فى «مسنده» برقم: 126، وأبو يعلى فى «مسنده» برقم: 5157، والبزار فى «مسنده» برقم: 1447، 1551، 1636، 1766، 1763، 1764، 1765، وابن حجر فى «المطالب العالية» برقم: 3125 / 2، وعبد الرزاق فى «مصنفه» برقم: 20076، 20093، والطحاوي فى «شرح مشكل الآثار» برقم: 3861، 3862، 3866، 3863، 3864، 3865، 3867، 3868، 3869، 3870، (9/479) [دون رقم في الترقيم المختار]، والطبراني فى «الكبير» برقم: 3038، 3036، 3041، 3040، 3045، 3043، 8518، 8519، 8520، 8529، 8530، 8527، 8528، 8531، 8884، 8885، 9146، 10440، والطبراني فى «الصغير» برقم: 200، 442، والطبراني فى «الأوسط» برقم: 1717، 4559»