Sunan Ibn Majah
Sunan Ibn Majah 3726
حَدَّثَنَا أَبُو بَكْرٍ، حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ، عَنْ عُبَيْدِ اللَّهِ بْنِ الأَخْنَسِ، عَنِ الْوَلِيدِ بْنِ عَبْدِ اللَّهِ، عَنْ يُوسُفَ بْنِ مَاهَكَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " مَنِ اقْتَبَسَ عِلْمًا مِنَ النُّجُومِ اقْتَبَسَ شُعْبَةً مِنَ السِّحْرِ زَادَ مَا زَادَ " .
Unreviewed translation. All hadiths in this collection are available in five languages. Titles and introductions may remain in Arabic.
It was narrated that Abu Bakr said: Yahya ibn Sa‘id narrated to us, from ‘Ubaydullah ibn al-Akhnas, from al-Walid ibn ‘Abdullah, from Yusuf ibn Mahak, from Ibn ‘Abbas, that the Messenger of Allah (peace and blessings be upon him) said: ‘Whoever acquires knowledge from the stars has acquired a branch of magic; the more he increases in it, the more he increases in that.’
Notes and open questions — unreviewed
The Arabic uses the general expression ‘knowledge from the stars’; it does not further specify the type of practice in this wording.