Peter could speak credibly about persecutions because he endured them himself. He practiced what he preached (1Pet 4:12-14).
In Acts 5 we can see how he suffered for his faith. Acts 12 reports his imprisonment. Eventually, the Romans crucified him upside down instead of right-side up.