Who have for my life laid down their own necks, i.e., put themselves in danger of death to save my life, an indication of the greatest charity: greater love has no man than that he lay down his life for his friends (John 15:13).
This seems to have happened at Corinth where Paul suffered persecution, as is found in Acts (Acts 18:6). Or perhaps it is better to say that others exposed themselves to danger for the Apostle. For what is read in Acts (Acts 18:21) occurred when Prisca and Aquila left Rome for Corinth. But the Apostle wrote this, when he thought they were still at Rome.
Now the Apostle...'s life was necessary not so much for himself as for others, as he says in Philippians: but to remain in the flesh is more necessary on your account (Phil 1:24). Therefore he continues: to whom not only I give thanks but also all the churches of the gentiles, whose apostle and teacher I am: a teacher of the gentiles in faith and truth (1 Tim 2:7); greet also the church which is in their house. For they had many believers assembled in their house.
Source: Commentary on Romans