\documentclass{article}
\usepackage{xcolor}
\usepackage[pagebackref=true,colorlinks,linkcolor=blue,citecolor=green!80!black]{hyperref}
\usepackage{amssymb}
\usepackage{amsmath}
%\usepackage{url}
%\usepackage[compress]{cite} 
%\usepackage[numbers,sort&compress]{natbib}
\usepackage{xepersian}
\settextfont{Yas}
\begin{document}
\lr{\cite{B02f}}
و
\cite{d}
و
\cite{Amintoosi87afzayesh}
و
\lr{\cite{aliabad2004rings}}
و
\lr{\cite{ghafarzadeh2016stem}}
و
\cite{aliabad2004rings,ali,whatever,B02f,d}
و همچنین داریم:
\lr{\cite{aliabad2004rings,ali,whatever,B02f,d}}

\nocite{*}
\bibliographystyle{alpha-persian}
\bibliography{sample8}
%\bibliography{sample9}
\end{document}
