Pakistan's government announced the decision on Monday, reversing a boycott imposed following the ICC replacing Bangladesh with Scotland in the tournament.
That came after the ICC had rejected Bangladesh's refusal to play in India, asking for their matches to be moved to co-hosts Sri Lanka.
That request followed the Board of Control for Cricket in India ordering Kolkata Knight Riders to release Mustafizur Rahman, the only Bangladeshi player signed to play in the Indian Premier League, amid rising political tensions.
In what appeared a choreographed series of moves on Monday the Bangladesh Cricket Board asked Pakistan to reverse their decision after a meeting between representatives from global governing body the ICC, which runs the event, and the cricket boards of Bangladesh and Pakistan in Lahore.
At the meeting the ICC agreed not to impose any sporting, financial or administrative penalty on Bangladesh for their refusal to play in India.
It was also announced Bangladesh would host an ICC event prior to the 50-over World Cup of 2031, which is set to be co-hosted by India and Bangladesh.
"We are deeply moved by Pakistan's efforts to go above and beyond in supporting Bangladesh during this period ... I request Pakistan to play the game on 15 February against India for the benefit of the entire cricket ecosystem," Bangladesh Cricket Board president Mohammad Aminul Islam said afterwards.
Barely an hour later the boycott was called off.
Matches between India and Pakistan such attract huge television audiences they underpin the ICC's broadcast deals with rights to this World Cup sold on the understanding they will meet at least once.