The no-confidence motion against the Modi government was defeated in the Lok Sabha after a 12-hour long heated debate which saw the treasury and opposition benches trade charges.
Modi shook Gandhi's hands but ignored his call to stand so that he could hug the BJP leader.
Abstain from making childish statements: PM Modi on Rahul Gandhi's comments on national security issues
Modi also said the surgical strike against Pakistan-based terror camps must not be called a 'jumla' as it would amount to insulting the security forces.
Modi said it was clear in front of everyone what the Congress leader's eyed did and the same was splashed across TV channels throughout the day.
The Shiv Sena which is a partner of the BJP in the Maharashtra government had decided to abstain from the no-trust vote in Parliament.
Many remembered "Munnabhai", the character from the eponymous Bollywood film who hugged his opponents in a bid to win them over and prove the relevance of Gandhian values.
The Prime Minister, a little taken aback at first, called Gandhi back and shook hands with him with a pat on his back.
The Narendra Modi led NDA government defeated its first ever No-confidence motion, moved by the TDP over Andhra Pradesh's special status category.