Set your Instant Pot to sauté mode and add a splash of oil. Cook the onion, carrots, and celery for about 5 minutes until softened.
Add the garlic and cook for another minute until fragrant.
Add the beans, ham, chicken broth, bay leaves, thyme, and black pepper. Stir to combine.
Lock the lid in place and set the valve to sealing. Cook on high pressure for 35 minutes.
Allow the pressure to release naturally for 15 minutes, then quick release any remaining pressure.
Remove the bay leaves, taste, and adjust seasoning with salt as needed. For a creamier soup, mash some of the beans against the side of the pot with a wooden spoon.
Serve hot with crusty bread and enjoy!