All words ending in a consonant sound had either ъ or ь after the last vowel: "Домъ стоялъ в густомъ бору". It didn't matter what part of speech it was, if it ended in a hard consonant, it had a mute "ъ" in the end.