Unsure if this is related, but I’ve heard that taking painkillers for delayed onset muscle soreness will reduce muscle gains.
Prostaglandins are an inflammatory hormone that do a variety of things, but specifically PGE2 plays a role in muscle stem cell activation to divide and produce more muscle fibers. The effect is probably realistically small, but you will leave gains on the table by taking ibuprofen after hard workouts.
Though the science is not completely established here and there are some exceptions (obvious ones like cancer, etc...)