filling a 3 inch hole in a fire rated dry wall ceiling
The opening must be sealed in accordance with the listing of the rated ceiling/floor assembly. This will vary among the wide variety assemblies currently and previously listed. Unfortunately, there is no generic correct answer. A correct code compliant solution requires research and expertise atypical among homeowners, or plain dumb luck.