And indeed We gave Musa ( Moses ) the Scripture , but dispute arose therein . And had it not been for a Word that went forth before from your Lord , ( the torment would have overtaken them ) and the matter would have been settled between them .