Abdullah bin Abbas reported,

The Messenger of Allah ﷺ said, "Whoever acquires a branch of knowledge from astrology has acquired a branch of magic, increasing in proportion to what he has gained."

Azami 1302

Sahih

عن ابن عباس، قال

قال رسول الله ﷺ: من اقتبس علما من النجوم اقتبس شعبة من السحر زاد ما زاد.

الأعظمي 1302صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Knowledge
Chapter
Warnings in matters of knowledge
Section
Prohibition of astrology
Numbering
Jami al-Kamil 1302 (2nd edition)
Azami 1302