My baby girl is now 3 years one month old, how do I stop breast feeding. She has been emotionally attached especially while sleeping.

Explain it to her. Three year old are able to talk with you about stopping breast feeding. Explain how you plan to cut back on giving her the breast and try to comfort her through the upset she is likely to feel at such times. Recognize that this is likely to be hard for her and to take some time.