Prime Minister Narendra Modi on Monday slammed the attack on a temple by a pro-Khalistani mob in Canada and asked the government there to ensure justice and uphold the rule of law.