Trying to teach my 9 month old

How did you teach your baby to fall asleep on their own?