42 But God turned away from them and gave them over to the worship of the sun, moon and stars. This agrees with what is written in the book of the prophets: “ ‘Did you bring me sacrifices and offerings forty years in the wilderness, people of Israel?

Read Acts 7:42 Using Other Translations

Then God turned, and gave them up to worship the host of heaven; as it is written in the book of the prophets, O ye house of Israel, have ye offered to me slain beasts and sacrifices by the space of forty years in the wilderness?
But God turned away and gave them over to worship the host of heaven, as it is written in the book of the prophets: "'Did you bring to me slain beasts and sacrifices, during the forty years in the wilderness, O house of Israel?
Then God turned away from them and abandoned them to serve the stars of heaven as their gods! In the book of the prophets it is written, ‘Was it to me you were bringing sacrifices and offerings during those forty years in the wilderness, Israel?