I have pulled a rib muscle from coughing, it is the worst. I felt miserable. What made it even more unbearable, was the near constant chuckling that I did because it hurt so bad. This, of course, made it hurt even more.
It went away after like 2 days.