ANSWER:

It was neither of the two as these stories are not authentic. 

It was Allah who saved them. 

What was it that saved Prophet Muhammad & Abu bakr’s lives when they were chased by the Makkans? Was it birds cooing near the entrance or was it a cobweb that had made the Makkans leave them alone?