Abraham the Astronomer

There is an obviously very appealing idea extant in Jewish sources that Abraham the Patriarch was an astronomer. Where do we see this idea? And where does it originate?