I was prescribed Hydroxyzine, partly for anxiety and partly for sleep. It does tend to slow down my racing thoughts (which helps), but didn't provide very much in the way of sedation unless I took more than 1 25mg tab.
I currently take Escitalopram 15mg & Trazadone 50-100mg for depression & frankly, the latter seems to provide more of a path to slumber for me.