People taking Ambien (zolpidem) have reported hallucinations that last anywhere between one and seven hours.

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