If a man or a woman sheds tears in their prayers, but are not sure whether it was out of love of Allah and other allowed reasons or instead for matters of this world, are their prayers valid?
Shedding tears during Salah does not invalidate the Salah if it was not for a worldly matter.
Wassalam.