R. Shimon b. Elazar says: When Israel do the will of the L–rd, His name is exalted in the world, as it is written (Joshua 5:1) "And it was, when all the kings of the Emori heard, etc." And thus did Rachav say to Joshuah's emissaries, (Ibid. 2:10) "for we heard how the L–rd dried up, etc.", and (Ibid. 17) "and we heard and our hearts melted, and no man's spirit endured within him before you. For the L–rd, He is G–d in the heavens above, etc." And when they do not do His will, His name, as it were, is demeaned in the world, viz. (Ezekiel 36:20) "And they came to the nations … and they profaned My holy name when it was said of them: These are the peoples of the L–rd, and from His land did they go forth …" and (Ibid. 23) "And I shall sanctify My great name which has been profaned among the nations, etc."