Acts 5:40-42

40 His speech persuaded them. They called the apostles in and had them flogged. Then they ordered them not to speak in the name of Jesus, and let them go.
41 The apostles left the Sanhedrin, rejoicing because they had been counted worthy of suffering disgrace for the Name.
42 Day after day, in the temple courts and from house to house, they never stopped teaching and proclaiming the good news that Jesus is the Messiah.

Acts 5:40 in Other Translations

KJV
40 And to him they agreed: and when they had called the apostles, and beaten them, they commanded that they should not speak in the name of Jesus, and let them go.
ESV
40 and when they had called in the apostles, they beat them and charged them not to speak in the name of Jesus, and let them go.
NLT
40 The others accepted his advice. They called in the apostles and had them flogged. Then they ordered them never again to speak in the name of Jesus, and they let them go.
MSG
40 That convinced them. They called the apostles back in. After giving them a thorough whipping, they warned them not to speak in Jesus' name and sent them off.
CSB
40 After they called in the apostles and had them flogged, they ordered them not to speak in the name of Jesus and released them.

Acts 5:40-42 In-Context

38 Therefore, in the present case I advise you: Leave these men alone! Let them go! For if their purpose or activity is of human origin, it will fail.
39 But if it is from God, you will not be able to stop these men; you will only find yourselves fighting against God.”
40 His speech persuaded them. They called the apostles in and had them flogged. Then they ordered them not to speak in the name of Jesus, and let them go.
41 The apostles left the Sanhedrin, rejoicing because they had been counted worthy of suffering disgrace for the Name.
42 Day after day, in the temple courts and from house to house, they never stopped teaching and proclaiming the good news that Jesus is the Messiah.

Cross References 6

Scripture quoted by permission.  Quotations designated (NIV) are from THE HOLY BIBLE: NEW INTERNATIONAL VERSION®.  NIV®.  Copyright © 1973, 1978, 1984, 2011 by Biblica.  All rights reserved worldwide.