You cannot make your partner stop following in Pokémon Mystery Dungeon—they’re permanent companions in dungeons and hub areas.
But you can switch partners:
Partners provide essential support; embrace the teamwork!