(28) باب تَعَلُّمِ النُّجُومِ
It was narrated from Ibn Abbas that the Messenger of Allah(ﷺ) said:
"Whoever learns about the stars, he learns a branch of magic; the more he learns (of the former) the more he learns (of the latter)."
Reference: Sunan Ibn Majah 3726
In-book reference: Book 33, Hadith 71
English translation: Vol. 5, Book 33, Hadith 3726