Addressing a poll rally at Patan in his home state Gujarat, he also took a jibe at NCP leader Sharad Pawar, saying if he is unaware of his next move, then how Pakistani Prime Minister Imran Khan can gauge what he will do.
Following the air strike at Balakot terror camp in Pakistan, there was a dogfight between Indian and Pakistani fighter planes on February 27 in which IAF Wing Commander Abhinandan Varthaman was captured by the neighbouring country.
"We conducted a press conference and warned Pakistan that if anything happened to our pilot, you will keep telling the world that Modi did this to you," he said.
"A senior American official said on the second day that Modi has kept ready 12 missiles and might attack and the situation will deteriorate. Pakistan announced to return the pilot on the second day, else it was going to be a "qatal ki raat'," Modi said.
"This was said by America, I have nothing to say about this now, I will speak about it when the time will come," he added.
Asserting his government's commitment towards national security, Modi said whether the prime minister's chair remains or not, he has decided that either he will be alive or terrorists will remain alive.
He also took a swipe at Pawar, who on Saturday said he was "terribly afraid" as to what Modi, who once called Pawar his mentor in politics, would do next.
The prime minister also appealed to people of Gujarat to make the BJP victorious on all 26 Lok Sabha seats in the state, where polling will be held on Tuesday
"It is the duty of people of my home state to take care of the 'son of the soil', give all 26 seats in Gujarat to me," he said.
"My government will come back to power for sure, but if Gujarat doesn't give 26 seats (to BJP), the TV discussions on May 23 will be why it happened?" he said.