somewhere in the later midrash , i think , is the story of a jewish maiden who loved a gentile king so well , that she entered into prison and changed clothes with the woman who was beloved by the king , that she might deliver that woman from death by dying in her stead , and leave the king to be happy in his love which was not for her .