You're likely thinking of a passage that describes God's reaction to sin and idolatry, using strong language to convey his disgust. Here are a couple of relevant verses that come close to the imagery you described:
* Isaiah 65:5: "Which say, Stand by thyself, come not near to me; for I am holier than thou. These are a smoke in my nose, a fire that burneth all the day."
While this verse doesn't specifically use the phrase "stinking corpses," it describes the actions and attitudes of the people as being like "smoke in God's nose," conveying a similar sense of disgust and offense.
It's important to note that these passages use figurative language to communicate God's emotional response to sin. They are not meant to be taken literally as describing physical attributes of God.