Luther taught that salvation and subsequently eternal life is not earned by good deeds but is received only as a free gift of God's grace through faith in Jesus Christ as redeemer from sin.
Since he didn't believe that salvation was acquired through good deeds, how was it achieved?
gift of God's grace