Via "Edit profile", copy the link at the bottom; add this link to your profile description on OSM. Back on Mastodon, in the table with 'account metadata', add 'OpenStreetMap' on the left and a link to your OSM-profile on the right and save the changes. Mastodon will then verify your account and show the link as verified - as visible in the screenshots below.