People quoting hadith's also need to read sulah Hudabayia.
Hudaibiyah was actually a victory for the Muslims.
The Sahaba (RA) were focused on the issue of giving up willing Muslims to Quraysh, but Rasul'Allah (SAW) got a few bigger things:
1. Quraysh formally recognized Madina and Rasul'Allah (SAW)'s status as a ruler. In turn, Rasul'Allah (SAW) could openly send envoys to Persia, Egypt, Byzantine Rome, Yemen, and other lands. In no time, much of the region had either formed ties with Madina (e.g., Egypt) or acknowledged it.
2. Quraysh lost interest in fighting the Muslims. They refused to join any of the campaigns the Jewish tribes were trying to form against Madina, for example.
3. Rasul'Allah (SAW) only promised not to take Qurayshi Muslims into Madina, but he didn't send them back to Makkah either. So, the Muslims who ran away from Makkah went onto form their own little mini-enclave in the outskirts of Makkah. They started causing a few problems there and eventually, Quraysh told Madina to take them back.
The thing about Hudaibiyah was that it was an outcome of years of struggle, planning, and execution. It wasn't a flip of a switch. Yes, when Islam took root in Madina, Rasul'Allah (SAW) issued some aggressive directives (e.g. like intercepting Quraysh's caravans), but that was
after Islam took root. Remember, it was the Ansar who invited Rasul'Allah (SAW) to Madina, so they understood what they were in for and supported it. In a way, the 'establishment' in Yathrib/Madina was ready for real change and willing to walk their talk and die in the process. Not only that, but that establishment didn't run Madina into the ground economically, but kept it in a 'strong enough' state to handle the pressures of the region.
Pakistan's establishment is like a house of chai-stained cards. If we didn't waste 60 years and, instead, focused on our economic fundamentals and industrial growth, then yes, I'm confident Pakistan would have a very proactive foreign policy.