The Messenger of Allah ﷺ never uttered any curse worth mentioning. Whenever he had recently been with Jibreel studying with him, he was more generous with goodness than the sweeping wind.Abu Abdul-Rahman said, "This is an error. The correct version is the hadith of Yunus bin Yazid, and one hadith has been inserted into another."
أخبرنا محمد بن إسمعيل البخاري قال حدثني حفص بن عمر بن الحارث قال حدثنا حماد قال حدثنا معمر والنعمان بن راشد عن الزهري عن عروة
ما لعن رسول الله ﷺ من لعنة تذكر كان إذا كان قريب عهد بجبريل عليه السلام يدارسه كان أجود بالخير من الريح المرسلة قال أبو عبد الرحمن هذا خطأ والصواب حديث يونس بن يزيد وأدخل هذا حديثا في حديث
No references are available.
[Sahih] Ahmad narrated it in 6/130 from the hadith of Hammad bin Zayd with the same wording, and it is in Kubra, hadith no. 2406. The hadith has corroborating narrations, including the previous hadith.