18 But God, who through the preaching of all the prophets had said all along that his Messiah would be killed, knew exactly what you were doing and used it to fulfill his plans.