Was there ever a time when the goal in chess was to capture the king? The modern rules of chess, except for the stalemating being a draw, are basically equivalent to a game in which the goal is just to capture the king, not checkmate him. It's plausible that in the oldest versions of chess, this was indeed the goal, but since a rational player would then always move their king when in check, and never leave themselves in check, and would only have their king captured when there was no escaping from it, players may have decided that responding to check may as well just be made a rule.

I haven't been able to find any reliable source either confirming or refuting this hypothesis. Is there any?
Wikipedia claims that


  In early Sanskrit chess (c. 500–700) the king could be captured and this ended the game. The Persians (c. 700–800) introduced the idea of warning that the king was under attack (announcing check in modern terminology). This was done to avoid the early and accidental end of a game. Later the Persians added the additional rule that a king could not be moved into check or left in check. As a result, the king could not be captured,[13] and checkmate was the only decisive way of ending a game.[14]


References [13] and [14] are to Davidson, Henry (1949), A Short History of Chess, which can be consulted on Google Books. I couldn't tell immediately what sources Davidson used.