If you want to remove your iPhone from your Mac’s Finder, unplug it. But if they’re connected wirelessly, go to Settings on your iPhone > Apple ID > Find your Mac in the list > Tap Remove from account.