To work without attachment is to work without the expectation of reward or fear of any punishment in this world or the next. Work so done is a means to the end and God is the end.
One thing that being a scientist has taught me is that you can never be certain about anything. You never know the truth. You can only approach it and hope to get a bit nearer to it each time. You iterate towards the truth. You don't know it.