The Messenger of Allah ﷺ said, "There are four practices from the days of ignorance that my community will not abandon: wailing over the dead, attacking people's lineages, belief in contagion such as saying that one mangy camel infects a hundred others when it was the first camel itself that became mangy, and attributing rain to the stars by saying, 'We were given rain by such-and-such a star.'"
حدثنا محمود بن غيلان حدثنا أبو داود أنبأنا شعبة والمسعودي عن علقمة بن مرثد عن أبي الربيع
قال رسول الله ﷺ أربع في أمتي من أمر الجاهلية لن يدعهن الناس النياحة والطعن في الأحساب والعدوى أجرب بعير فأجرب مائة بعير من أجرب البعير الأول والأنواء مطرنا بنوء كذا وكذا
[Its chain of transmission is hasan] Ahmad narrated it, 2/291, 414, from the hadith of Masudi and Shubah with the same wording. Abu Rabi, his status was mentioned earlier at 760. The hadith has corroborating narrations in Muslim, no. 67, 934, and elsewhere.