what is the ruling on listening to music? and also baby music like to put babies to sleep? thank you

Walaikumussalam

If the music accompanying it is that which is suitable for entertainment and amusement gatherings, it is not permissible to listen to it.
Instead of music put quran tilawat(recitation) which will have good impact on your child
Wassalam