Ask the question:
Are you thinking about suicide?
Talking with a friend about suicide will not put the idea into their head. Be direct in a caring, non-confrontational way. Ask the question:
“Are you thinking about killing yourself?”
“Are you feeling like you want to die?”
“Have you been thinking about suicide?”