Daniel 1 says Hananiah was selected with Daniel, Mishael, and Azariah for Babylonian training and was renamed Shadrach. The four refused to defile themselves with the royal food and were granted wisdom by God. In Daniel 3 Shadrach, Meshach, and Abednego refused Nebuchadnezzar's command to worship the golden image. They declared that God was able to deliver them but that they would not worship the image even if He did not. Thrown into an intensely heated furnace, they were joined by a mysterious fourth figure and emerged completely unharmed.