
My view is acceptance criteria comes first. Because when the user stories are taken up for discussion and explanation, the objective of the story is initially set up and acceptance criteria is also defined and given to the development team. Based on that- the team, in the second part of the sprint planning meeting, will identify the detailed tasks and comes out with proper estimations.