However, they had barely set out when Abu Jahal tied his hands behind his back. Abu Jahal brought him to Makkah and kept him imprisoned for a long period of time, during which he subjected him to various forms of torture.
During the Fajr Salaah, Rasulullah (sallallahu ‘alaihi wasallam) would recite the Qunoot and make special dua for his freedom. Rasulullah (sallallahu ‘alaihi wasallam) would beseech Allah Ta‘ala saying:
اللهم أنج الوليد بن الوليد وسلمة بن هشام وعياش بن أبي ربيعه
“O Allah! Deliver Waleed bin Waleed, Salamah bin Hishaam and Ayyaash bin Abi Rabee‘ah ([radhiyallahu ‘anhum] from the persecution of the disbelievers).”
Subsequently, Allah Ta‘ala saved him from this imprisonment and he escaped, fleeing to Madinah Munawwarah.
(Extracted from Seeratul Mustafa 1/355)