Does Hindu morality come from scripture or is it the other way round?
There is no consensus on this issue. Some think morality is based on scripture and others disagree.
Bhishma said, 'Some say that righteousness consists in what has been upheld in the Srutis. Others do not agree to this. I would not censure them that say so. Everything, again, has not been laid down in the Srutis.’
Mahabharata, Santi Parva, Section CIX
Note: “The question: Does Hindu morality come from scripture or is it the other way round?” is licensed by Stack Exchange Inc (https://hinduism.stackexchange.com/); user contributions licensed under CC BY-SA.