How long does it take for pain to go away in a pulled muscle injury?

Days to weeks. Some muscles heal quickly while others may take much longer to heal. If in doubt of the diagnosis, see your doctor.