Sunan Abu Dawud #3905
Divination and Omens (Kitab Al-Kahanah Wa Al-Tatayyur) 30:2
Narrated Abdullah ibn Abbas:
The Prophet (ﷺ) said: If anyone acquires any knowledge of astrology, he acquires a branch of magic of which he gets more as long as he continues to do so.