Mishkat al-Masabih
Mishkat al-Masabih 4604
وَعَنِ ابْنِ عَبَّاسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنِ اقْتَبَسَ بَابًا مِنْ عِلْمِ النُّجُومِ لِغَيْرِ مَا ذَكَرَ اللَّهُ فَقَدِ اقْتَبَسَ شُعْبَةً مِنَ السِّحْرِ الْمُنَجِّمُ كَاهِنٌ والكاهنُ ساحرٌ والساحرُ كافرٌ» . رَوَاهُ رزين
It is related from Ibn Abbas that the Messenger of Allah (may Allah bless him and grant him peace) said, “Whoever acquires a field of knowledge of the stars for other than what Allah has mentioned has acquired a branch of magic. The astrologer is a soothsayer, the soothsayer is a sorcerer, and the sorcerer is an unbeliever.” Razin transmitted it.
Translation notes
لِغَيْرِ مَا ذَكَرَ اللَّهُ
The phrase contrasts this use of star knowledge with what Allah mentioned, but the precise permitted purpose is not specified here.
Should this contrast be rendered literally or clarified as non-divinatory uses of astronomy?