'Badat prayed at the militants' mosques'