Set Instant Pot to Saute and add canola oil. Once hot, add onion, carrots, celery, and garlic. Cook, stirring occasionally, until the vegetables are softened, about 5 minutes. Turn off Instant Pot.
Add thyme, rosemary, bay leaves, dried beans, and ham bone/hock. Pour in chicken broth and season with salt and pepper. Stir to combine.
Cover and seal. Cook on High pressure for 1 hour 15 minutes. Let pressure release naturally (don't touch it!) for 10 minutes, then manually release any remaining pressure.
Remove the cover and remove bay leaves and ham bone/hock from the insert.
Stir in diced ham until warmed through. Serve.