Read the Arabic text and available English translation from Riyad as-Salihin, with its supplied source reference.
Sunnah.com : Book 18, Hadith 161
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
من اقتبس علمًا من النجوم، اقتبس شعبة من السحر زاد ما زاد"
Ibn 'Abbas (May Allah be pleased with them) said:
The Messenger of Allah (ﷺ) said, "He who acquires a branch of the knowledge of astrology, learns a branch of magic (of which he acquires more as long as) he continues to do so."
[Abu Dawud].
Full reference and source
Sunnah.com : Book 18, Hadith 161
Arabic/English book : Book 18, Hadith 1671
References, translations and numbering differ between editions. A URL number is an internal app record identifier, not universal hadith numbering. Only supplied grading is displayed; no new authenticity assessment is made.