The Lord knows what is happening where the dead people are.So he can surely know what living people are thinking.