Leaving aside the discussion of vowels, replacing the nun sakinah with a mim when it precedes a ba is part of the rules of tajwid (see http://www.abouttajweed.com/iqlab_of...n_saakinah.htm)