Divine grace, at least in the Christian religion is given by God as a saving gesture to to all true believers. In other words, it's a God given, get out of jail free card; where Hell is jail.

How one obtains or is given divine grace has been in debate for as long as their has been religion. This debate (faith vs. works), among other things was a contributing factor in the Reformation.