Akira: yes, I used the AFS 24 mm f/1.8 G. In fact,all photos with the D500 (yesterday) were acquired with that lens.
The front element was quite dusty, so I got a lot of unwanted reflections on many of the frames. However, this one came out clean. Apparently the nano coating can work wonders once in a while, like it does with the 20/21.8 G.
I used f/16 for the Magnolia capture, by the way.
PS: some of the other Magnolia picture came out with 14 defined sun rays. No idea why there is such a difference using the same aperture setting and lens. DS