I was wondering about the topic of Divine Inspiration and Biblical Fallibility in the canonization of the Bible. There are some passages, like the supplication prayer of Psalm 137, that ask God to act as the avenger of Israel. Some of the things the psalmist prays for makes me squirm, like
8 O Daughter of Babylon, doomed to destruction,
happy is he who repays youfor what you have done to us-
9 he who seizes your infantsand dashes them against the rocks.
What would be the role of passages like these in the Bible? Is it also divinely inspired, or did it find its way into the Bible as a consequence of human fallibility? How should we treat such passages?