Moldy hay will have a sour or musty smell. There may also be white or black spots on the hay, or there might be a fine white/gray dust.
https://www.theeducatedrabbit.com/hay-for-rabbits.html
The problem with moldy hay is it has the potential to contain mycotoxins, which, depending on the...