Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:11278al-Ḥusayn b. Isḥāq al-Tustarī > Abū al-Rabīʿ al-Zahrānī > al-Ḥārith b. ʿUbayd al-Īādy > ʿUbaydullāh b. al-Akhnas > al-Walīd b. ʿAbdullāh > Yūsuf b. Māhak > Ibn ʿAbbās

[Machine] The Messenger of Allah ﷺ said, "Whoever learns knowledge from the stars, has learned a branch of magic. Whoever adds more, adds more."  

الطبراني:١١٢٧٨حَدَّثَنَا الْحُسَيْنُ بْنُ إِسْحَاقَ التُّسْتَرِيُّ ثنا أَبُو الرَّبِيعِ الزَّهْرَانِيُّ ثنا الْحَارِثُ بْنُ عُبَيْدٍ الْإِياديُّ عَنْ عُبَيْدِ اللهِ بْنِ الْأَخْنَسِ عَنِ الْوَلِيدِ بْنِ عَبْدِ اللهِ عَنْ يُوسُفَ بْنِ مَاهَكٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

قَالَ رَسُولُ اللهِ ﷺ «مَنْ تَعَلَّمَ عِلْمًا مِنَ النُّجُومِ تَعَلَّمَ شُعْبَةً مِنَ السِّحْرِ مَنْ زَادَ زَادَ مَنْ زَادَ زَادَ»  


See similar narrations below:

Collected by Aḥmad, Suyūṭī
ahmad:2840Rawḥ > Abū Mālik ʿUbaydullāh b. al-Akhnas > al-Walīd b. ʿAbdullāh b. Abū Mughīth > Yūsuf b. Māhak > Ibn ʿAbbās

The Prophet ﷺ said: If anyone acquires any knowledge of astrology, he acquires a branch of magic of which he gets more as long as he continues to do so. (Using translation from Abū Dāʾūd 3905)   

أحمد:٢٨٤٠حَدَّثَنَا رَوْحٌ حَدَّثَنَا أَبُو مَالِكٍ عُبَيْدُ اللهِ بْنُ الْأَخْنَسِ عَنِ الوَلِيدِ بْنِ عَبْدِ اللهِ بْنِ أَبِي مُغِيثٍ عَنْ يُوسُفَ بْنِ مَاهَكَ عَنِ ابْنِ عَبَّاسٍ قَالَ

قَالَ رَسُولُ اللهِ ﷺ مَنِ اقْتَبَسَ عِلْمًا مِنَ النُّجُومِ اقْتَبَسَ شُعْبَةً مِنْ سِحْرٍ مَا زَادَ زَادَ وَمَا زَادَ زَادَ  

suyuti:21120a
Request/Fix translation

  

السيوطي:٢١١٢٠a

"مَنْ تَعَلَّمَ عِلمًا مِنَ النُّجُوم تَعَلَّمَ شُعْبَةً مِنَ السِّحْرِ، مَنْ زَادَ زَادَ، مَنْ زَادَ زَادَ".  

[طب] الطبرانى في الكبير وأَبو الشيخ في العظمة عن ابن عباس