It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) forbade looking into the stars (for their influences), that is, astrology.
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from Ata except Uqbah al-Asamm."
Hadith Referenceالمعجم الأوسط / باب الميم / 8182
Hadith Gradingمحدثین:إسناده ضعيف لضعف عقبة بن عبد الله الأصم
Hadith Takhrij«قال الهيثمي: فيه عقبة بن عبد الله الأصم وهو ضعيف وذكر عن أحمد أنه وثقه وأنكر أبو حاتم عليه هذا الحديث «مجمع الزوائد ومنبع الفوائد، ج 5، ص 116»»