You asked

Best camera for the nikon af s 24mm f 1 8g ed?

The Nikon AF-S 24mm f/1.8G ED is a Nikon F lens, so any camera on its list will take it. For a fast, wide prime, the lens page shows that the choice comes down to full frame or APS-C.

For dim light and moving subjects, the guide favours a full-frame body. A larger sensor gathers more light, and f/1.8 is most useful there. The lens isn't stabilised, so a steady body won't help a moving subject much. The lens also gives its full 24mm view on full frame, while on APS-C it frames like 36mm.

This site's pages for these cameras don't show a price here, so the guide can't quote one. Check the camera pages for their current price information.

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}.