The Making of Astronomy in Early Islam