Ambien works pretty fast and stays in the body for a short time. It shows results within 30 minutes, with maximum effects reached for most people within 1 to 2.5 hours, depending on whether the person has taken an immediate or extended-release version of the drug.

https://recoverypartnernetwork.com/drug/sleeping-pills/ambien-addiction