Purpose Islamic finance growth depends on factors that are crucial for fostering positive perceptions and increasing acceptance, particularly in Muslim countries. This study aims to investigate the influence of awareness, knowledge, religion and the advantages on perceptions of Shariah scholars toward Islamic banks in Pakistan and the mediating role of attitude. Design/methodology/approach The study collected data through a questionnaire from 200 Shariah scholars in Pakistan who have completed or are currently enrolled in Islamic banking and finance courses. It employed exploratory and confirmatory factor analyses using SPSS and AMOS software to analyze the data to evaluate measurement and structural models, ensuring the validity and reliability of the constructs and testing hypotheses to examine the relationships among factors and perception. Findings The study identified a significant influence of knowledge and attitude on perception, thus supporting H3 and H9. H2, H6 and H8 indicate an insignificant impact of awareness, religious motivation and advantage on perception. This highlights the need for Islamic banks to bridge academic and industry gaps, ensuring that their promotional efforts emphasize monitoring by Sharia committees. The research revealed significant impacts of factors on attitude, confirming H1, H3, H5 and H7. Importantly, attitude was found to play a pivotal role as a mediator between factors and Shariah scholars’ perceptions of Islamic banking in Pakistan. Research limitations/implications By investigating the perspectives of Shariah scholars, this research seeks to provide insights into enhancing the understanding and development of Islamic banking practices within the context of Islamic principles and global financial landscapes. Originality/value This research contributes to the field by uniquely focusing on Shariah scholars’ perceptions of Islamic banking, addressing a significant gap in literature because little research has been conducted to address these issues from the Shariah scholars’ perspectives.