He laid wreaths on the bodies of the soldiers at the Palam Airport here where the mortal remains were brought today from Srinagar.
On the occasion, Army Chief Gen Bipin Rawat briefed the Prime Minister on the encounters in which the casualties took place.
"Paid tributes to the brave men who lost their lives fighting terrorists in J&K. India will always remember their valour & sacrifice," Modi tweeted later.
Major S Dahiya and three other soldiers were killed yesterday in two encounters in Kashmir.
Dahiya was killed in an encounter in Kralgund area of north Kashmir's Kupwara district where security forces gunned down three militants hiding in a residential house.
Three other army men were killed in an encounter in Hajin area of Bandipora district after security forces cordoned off the area following information about presence of militants there.
Disclaimer: No Business Standard Journalist was involved in creation of this content