(30) Divination and Omens (Kitab Al-Kahanah Wa Al-Tatayyur)
كتاب الكهانة و التطير
(1480) Chapter: Regarding Astrology
(22) باب فِي النُّجُومِ
Sunan Abi Dawud 3905 

Narrated Abdullah ibn Abbas:

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.

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَمُسَدَّدٌ، - الْمَعْنَى - قَالاَ حَدَّثَنَا يَحْيَى، عَنْ عُبَيْدِ اللَّهِ بْنِ الأَخْنَسِ، عَنِ الْوَلِيدِ بْنِ عَبْدِ اللَّهِ، عَنْ يُوسُفَ بْنِ مَاهَكَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مَنِ اقْتَبَسَ عِلْمًا مِنَ النُّجُومِ اقْتَبَسَ شُعْبَةً مِنَ السِّحْرِ زَادَ مَا زَادَ ‏"‏ ‏.‏
Grade :  Hasan (Al-Albani) حسن  (الألباني)حكم :
Reference : Sunan Abi Dawud 3905
In-book reference : Book 30, Hadith 2
English translation : Book 29, Hadith 3896