There is evidence in many parts of the world that people were able to accurately predict the summer and winter solstices thousands of years ago. For example, Newgrange in Ireland and the Pyramids in Egypt were built with this function. How widespread was this knowledge? Should we expect to find evidence of this practice all over the world, or just in isolated pockets?
While providing links is not the best way of answering, Wikipedia's article on History of Astronomy could, in this case, be made-to-order.
It reviews astronomical evolution, beliefs and practices right from Babylonians to modern astronomy sequentially and points to dedicated chronicles were relevant (ex- Egyptian, Indian, China etc.)
Astronomy was necessary for a calendar and calendar was necessary in all agricultural (neolithic) societies.