At somebody's discretion phrase
The freedom to decide to do something at your own will
You want to deal with this matter is at your discretion.
The boss gave Tom the permission to do the job at his own discretion.
To be thankful or grateful for one's good luck usually while avoiding a bad situation
You should count your lucky stars as you managed to avoid that violent car accident.