sharp pain behind ribs when sneezing or taking a deep breath

Morning time after a nights rest is when its the worst.sudden sharp pains