You asked

Which fast autofocus prime works with a sony a9 for dim rooms?

For dim rooms, the lens matters more than the body. A wide maximum aperture gathers light, and the Sony a9 has a full-frame sensor and in-body stabilisation. Stabilisation steadies your hand but can't freeze a moving person, so a fast prime does more for indoor shots.

Three fast primes from the a9's lens list suit this:

If you need a wider view of the room itself, the Sony FE 20mm f/1.8 G is another fast option. Prices for each lens are on its own page, and prices change, so check before buying.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.