Live by the sword, die by the sword
The actual quotation is, “All they that take the sword shall perish with the sword” meaning that violent or nefarious actions will reap similar rewards. The source is the New Testament Matthew 26:52.