If a stranger says salam to you on the street, how do you know whether they are Muslim?
Character & SpiritualityQ&A answerQ&AAlMaghrib Seminars by Shaykh Dr Yasir Qadhi15 Oct 2012bkj4PVanbzkThe video starts at 43:33, where this question begins.
The answer
It's a very good question, akhi or ukhti, whoever asked the question. Basically, if somebody looks at you and says, "As-salamu alaykum," you can pretty much assume that he's a Muslim or she's a Muslim. It's not something that non-Muslims do in our times. And even if one accidentally does so, you can basically assume that such a person is a Muslim, and Allah 'azza wa jall will forgive you for that.
An edited transcript of the video, lightly cleaned up for reading. The video is the source; if the text and the video differ, the video is correct.
Related questions
What should Muslims do in societies where bowing to other people is the polite custom?
Is talking about a politician's actions, or venting about someone who wronged you, backbiting?
Is it makruh to clap at Islamic events instead of saying takbir?
Is leaving a negative review of a Muslim-owned restaurant backbiting?
Must you forgive those who wronged you before Hajj, and how should you handle conflict during Hajj?
How is haya (modesty) connected to the fitrah, and why is preserving it important?
Is writing poetry that contains fiction or fantasy considered lying?
Do people who wrongly spoke against Shaykh Yasir Qadhi need to email him asking for forgiveness?