According to Science…

For instance, recent research published in the scientific journal PLOS One found that dogs with no prior rescue training at all instinctively knew to save their owners in a simulated emergency. When participating owners were “locked” in a box and instructed to yell “help!,” one-third of the dogs not only ran over to help but also figured out how to open the box and rescue their owner. “Most dogs would run into a burning building just because they can’t stand to be apart from their owners.

https://www.eatthis.com/mind-body/