Musnad Ahmad 2000
حَدَّثَنَا يَحْيَى ، عَنْ عُبَيْدِ اللَّهِ بْنِ الْأَخْنَسِ ، قَالَ: حَدَّثَنَا الْوَلِيدُ بْنُ عَبْدِ اللَّهِ ، عَنْ يُوسُفَ بْنِ مَاهَكَ ، عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُ، عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، قَالَ:" مَا اقْتَبَسَ رَجُلٌ عِلْمًا مِنَ النُّجُومِ إِلَّا اقْتَبَسَ بِهَا شُعْبَةً مِنَ السِّحْرِ مَا زَادَ زَادَ".
Yahya narrated to us, from ʿUbaydullah ibn al-Akhnas, who said: al-Walid ibn ʿAbdullah narrated to us, from Yusuf ibn Mahak, from Ibn ʿAbbas, may Allah be pleased with him, from the Prophet ﷺ, who said: "No man acquires knowledge of the stars except that he acquires by it a branch of sorcery; the more he increases [in it], the more he increases [in sorcery]."