Prime Minister Narendra Modi offered prayers at the Vinayak Temple in Delhi as he marked 25 years in executive office.