You asked

Which wide lens for a nikon d5300 works best for handheld landscapes in dim light?

For handheld landscapes in dim light, a fast wide lens matters more than anything else here. The D5300 has no stabilisation in the body, so the lens has to supply the light. The landscape guide assumes a tripod and a slow scene, which doesn't fit your shooting, so the aperture figure is what counts.

Three picks from the D5300's list stand out:

Pick the 14-24mm for one lens that covers most landscapes. Pick the 14mm prime if you want the most light and the widest view and don't mind walking. Pick the 18-35mm if you shoot in very dim conditions and don't need extreme width. The aperture guide explains why a wider f-number buys faster shutter speeds in dim light.

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