Shlach Lecha: Chapter 33
Building the body of man

Rabbi Shimon is told about the composition of a man's spirit and flesh; when the man dies only the part that was given by the Holy Spirit and its Chariots endures. The Satan stands by to thwart a person as long as his flesh is in existence but once the flesh is consumed he loses his authority to do this.