All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad,
, is His slave and Messenger.
As long as you did not mean to know the horoscope by doing that, but you did it for fun and for play, then you are not sinful, and this is not similar to the work of fortune-tellers and magicians.
Nonetheless, it is better to completely avoid such matters in order not to open for yourself the door of whispering and doubt.
Allah Knows best.