Best pain reliever while breastfeeding?

I just delivered today and am having some serious pain as I had a second degree tear and we didn't get the epidural in until trying 7 times. What's the safest medicine to take to ease the pain? The hospital I'm at automatically gives ibuprofen but I want to be 100% sure it's safe for baby!