There's definitely further that can be said about this question specifically to do with medieval people, but I wrote an answer to the question of how the industrial revolution changed our sleeping patterns here - hopefully that helps give some sense of the debates in the literature about sleep before the industrial revolution.