If I remember correctly, that's what Tiger Woods was taking when he had that terrible accident.
My late husband took it for several years or so when he shattered his ankle from a fall. He had 4 surgeries within 10 weeks and had a life-threatening infection. He couldn't sleep so they prescribed Ambien. They said, "Oh, it's not a narcotic so it won't be habit forming". Ya, right! He was addicted to it and after about 3 years or so the insurance said they wouldn't pay for it any more. That was a blessing because it forced him to quit taking it. He went back to not sleeping. He tried melatonin OTC and it helped a little. It was a struggle for him but he eventually got back into a sleep routine.