From 1760025e32f4b55886d2296b781fcf8b24362ad7 Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 14 May 2026 22:41:00 -0400 Subject: [PATCH 01/32] hybrid search --- .env.sample | 9 ++- main.py | 166 ++++++++++++++++++++++++++++++++++++++++++++++- requirements.txt | 2 +- 3 files changed, 174 insertions(+), 3 deletions(-) diff --git a/.env.sample b/.env.sample index 1062fee..f36dd48 100644 --- a/.env.sample +++ b/.env.sample @@ -11,10 +11,17 @@ AWS_SECRET=secret ELASTIC_PASSWORD=123 ES_PORT=9200 -ES_STACK_VERSION=8.9.0 +ES_STACK_VERSION=8.16.0 INDEXING_PASSWORD=index123 +# Semantic search (optional). When SEMANTIC_SEARCH_ENABLED is truthy, +# /index creates a Google AI Studio text-embedding-005 inference endpoint and +# indexes a semantic_text field, and /search honors `?semantic=true` to +# RRF-fuse semantic + lexical hits. Get an API key at https://aistudio.google.com/apikey +SEMANTIC_SEARCH_ENABLED=false +GOOGLE_AI_STUDIO_API_KEY=your-api-key-here + # Grafana Cloud — logs (Loki) # Get from: grafana.com → your stack → Loki card → "Send Logs" # Token: My Account → Access Policies → token with logs:write scope diff --git a/main.py b/main.py index d3c1823..e72a9ed 100644 --- a/main.py +++ b/main.py @@ -67,6 +67,15 @@ def _emit_access_log(response): INDEX_NAME = "english" +SEMANTIC_ENABLED = os.environ.get("SEMANTIC_SEARCH_ENABLED", "").lower() in ("1", "true", "yes") +SEMANTIC_FIELD = "hadithTextSemantic" +INFERENCE_ENDPOINT = "googleai-text-embedding" +# RRF constants. k=60 is the value from the original Cormack et al. paper and +# the ES default. RRF_WINDOW is the depth fetched from each retriever before +# fusion — bigger window = better recall at the tail, more cost per query. +RRF_K = 60 +RRF_WINDOW = 100 + # Tiebreaker boosts added on top of the text-similarity score so canonical # collections rise when relevance is otherwise comparable. Sized to swing # rankings when BM25 scores are within a few points (e.g. the same hadith @@ -106,6 +115,31 @@ def home(): return "

Welcome to sunnah.com search api.

" +def create_inference_endpoint(): + """Create the Google AI Studio text-embedding inference endpoint used by + the semantic_text field. Deletes any existing endpoint with the same id + so re-indexing picks up dimension/model changes.""" + try: + es_client.inference.delete( + task_type="text_embedding", + inference_id=INFERENCE_ENDPOINT, + force=True, + ) + except NotFoundError: + pass + es_client.options(request_timeout=60).inference.put( + task_type="text_embedding", + inference_id=INFERENCE_ENDPOINT, + inference_config={ + "service": "googleaistudio", + "service_settings": { + "api_key": os.environ.get("GOOGLE_AI_STUDIO_API_KEY"), + "model_id": "text-embedding-005", + }, + }, + ) + + def create_and_update_index(index_name, documents, fields_to_not_index): settings = { "index": { @@ -193,10 +227,20 @@ def create_and_update_index(index_name, documents, fields_to_not_index): } | {"arabicText": {"type": "text", "analyzer": "custom_arabic"}} } + if SEMANTIC_ENABLED: + mappings["properties"][SEMANTIC_FIELD] = { + "type": "semantic_text", + "inference_id": INFERENCE_ENDPOINT, + } if es_client.indices.exists(index=index_name): es_client.indices.delete(index=index_name) es_client.indices.create(index=index_name, mappings=mappings, settings=settings) - successCount, errors = helpers.bulk(es_client, documents, index=index_name) + # When semantic_text is in the mapping each doc triggers an embedding API + # call during indexing, so the bulk request needs a longer timeout. + bulk_timeout = 300 if SEMANTIC_ENABLED else 60 + successCount, errors = helpers.bulk( + es_client, documents, index=index_name, request_timeout=bulk_timeout + ) return successCount, errors def get_suggest_query(suggest_field): @@ -225,6 +269,9 @@ def index(): if request.args.get("password") != os.environ.get("INDEXING_PASSWORD"): return "Must provide valid password to index", 401 + if SEMANTIC_ENABLED: + create_inference_endpoint() + connection = pymysql.connect( host=os.environ.get("MYSQL_HOST"), user=os.environ.get("MYSQL_USER"), @@ -257,6 +304,8 @@ def index(): # Add arabic text and hadithNumber to english hadith for englishHadith in englishHadiths: + if SEMANTIC_ENABLED: + englishHadith[SEMANTIC_FIELD] = englishHadith["hadithText"] if englishHadith["urn"] not in matchingArabicHadiths: continue matchingArabic = matchingArabicHadiths[englishHadith["urn"]] @@ -303,6 +352,41 @@ def index_status(): } +def _rrf_merge(lexical_resp, semantic_resp, k, from_, size): + """Reciprocal rank fusion of two ES result sets. Each doc's fused score + is sum(1/(k+rank)) across retrievers it appears in; rank is 1-indexed.""" + scores = {} + hits_by_id = {} + for rank, h in enumerate(lexical_resp.get("hits", {}).get("hits", []), start=1): + doc_id = h["_id"] + scores[doc_id] = scores.get(doc_id, 0.0) + 1.0 / (k + rank) + # Lexical hits own the highlight slot — semantic queries don't produce one. + hits_by_id[doc_id] = h + for rank, h in enumerate(semantic_resp.get("hits", {}).get("hits", []), start=1): + doc_id = h["_id"] + scores[doc_id] = scores.get(doc_id, 0.0) + 1.0 / (k + rank) + hits_by_id.setdefault(doc_id, h) + + sorted_ids = sorted(scores, key=scores.get, reverse=True) + merged_hits = [] + for doc_id in sorted_ids[from_ : from_ + size]: + h = dict(hits_by_id[doc_id]) + h["_score"] = scores[doc_id] + merged_hits.append(h) + + # Lexical total is the keyword-match count and stays comparable to the + # non-semantic path; semantic returns top-N by similarity with no total. + total = lexical_resp.get("hits", {}).get( + "total", {"value": len(sorted_ids), "relation": "eq"} + ) + max_score = scores[sorted_ids[0]] if sorted_ids else None + return { + "took": lexical_resp.get("took", 0) + semantic_resp.get("took", 0), + "hits": {"total": total, "max_score": max_score, "hits": merged_hits}, + "suggest": lexical_resp.get("suggest"), + } + + def get_filter_from_args(args): filters = [] collection = args.getlist("collection") @@ -318,6 +402,9 @@ def get_filter_from_args(args): def search(language): query = request.args.get("q") filter = get_filter_from_args(request.args) + use_semantic = SEMANTIC_ENABLED and request.args.get( + "semantic", "" + ).lower() in ("1", "true", "yes") fields = ["hadithNumber^2", "hadithText", "arabicText", "collection^2"] @@ -345,6 +432,9 @@ def build_query(query_type): } } + if use_semantic: + return _semantic_rrf_search(language, query, filter, build_query) + search_kwargs = { "index": language, "from_": request.args.get("from", 0), @@ -381,5 +471,79 @@ def build_query(query_type): return jsonify(result.body) +def _semantic_rrf_search(language, query, filter_clauses, build_lexical_query): + """Run lexical + semantic searches in parallel via msearch and fuse with RRF. + Lexical query keeps the function_score collection boosts; semantic uses the + inference-backed semantic_text field. Fusion happens in Python to avoid the + Enterprise-licensed RRF retriever.""" + from_ = int(request.args.get("from", 0)) + size = int(request.args.get("size", 10)) + window = max(RRF_WINDOW, from_ + size) + + semantic_query = { + "bool": { + "filter": filter_clauses, + "must": [{"semantic": {"field": SEMANTIC_FIELD, "query": query}}], + } + } + # The semantic_text field stores chunked embeddings + a copy of the input + # text; excluding it keeps responses lean. + common_body = { + "from": 0, + "size": window, + "_source": {"excludes": [SEMANTIC_FIELD]}, + } + # Highlight + suggest run on the lexical leg only — _rrf_merge keeps the + # lexical hit for any doc that appears in both legs, so a semantic-leg + # highlight would be computed and then discarded. + lexical_body = { + **common_body, + "highlight": {"number_of_fragments": 0, "fields": {"*": {}}}, + "suggest": { + "text": query, + "english": {"phrase": get_suggest_query("hadithText.trigram")}, + "arabic": {"phrase": get_suggest_query("arabicText")}, + }, + } + + def _run(query_type): + searches = [ + {"index": language}, + {**lexical_body, "query": build_lexical_query(query_type)}, + {"index": language}, + {**common_body, "query": semantic_query}, + ] + return es_client.options(request_timeout=130).msearch(searches=searches) + + try: + result = _run("query_string") + if result["responses"][0].get("error"): + # Only the lexical leg can hit query_string strictness; the + # semantic leg uses a `semantic` clause that doesn't parse the + # user's query as a syntax. + result = _run("simple_query_string") + except BadRequestError as e: + access_log.warning( + "malformed_query", + extra={"request_id": getattr(g, "request_id", None), "detail": str(e)}, + ) + return jsonify({"error": "malformed query"}), 400 + + lex_resp, sem_resp = result["responses"][0], result["responses"][1] + for resp, label in ((lex_resp, "lexical"), (sem_resp, "semantic")): + if resp.get("error"): + access_log.warning( + "rrf_subquery_failed", + extra={ + "request_id": getattr(g, "request_id", None), + "leg": label, + "error": resp["error"], + }, + ) + return jsonify({"error": "malformed query"}), 400 + + return jsonify(_rrf_merge(lex_resp, sem_resp, RRF_K, from_, size)) + + if __name__ == "__main__": app.run(host="0.0.0.0") diff --git a/requirements.txt b/requirements.txt index bf410ce..69d88a5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ Jinja2==2.11.3 python-dotenv==0.13.0 virtualenv==20.0.25 Werkzeug==1.0.1 -elasticsearch==8.9.0 +elasticsearch==8.16.0 MarkupSafe==1.1.1 itsdangerous==1.1.0 python-json-logger==2.0.7 From babe5e2775d2e50f9249783cd4c6f845a8462ef9 Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 14 May 2026 23:31:08 -0400 Subject: [PATCH 02/32] Back to openai --- .env.sample | 6 +++--- main.py | 59 +++++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 53 insertions(+), 12 deletions(-) diff --git a/.env.sample b/.env.sample index f36dd48..588d017 100644 --- a/.env.sample +++ b/.env.sample @@ -16,11 +16,11 @@ ES_STACK_VERSION=8.16.0 INDEXING_PASSWORD=index123 # Semantic search (optional). When SEMANTIC_SEARCH_ENABLED is truthy, -# /index creates a Google AI Studio text-embedding-005 inference endpoint and +# /index creates an OpenAI text-embedding-3-small inference endpoint and # indexes a semantic_text field, and /search honors `?semantic=true` to -# RRF-fuse semantic + lexical hits. Get an API key at https://aistudio.google.com/apikey +# RRF-fuse semantic + lexical hits. Get an API key at https://platform.openai.com/api-keys SEMANTIC_SEARCH_ENABLED=false -GOOGLE_AI_STUDIO_API_KEY=your-api-key-here +OPENAI_API_KEY=your-api-key-here # Grafana Cloud — logs (Loki) # Get from: grafana.com → your stack → Loki card → "Send Logs" diff --git a/main.py b/main.py index e72a9ed..8c3d955 100644 --- a/main.py +++ b/main.py @@ -69,7 +69,7 @@ def _emit_access_log(response): SEMANTIC_ENABLED = os.environ.get("SEMANTIC_SEARCH_ENABLED", "").lower() in ("1", "true", "yes") SEMANTIC_FIELD = "hadithTextSemantic" -INFERENCE_ENDPOINT = "googleai-text-embedding" +INFERENCE_ENDPOINT = "openai-text-embedding" # RRF constants. k=60 is the value from the original Cormack et al. paper and # the ES default. RRF_WINDOW is the depth fetched from each retriever before # fusion — bigger window = better recall at the tail, more cost per query. @@ -116,9 +116,9 @@ def home(): def create_inference_endpoint(): - """Create the Google AI Studio text-embedding inference endpoint used by - the semantic_text field. Deletes any existing endpoint with the same id - so re-indexing picks up dimension/model changes.""" + """Create the OpenAI text-embedding inference endpoint used by the + semantic_text field. Deletes any existing endpoint with the same id so + re-indexing picks up dimension/model changes.""" try: es_client.inference.delete( task_type="text_embedding", @@ -131,10 +131,14 @@ def create_inference_endpoint(): task_type="text_embedding", inference_id=INFERENCE_ENDPOINT, inference_config={ - "service": "googleaistudio", + "service": "openai", "service_settings": { - "api_key": os.environ.get("GOOGLE_AI_STUDIO_API_KEY"), - "model_id": "text-embedding-005", + "api_key": os.environ.get("OPENAI_API_KEY"), + "model_id": "text-embedding-3-small", + # OpenAI vectors are mathematically unit-length but drift past + # ES's strict epsilon for a small fraction of inputs, breaking + # the default dot_product similarity. See elastic/elasticsearch#122878. + "similarity": "cosine", }, }, ) @@ -239,7 +243,12 @@ def create_and_update_index(index_name, documents, fields_to_not_index): # call during indexing, so the bulk request needs a longer timeout. bulk_timeout = 300 if SEMANTIC_ENABLED else 60 successCount, errors = helpers.bulk( - es_client, documents, index=index_name, request_timeout=bulk_timeout + es_client, + documents, + index=index_name, + request_timeout=bulk_timeout, + raise_on_error=False, + raise_on_exception=False, ) return successCount, errors @@ -433,12 +442,22 @@ def build_query(query_type): } if use_semantic: + access_log.info( + "semantic_search_enabled", + extra={ + "request_id": getattr(g, "request_id", None), + "language": language, + "query": query, + "filters": filter, + }, + ) return _semantic_rrf_search(language, query, filter, build_query) search_kwargs = { "index": language, "from_": request.args.get("from", 0), "size": request.args.get("size", 10), + "_source": {"excludes": [SEMANTIC_FIELD]}, "highlight": {"number_of_fragments": 0, "fields": {"*": {}}}, "suggest": { "text": query, @@ -530,6 +549,17 @@ def _run(query_type): return jsonify({"error": "malformed query"}), 400 lex_resp, sem_resp = result["responses"][0], result["responses"][1] + access_log.info( + "semantic_rrf_legs", + extra={ + "request_id": getattr(g, "request_id", None), + "lexical_hits": len(lex_resp.get("hits", {}).get("hits", [])), + "semantic_hits": len(sem_resp.get("hits", {}).get("hits", [])), + "lexical_took_ms": lex_resp.get("took"), + "semantic_took_ms": sem_resp.get("took"), + "window": window, + }, + ) for resp, label in ((lex_resp, "lexical"), (sem_resp, "semantic")): if resp.get("error"): access_log.warning( @@ -542,7 +572,18 @@ def _run(query_type): ) return jsonify({"error": "malformed query"}), 400 - return jsonify(_rrf_merge(lex_resp, sem_resp, RRF_K, from_, size)) + merged = _rrf_merge(lex_resp, sem_resp, RRF_K, from_, size) + access_log.info( + "semantic_rrf_merged", + extra={ + "request_id": getattr(g, "request_id", None), + "returned_hits": len(merged["hits"]["hits"]), + "max_score": merged["hits"]["max_score"], + "from": from_, + "size": size, + }, + ) + return jsonify(merged) if __name__ == "__main__": From 3a3630c63acc70efc47a0c1bd125f78b2c887dfa Mon Sep 17 00:00:00 2001 From: yug <> Date: Fri, 15 May 2026 09:33:56 -0400 Subject: [PATCH 03/32] Semantic only mode --- .env.sample | 4 -- main.py | 116 ++++++++++++++++++++++++++++++++++------------------ 2 files changed, 76 insertions(+), 44 deletions(-) diff --git a/.env.sample b/.env.sample index 588d017..96603a6 100644 --- a/.env.sample +++ b/.env.sample @@ -15,10 +15,6 @@ ES_STACK_VERSION=8.16.0 INDEXING_PASSWORD=index123 -# Semantic search (optional). When SEMANTIC_SEARCH_ENABLED is truthy, -# /index creates an OpenAI text-embedding-3-small inference endpoint and -# indexes a semantic_text field, and /search honors `?semantic=true` to -# RRF-fuse semantic + lexical hits. Get an API key at https://platform.openai.com/api-keys SEMANTIC_SEARCH_ENABLED=false OPENAI_API_KEY=your-api-key-here diff --git a/main.py b/main.py index 8c3d955..4718814 100644 --- a/main.py +++ b/main.py @@ -76,6 +76,12 @@ def _emit_access_log(response): RRF_K = 60 RRF_WINDOW = 100 +# Search modes. SEMANTIC_MODES are the ones needing the inference endpoint — +# kept as one tuple so the "needs the semantic backend" rule has a single +# source of truth across mode resolution and request dispatch. +SEARCH_MODES = ("lexical", "hybrid", "semantic") +SEMANTIC_MODES = ("hybrid", "semantic") + # Tiebreaker boosts added on top of the text-similarity score so canonical # collections rise when relevance is otherwise comparable. Sized to swing # rankings when BM25 scores are within a few points (e.g. the same hadith @@ -272,6 +278,35 @@ def get_suggest_query(suggest_field): }, } + +def get_suggest_block(query): + """Phrase-suggester ("did you mean") block covering English + Arabic text.""" + return { + "text": query, + "english": {"phrase": get_suggest_query("hadithText.trigram")}, + "arabic": {"phrase": get_suggest_query("arabicText")}, + } + + +def build_semantic_query(query, filter_clauses): + """bool query matching the inference-backed semantic_text field.""" + return { + "bool": { + "filter": filter_clauses, + "must": [{"semantic": {"field": SEMANTIC_FIELD, "query": query}}], + } + } + + +def malformed_query_response(exc): + """400 for a query ES rejected. Logs the detail but doesn't leak ES + internals (field paths, index names) to the client.""" + access_log.warning( + "malformed_query", + extra={"request_id": getattr(g, "request_id", None), "detail": str(exc)}, + ) + return jsonify({"error": "malformed query"}), 400 + @app.route("/index", methods=["GET"]) def index(): start = time.time() @@ -407,13 +442,22 @@ def get_filter_from_args(args): filters.append({"terms": {"grade": grade}}) return filters +def _resolve_search_mode(args): + """Resolve the ?mode= arg, falling a semantic-backed mode back to lexical + when SEMANTIC_SEARCH_ENABLED is off — so a deploy without an inference + endpoint degrades gracefully instead of erroring.""" + mode = args.get("mode", "lexical").lower() + if mode not in SEARCH_MODES: + mode = "lexical" + if mode in SEMANTIC_MODES and not SEMANTIC_ENABLED: + return "lexical" + return mode + @app.route("//search", methods=["GET"]) def search(language): query = request.args.get("q") filter = get_filter_from_args(request.args) - use_semantic = SEMANTIC_ENABLED and request.args.get( - "semantic", "" - ).lower() in ("1", "true", "yes") + mode = _resolve_search_mode(request.args) fields = ["hadithNumber^2", "hadithText", "arabicText", "collection^2"] @@ -441,17 +485,20 @@ def build_query(query_type): } } - if use_semantic: + if mode in SEMANTIC_MODES: access_log.info( - "semantic_search_enabled", + "semantic_search_mode", extra={ "request_id": getattr(g, "request_id", None), "language": language, "query": query, "filters": filter, + "mode": mode, }, ) - return _semantic_rrf_search(language, query, filter, build_query) + if mode == "hybrid": + return _semantic_rrf_search(language, query, filter, build_query) + return _semantic_only_search(language, query, filter) search_kwargs = { "index": language, @@ -459,15 +506,7 @@ def build_query(query_type): "size": request.args.get("size", 10), "_source": {"excludes": [SEMANTIC_FIELD]}, "highlight": {"number_of_fragments": 0, "fields": {"*": {}}}, - "suggest": { - "text": query, - "english": { - "phrase": get_suggest_query("hadithText.trigram"), - }, - "arabic": { - "phrase": get_suggest_query("arabicText"), - }, - }, + "suggest": get_suggest_block(query), } try: @@ -477,15 +516,7 @@ def build_query(query_type): # query_string syntax is strict; retry once with simple_query_string, which tolerates malformed input result = es_client.search(query=build_query("simple_query_string"), **search_kwargs) except BadRequestError as e: - # Don't leak ES internals (field paths, index names) to client. - access_log.warning( - "malformed_query", - extra={ - "request_id": getattr(g, "request_id", None), - "detail": str(e), - }, - ) - return jsonify({"error": "malformed query"}), 400 + return malformed_query_response(e) return jsonify(result.body) @@ -499,12 +530,7 @@ def _semantic_rrf_search(language, query, filter_clauses, build_lexical_query): size = int(request.args.get("size", 10)) window = max(RRF_WINDOW, from_ + size) - semantic_query = { - "bool": { - "filter": filter_clauses, - "must": [{"semantic": {"field": SEMANTIC_FIELD, "query": query}}], - } - } + semantic_query = build_semantic_query(query, filter_clauses) # The semantic_text field stores chunked embeddings + a copy of the input # text; excluding it keeps responses lean. common_body = { @@ -518,11 +544,7 @@ def _semantic_rrf_search(language, query, filter_clauses, build_lexical_query): lexical_body = { **common_body, "highlight": {"number_of_fragments": 0, "fields": {"*": {}}}, - "suggest": { - "text": query, - "english": {"phrase": get_suggest_query("hadithText.trigram")}, - "arabic": {"phrase": get_suggest_query("arabicText")}, - }, + "suggest": get_suggest_block(query), } def _run(query_type): @@ -542,11 +564,7 @@ def _run(query_type): # user's query as a syntax. result = _run("simple_query_string") except BadRequestError as e: - access_log.warning( - "malformed_query", - extra={"request_id": getattr(g, "request_id", None), "detail": str(e)}, - ) - return jsonify({"error": "malformed query"}), 400 + return malformed_query_response(e) lex_resp, sem_resp = result["responses"][0], result["responses"][1] access_log.info( @@ -586,5 +604,23 @@ def _run(query_type): return jsonify(merged) +def _semantic_only_search(language, query, filter_clauses): + """Single semantic query against the semantic_text field — no lexical leg + and no RRF fusion, so collection boosts (a function_score wrapper) don't + apply and there's no highlight (a semantic_text field can't be highlighted).""" + try: + result = es_client.options(request_timeout=130).search( + index=language, + from_=int(request.args.get("from", 0)), + size=int(request.args.get("size", 10)), + query=build_semantic_query(query, filter_clauses), + _source={"excludes": [SEMANTIC_FIELD]}, + suggest=get_suggest_block(query), + ) + except BadRequestError as e: + return malformed_query_response(e) + return jsonify(result.body) + + if __name__ == "__main__": app.run(host="0.0.0.0") From 9891a04e4816296a9c2c57b91aa0ce8e158737aa Mon Sep 17 00:00:00 2001 From: yug <> Date: Fri, 15 May 2026 10:15:25 -0400 Subject: [PATCH 04/32] incremental indexing git push --- main.py | 208 +++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 182 insertions(+), 26 deletions(-) diff --git a/main.py b/main.py index 4718814..4a45b2d 100644 --- a/main.py +++ b/main.py @@ -1,3 +1,4 @@ +import hashlib import logging import sys import time @@ -69,6 +70,9 @@ def _emit_access_log(response): SEMANTIC_ENABLED = os.environ.get("SEMANTIC_SEARCH_ENABLED", "").lower() in ("1", "true", "yes") SEMANTIC_FIELD = "hadithTextSemantic" +# Per-doc content hash stored alongside each document. An incremental reindex +# diffs incoming docs against this to skip re-embedding unchanged hadiths. +CONTENT_HASH_FIELD = "contentHash" INFERENCE_ENDPOINT = "openai-text-embedding" # RRF constants. k=60 is the value from the original Cormack et al. paper and # the ES default. RRF_WINDOW is the depth fetched from each retriever before @@ -123,14 +127,18 @@ def home(): def create_inference_endpoint(): """Create the OpenAI text-embedding inference endpoint used by the - semantic_text field. Deletes any existing endpoint with the same id so - re-indexing picks up dimension/model changes.""" + semantic_text field, only if it doesn't already exist. + + Kept stable across re-indexes: the alias swap builds a new index while the + old one keeps serving traffic, and both reference this endpoint by id — + force-deleting it mid-reindex would break the live index's semantic field. + To change the model or dimensions, delete the endpoint manually so the + next reindex recreates it.""" try: - es_client.inference.delete( - task_type="text_embedding", - inference_id=INFERENCE_ENDPOINT, - force=True, + es_client.inference.get( + task_type="text_embedding", inference_id=INFERENCE_ENDPOINT ) + return except NotFoundError: pass es_client.options(request_timeout=60).inference.put( @@ -150,7 +158,46 @@ def create_inference_endpoint(): ) -def create_and_update_index(index_name, documents, fields_to_not_index): +def _content_hash(doc): + """Stable hash of a document's content. Covers every field except the id, + the hash itself, and the semantic field (a verbatim copy of hadithText, so + already captured). Any source change flips the hash and the doc is + re-indexed — which, for the semantic field, means re-embedded.""" + payload = { + k: v + for k, v in doc.items() + if k not in ("_id", CONTENT_HASH_FIELD, SEMANTIC_FIELD) + } + encoded = json.dumps(payload, sort_keys=True, default=str, ensure_ascii=False) + return hashlib.sha256(encoded.encode("utf-8")).hexdigest() + + +def _prepare_documents(documents): + """Assign each doc a deterministic _id and a content hash, in place. The + _id namespaces urn by language because the English and Arabic URN spaces + overlap; it lets a reindex match an incoming doc to its indexed copy.""" + for doc in documents: + doc["_id"] = f"{doc['lang']}:{doc['urn']}" + doc[CONTENT_HASH_FIELD] = _content_hash(doc) + return documents + + +def _index_supports_incremental(): + """True if the live index was built by the current indexer — detected by + the content-hash field in its mapping. An older index lacks it (and has + non-deterministic ids), so it must be rebuilt before incremental diffing + can work; until then a reindex would churn the whole corpus.""" + try: + mapping = es_client.indices.get_mapping(index=INDEX_NAME) + except NotFoundError: + return False + return all( + CONTENT_HASH_FIELD in index_def.get("mappings", {}).get("properties", {}) + for index_def in mapping.values() + ) and bool(mapping) + + +def create_and_update_index(documents, fields_to_not_index): settings = { "index": { "number_of_shards": 1, @@ -242,22 +289,116 @@ def create_and_update_index(index_name, documents, fields_to_not_index): "type": "semantic_text", "inference_id": INFERENCE_ENDPOINT, } - if es_client.indices.exists(index=index_name): - es_client.indices.delete(index=index_name) - es_client.indices.create(index=index_name, mappings=mappings, settings=settings) + mappings["properties"][CONTENT_HASH_FIELD] = {"type": "keyword", "index": False} + # Zero-downtime reindex: build into a fresh concrete index, then atomically + # repoint the INDEX_NAME alias at it. Searches keep hitting the old index + # until the swap, so there's no NotFoundError window. The previous + # delete-then-recreate caused ~2-3 min of downtime. + new_index = f"{INDEX_NAME}-{int(time.time())}" + es_client.indices.create(index=new_index, mappings=mappings, settings=settings) + + _prepare_documents(documents) + # When semantic_text is in the mapping each doc triggers an embedding API - # call during indexing, so the bulk request needs a longer timeout. + # call during indexing, so the bulk request needs a longer timeout. Indexing + # stays single-stream: OpenAI's tokens-per-minute quota is the ceiling for + # the embedding calls, so fanning out just trips 429s without going faster. bulk_timeout = 300 if SEMANTIC_ENABLED else 60 successCount, errors = helpers.bulk( es_client, documents, - index=index_name, + index=new_index, request_timeout=bulk_timeout, raise_on_error=False, raise_on_exception=False, ) + + # Don't swap an empty/failed build over a working index. + if successCount == 0: + es_client.indices.delete(index=new_index, ignore_unavailable=True) + return successCount, errors + + # Find whatever currently serves the alias so we can retire it after the swap. + old_indices = [] + if es_client.indices.exists_alias(name=INDEX_NAME): + old_indices = list(es_client.indices.get_alias(name=INDEX_NAME).keys()) + elif es_client.indices.exists(index=INDEX_NAME): + # Legacy concrete index occupying the alias name (pre-alias deploys). + # It must go before an alias of the same name can exist — one-time, + # brief gap on the first reindex after this change ships. + es_client.indices.delete(index=INDEX_NAME) + + # Atomic alias swap: add new + remove old in a single cluster action. + actions = [{"add": {"index": new_index, "alias": INDEX_NAME}}] + for old in old_indices: + actions.append({"remove": {"index": old, "alias": INDEX_NAME}}) + es_client.indices.update_aliases(actions=actions) + + for old in old_indices: + es_client.indices.delete(index=old, ignore_unavailable=True) + return successCount, errors + +def incremental_update_index(documents): + """Reindex by diffing against the live index instead of rebuilding it. + + Each incoming doc carries a content hash; we fetch the stored hashes from + the live index and only touch what changed: + - new / changed docs are re-indexed (and, for the semantic field, + re-embedded — the only OpenAI calls made) + - docs no longer in the source are deleted + - unchanged docs are left untouched + + Hadith text is near-static, so a typical run embeds a handful of docs + rather than the whole corpus — sidestepping the OpenAI rate limit a full + rebuild hits. Updates apply in place and atomically per doc, so there's no + downtime and no alias swap. A mapping/analysis change still needs a full + rebuild (use ?rebuild=true).""" + _prepare_documents(documents) + incoming = {doc["_id"]: doc for doc in documents} + + # Pull just {_id: contentHash} for every indexed doc — no _source bodies, + # so this stays cheap even for the full corpus. + existing_hashes = {} + for hit in helpers.scan( + es_client, + index=INDEX_NAME, + query={"_source": [CONTENT_HASH_FIELD]}, + size=2000, + ): + existing_hashes[hit["_id"]] = hit["_source"].get(CONTENT_HASH_FIELD) + + to_index = [ + doc + for doc_id, doc in incoming.items() + if existing_hashes.get(doc_id) != doc[CONTENT_HASH_FIELD] + ] + to_delete = [doc_id for doc_id in existing_hashes if doc_id not in incoming] + + actions = list(to_index) + [ + {"_op_type": "delete", "_id": doc_id} for doc_id in to_delete + ] + success_count, errors = 0, [] + if actions: + bulk_timeout = 300 if SEMANTIC_ENABLED else 60 + success_count, errors = helpers.bulk( + es_client, + actions, + index=INDEX_NAME, + request_timeout=bulk_timeout, + raise_on_error=False, + raise_on_exception=False, + ) + return { + "indexed": len(to_index), + "deleted": len(to_delete), + "unchanged": len(incoming) - len(to_index), + "success_count": success_count, + "errors": errors, + } + + def get_suggest_query(suggest_field): return { "field": suggest_field, @@ -357,21 +498,36 @@ def index(): englishHadith["arabicGrade"] = matchingArabic["grade"] englishHadith["hadithNumber"] = matchingArabic["hadithNumber"] - indexingSuccessCount, indexingErrors = create_and_update_index( - INDEX_NAME, englishHadiths + arabicOnlyHadiths, ["urn", "matchingArabicURN", "lang"] - ) - connection.close() - return { - "all_hadith_index_results": { - "success_count": indexingSuccessCount, - "failed": json.dumps(indexingErrors), - }, - "arabic_only": { - "count": len(arabicOnlyHadiths), - }, - "timeInSeconds": time.time() - start - } + documents = englishHadiths + arabicOnlyHadiths + + # Full rebuild when explicitly asked (?rebuild=true — needed after a + # mapping/analysis change) or when there's no current-format index to diff + # against. Otherwise diff against the live index and touch only what changed. + rebuild = request.args.get("rebuild", "").lower() in ("1", "true", "yes") + if rebuild or not _index_supports_incremental(): + successCount, errors = create_and_update_index( + documents, ["urn", "matchingArabicURN", "lang"] + ) + result = { + "mode": "rebuild", + "success_count": successCount, + "failed": json.dumps(errors), + } + else: + stats = incremental_update_index(documents) + result = { + "mode": "incremental", + "indexed": stats["indexed"], + "deleted": stats["deleted"], + "unchanged": stats["unchanged"], + "success_count": stats["success_count"], + "failed": json.dumps(stats["errors"]), + } + + result["arabic_only"] = {"count": len(arabicOnlyHadiths)} + result["timeInSeconds"] = time.time() - start + return result @app.route("/index/status", methods=["GET"]) From 37a17b5395a6203dd8bbbba0fd78534a7cce122d Mon Sep 17 00:00:00 2001 From: yug <> Date: Fri, 15 May 2026 10:23:38 -0400 Subject: [PATCH 05/32] cleanup --- main.py | 90 +++++++++++++++++++++++++-------------------------------- 1 file changed, 40 insertions(+), 50 deletions(-) diff --git a/main.py b/main.py index 4a45b2d..16164d3 100644 --- a/main.py +++ b/main.py @@ -66,14 +66,23 @@ def _emit_access_log(response): request_timeout=10, ) +def _is_truthy(value): + """Parse an env var / query param flag the same way everywhere.""" + return (value or "").lower() in ("1", "true", "yes") + + INDEX_NAME = "english" -SEMANTIC_ENABLED = os.environ.get("SEMANTIC_SEARCH_ENABLED", "").lower() in ("1", "true", "yes") +SEMANTIC_ENABLED = _is_truthy(os.environ.get("SEMANTIC_SEARCH_ENABLED")) SEMANTIC_FIELD = "hadithTextSemantic" -# Per-doc content hash stored alongside each document. An incremental reindex -# diffs incoming docs against this to skip re-embedding unchanged hadiths. +# Per-doc content hash; an incremental reindex diffs against it. See _content_hash. CONTENT_HASH_FIELD = "contentHash" INFERENCE_ENDPOINT = "openai-text-embedding" +# helpers.bulk timeout. With semantic_text in the mapping each doc triggers an +# OpenAI embedding call during indexing, so the request needs far longer than a +# plain bulk. Indexing stays single-stream on purpose: OpenAI's tokens-per-minute +# quota is the ceiling, so fanning out across threads just trips 429s. +BULK_REQUEST_TIMEOUT = 300 if SEMANTIC_ENABLED else 60 # RRF constants. k=60 is the value from the original Cormack et al. paper and # the ES default. RRF_WINDOW is the depth fetched from each retriever before # fusion — bigger window = better recall at the tail, more cost per query. @@ -179,7 +188,20 @@ def _prepare_documents(documents): for doc in documents: doc["_id"] = f"{doc['lang']}:{doc['urn']}" doc[CONTENT_HASH_FIELD] = _content_hash(doc) - return documents + + +def _bulk_index(actions, index): + """helpers.bulk with the project's standard flags: a timeout long enough + for the semantic_text embedding calls, and errors collected per-doc rather + than raised so a partial failure still reports.""" + return helpers.bulk( + es_client, + actions, + index=index, + request_timeout=BULK_REQUEST_TIMEOUT, + raise_on_error=False, + raise_on_exception=False, + ) def _index_supports_incremental(): @@ -191,10 +213,12 @@ def _index_supports_incremental(): mapping = es_client.indices.get_mapping(index=INDEX_NAME) except NotFoundError: return False + if not mapping: + return False return all( CONTENT_HASH_FIELD in index_def.get("mappings", {}).get("properties", {}) for index_def in mapping.values() - ) and bool(mapping) + ) def create_and_update_index(documents, fields_to_not_index): @@ -298,25 +322,13 @@ def create_and_update_index(documents, fields_to_not_index): es_client.indices.create(index=new_index, mappings=mappings, settings=settings) _prepare_documents(documents) - - # When semantic_text is in the mapping each doc triggers an embedding API - # call during indexing, so the bulk request needs a longer timeout. Indexing - # stays single-stream: OpenAI's tokens-per-minute quota is the ceiling for - # the embedding calls, so fanning out just trips 429s without going faster. - bulk_timeout = 300 if SEMANTIC_ENABLED else 60 - successCount, errors = helpers.bulk( - es_client, - documents, - index=new_index, - request_timeout=bulk_timeout, - raise_on_error=False, - raise_on_exception=False, - ) + successCount, errors = _bulk_index(documents, new_index) + result = {"mode": "rebuild", "success_count": successCount, "errors": errors} # Don't swap an empty/failed build over a working index. if successCount == 0: es_client.indices.delete(index=new_index, ignore_unavailable=True) - return successCount, errors + return result # Find whatever currently serves the alias so we can retire it after the swap. old_indices = [] @@ -337,7 +349,7 @@ def create_and_update_index(documents, fields_to_not_index): for old in old_indices: es_client.indices.delete(index=old, ignore_unavailable=True) - return successCount, errors + return result def incremental_update_index(documents): @@ -376,21 +388,14 @@ def incremental_update_index(documents): ] to_delete = [doc_id for doc_id in existing_hashes if doc_id not in incoming] - actions = list(to_index) + [ + actions = to_index + [ {"_op_type": "delete", "_id": doc_id} for doc_id in to_delete ] success_count, errors = 0, [] if actions: - bulk_timeout = 300 if SEMANTIC_ENABLED else 60 - success_count, errors = helpers.bulk( - es_client, - actions, - index=INDEX_NAME, - request_timeout=bulk_timeout, - raise_on_error=False, - raise_on_exception=False, - ) + success_count, errors = _bulk_index(actions, INDEX_NAME) return { + "mode": "incremental", "indexed": len(to_index), "deleted": len(to_delete), "unchanged": len(incoming) - len(to_index), @@ -504,27 +509,12 @@ def index(): # Full rebuild when explicitly asked (?rebuild=true — needed after a # mapping/analysis change) or when there's no current-format index to diff # against. Otherwise diff against the live index and touch only what changed. - rebuild = request.args.get("rebuild", "").lower() in ("1", "true", "yes") - if rebuild or not _index_supports_incremental(): - successCount, errors = create_and_update_index( - documents, ["urn", "matchingArabicURN", "lang"] - ) - result = { - "mode": "rebuild", - "success_count": successCount, - "failed": json.dumps(errors), - } + if _is_truthy(request.args.get("rebuild")) or not _index_supports_incremental(): + result = create_and_update_index(documents, ["urn", "matchingArabicURN", "lang"]) else: - stats = incremental_update_index(documents) - result = { - "mode": "incremental", - "indexed": stats["indexed"], - "deleted": stats["deleted"], - "unchanged": stats["unchanged"], - "success_count": stats["success_count"], - "failed": json.dumps(stats["errors"]), - } + result = incremental_update_index(documents) + result["failed"] = json.dumps(result.pop("errors")) result["arabic_only"] = {"count": len(arabicOnlyHadiths)} result["timeInSeconds"] = time.time() - start return result From 7b4a97069ec5bae3f1b7c6863c3d88c8ecbcf2bd Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Tue, 19 May 2026 11:49:50 -0500 Subject: [PATCH 06/32] Add multi-index semantic search architecture with testbed UI - Rewrites main.py with one ES index per embedding model (openai-small-en, openai-small-multi, nomic, mxbai, embeddinggemma) for independent indexing - Adds incremental indexing, multilingual support (openai-small-multi indexes all 180k Arabic + English docs), and lexical-only index mode - Adds testbed search UI (templates/search.html) with mode/model toggle pills and side-by-side comparison vs lexical baseline - Updates docker-compose.yml (port 5001, tei-gemma profile) and .env.sample Co-Authored-By: Claude Sonnet 4.6 --- .env.sample | 10 +- docker-compose.override.yml | 4 + docker-compose.yml | 13 +- main.py | 808 ++++++++++++++++-------------------- templates/search.html | 286 +++++++++++++ 5 files changed, 675 insertions(+), 446 deletions(-) create mode 100644 docker-compose.override.yml create mode 100644 templates/search.html diff --git a/.env.sample b/.env.sample index 96603a6..02300b1 100644 --- a/.env.sample +++ b/.env.sample @@ -15,9 +15,17 @@ ES_STACK_VERSION=8.16.0 INDEXING_PASSWORD=index123 -SEMANTIC_SEARCH_ENABLED=false +OPENAI_ENABLED=false OPENAI_API_KEY=your-api-key-here +# Ollama-backed models — set OLLAMA_URL if Ollama isn't at the Docker default +# OLLAMA_URL=http://host.docker.internal:11434 +NOMIC_ENABLED=false +MXBAI_ENABLED=false + +# embeddinggemma-300m via HuggingFace TEI — start with: docker compose --profile embeddinggemma up -d tei-gemma +EMBEDDINGGEMMA_ENABLED=false + # Grafana Cloud — logs (Loki) # Get from: grafana.com → your stack → Loki card → "Send Logs" # Token: My Account → Access Policies → token with logs:write scope diff --git a/docker-compose.override.yml b/docker-compose.override.yml new file mode 100644 index 0000000..f12a6e4 --- /dev/null +++ b/docker-compose.override.yml @@ -0,0 +1,4 @@ +services: + web: + ports: + - "5001:5000" diff --git a/docker-compose.yml b/docker-compose.yml index bb16de9..d3bf5cf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: volumes: - .:/code ports: - - "5000:5000" + - "5001:5000" env_file: - .env extra_hosts: @@ -72,6 +72,16 @@ services: - GC_PROM_USER=${GC_PROM_USER} - GC_PROM_PASSWORD=${GC_PROM_PASSWORD} - DEPLOY_ENV=${DEPLOY_ENV:-local} + tei-gemma: + image: ghcr.io/huggingface/text-embeddings-inference:cpu-1.5 + container_name: tei-gemma + # Downloads google/embeddinggemma-300m on first start (~600 MB); subsequent + # starts are instant because the model is cached in the tei-model-cache volume. + command: --model-id google/embeddinggemma-300m --port 80 + volumes: + - tei-model-cache:/data + profiles: + - embeddinggemma networks: default: @@ -82,4 +92,5 @@ networks: volumes: es-logs: + tei-model-cache: diff --git a/main.py b/main.py index 16164d3..b70159d 100644 --- a/main.py +++ b/main.py @@ -3,12 +3,11 @@ import sys import time import uuid -from flask import Flask, request, jsonify, g +from flask import Flask, request, jsonify, g, render_template from werkzeug.exceptions import HTTPException import pymysql import os from dotenv import load_dotenv -import math import json from elasticsearch import Elasticsearch, helpers, BadRequestError, NotFoundError @@ -56,6 +55,8 @@ def _emit_access_log(response): ) response.headers["X-Request-Id"] = g.request_id return response + + es_auth = ("elastic", os.environ.get("ELASTIC_PASSWORD")) es_base_url = f"http://elasticsearch:{os.environ.get('ES_PORT')}" es_client = Elasticsearch( @@ -66,40 +67,105 @@ def _emit_access_log(response): request_timeout=10, ) + def _is_truthy(value): - """Parse an env var / query param flag the same way everywhere.""" return (value or "").lower() in ("1", "true", "yes") -INDEX_NAME = "english" +# Pure lexical index — no embeddings, fast to rebuild. +LEXICAL_INDEX = "english-lexical" + +# Each model gets its own ES index so you can index and switch independently. +# The semantic field is always called "semantic_text" inside each model's index. +SEMANTIC_FIELD = "semantic_text" + +_OLLAMA_URL = os.environ.get("OLLAMA_URL", "http://host.docker.internal:11434") + +EMBEDDING_MODELS = { + "openai-small-en": { + "label": "OpenAI small (English)", + "index": "english-openai-small", + "inference_id": "openai-text-embedding-3-small", # shared with multilingual variant + "enabled": _is_truthy(os.environ.get("OPENAI_ENABLED")), + "multilingual": False, + "service": "openai", + "service_settings": { + "api_key": os.environ.get("OPENAI_API_KEY"), + "model_id": "text-embedding-3-small", + "similarity": "cosine", + }, + }, + "openai-small-multi": { + "label": "OpenAI small (Multilingual)", + "index": "multilingual-openai-small", + "inference_id": "openai-text-embedding-3-small", # shared with English variant + "enabled": _is_truthy(os.environ.get("OPENAI_ENABLED")), + "multilingual": True, # indexes all Arabic + all English + "service": "openai", + "service_settings": { + "api_key": os.environ.get("OPENAI_API_KEY"), + "model_id": "text-embedding-3-small", + # cosine safer than dot_product for OpenAI — see elastic/elasticsearch#122878 + "similarity": "cosine", + }, + }, + "nomic": { + "label": "nomic-embed-text", + "index": "english-nomic", + "inference_id": "nomic-embed-text", + "enabled": _is_truthy(os.environ.get("NOMIC_ENABLED")), + "multilingual": False, # English-only, replicates colleague's original approach + # Ollama exposes an OpenAI-compatible API — use that since ES 8.16 has no native ollama service. + "service": "openai", + "service_settings": { + "api_key": "ollama", # Ollama doesn't require auth; ES requires a non-empty value + "url": f"{_OLLAMA_URL}/v1/embeddings", + "model_id": "nomic-embed-text", + "similarity": "cosine", + }, + }, + "mxbai": { + "label": "mxbai-embed-large", + "index": "english-mxbai", + "inference_id": "mxbai-embed-large", + "enabled": _is_truthy(os.environ.get("MXBAI_ENABLED")), + "multilingual": False, # English-only, replicates colleague's original approach + # Ollama exposes an OpenAI-compatible API — use that since ES 8.16 has no native ollama service. + "service": "openai", + "service_settings": { + "api_key": "ollama", + "url": f"{_OLLAMA_URL}/v1/embeddings", + "model_id": "mxbai-embed-large", + "similarity": "cosine", + }, + }, + "embeddinggemma": { + "label": "embeddinggemma-300m", + "index": "english-embeddinggemma", + "inference_id": "embeddinggemma-300m", + "enabled": _is_truthy(os.environ.get("EMBEDDINGGEMMA_ENABLED")), + # Served locally by the tei-gemma Docker service (text-embeddings-inference). + "service": "hugging_face", + "service_settings": { + "api_key": "tei-local", # TEI doesn't enforce auth; ES requires a non-empty value + "url": "http://tei-gemma/", + "similarity": "cosine", + }, + }, +} + +_ENABLED_MODELS = {k: v for k, v in EMBEDDING_MODELS.items() if v["enabled"]} +SEMANTIC_ENABLED = bool(_ENABLED_MODELS) -SEMANTIC_ENABLED = _is_truthy(os.environ.get("SEMANTIC_SEARCH_ENABLED")) -SEMANTIC_FIELD = "hadithTextSemantic" -# Per-doc content hash; an incremental reindex diffs against it. See _content_hash. -CONTENT_HASH_FIELD = "contentHash" -INFERENCE_ENDPOINT = "openai-text-embedding" -# helpers.bulk timeout. With semantic_text in the mapping each doc triggers an -# OpenAI embedding call during indexing, so the request needs far longer than a -# plain bulk. Indexing stays single-stream on purpose: OpenAI's tokens-per-minute -# quota is the ceiling, so fanning out across threads just trips 429s. +# Bulk timeout — embedding calls during indexing are slow. BULK_REQUEST_TIMEOUT = 300 if SEMANTIC_ENABLED else 60 -# RRF constants. k=60 is the value from the original Cormack et al. paper and -# the ES default. RRF_WINDOW is the depth fetched from each retriever before -# fusion — bigger window = better recall at the tail, more cost per query. + RRF_K = 60 RRF_WINDOW = 100 -# Search modes. SEMANTIC_MODES are the ones needing the inference endpoint — -# kept as one tuple so the "needs the semantic backend" rule has a single -# source of truth across mode resolution and request dispatch. SEARCH_MODES = ("lexical", "hybrid", "semantic") SEMANTIC_MODES = ("hybrid", "semantic") -# Tiebreaker boosts added on top of the text-similarity score so canonical -# collections rise when relevance is otherwise comparable. Sized to swing -# rankings when BM25 scores are within a few points (e.g. the same hadith -# narrated across collections), but still let a clearly stronger text match -# from a less canonical collection win. COLLECTION_BOOSTS = [ ("bukhari", 5.0), ("muslim", 4.8), @@ -115,119 +181,101 @@ def _is_truthy(value): ("riyadussalihin", 2.5), ] + @app.errorhandler(Exception) def _handle_unexpected(exc): if isinstance(exc, HTTPException): return exc access_log.exception( "unhandled_exception", - extra={ - "request_id": getattr(g, "request_id", None), - "exception": type(exc).__name__, - }, + extra={"request_id": getattr(g, "request_id", None), "exception": type(exc).__name__}, ) return jsonify({"error": "internal server error"}), 500 @app.route("/", methods=["GET"]) def home(): - return "

Welcome to sunnah.com search api.

" - - -def create_inference_endpoint(): - """Create the OpenAI text-embedding inference endpoint used by the - semantic_text field, only if it doesn't already exist. - - Kept stable across re-indexes: the alias swap builds a new index while the - old one keeps serving traffic, and both reference this endpoint by id — - force-deleting it mid-reindex would break the live index's semantic field. - To change the model or dimensions, delete the endpoint manually so the - next reindex recreates it.""" + return render_template("search.html") + + +@app.route("/api/models", methods=["GET"]) +def get_models(): + """Return model config + whether each model's index currently exists in ES.""" + out = {} + for key, model in EMBEDDING_MODELS.items(): + indexed = False + if model["enabled"]: + try: + es_client.indices.exists_alias(name=model["index"]) or \ + es_client.indices.exists(index=model["index"]) + result = es_client.search(index=model["index"], size=0, track_total_hits=True) + indexed = result["hits"]["total"]["value"] > 0 + except Exception: + pass + out[key] = {"label": model["label"], "enabled": model["enabled"], "indexed": indexed} + return jsonify(out) + + +# ── Index management ────────────────────────────────────────────────────────── + +def _ensure_inference_endpoint(model): try: - es_client.inference.get( - task_type="text_embedding", inference_id=INFERENCE_ENDPOINT - ) + es_client.inference.get(task_type="text_embedding", inference_id=model["inference_id"]) return except NotFoundError: pass es_client.options(request_timeout=60).inference.put( task_type="text_embedding", - inference_id=INFERENCE_ENDPOINT, + inference_id=model["inference_id"], inference_config={ - "service": "openai", - "service_settings": { - "api_key": os.environ.get("OPENAI_API_KEY"), - "model_id": "text-embedding-3-small", - # OpenAI vectors are mathematically unit-length but drift past - # ES's strict epsilon for a small fraction of inputs, breaking - # the default dot_product similarity. See elastic/elasticsearch#122878. - "similarity": "cosine", - }, + "service": model["service"], + "service_settings": model["service_settings"], }, ) def _content_hash(doc): - """Stable hash of a document's content. Covers every field except the id, - the hash itself, and the semantic field (a verbatim copy of hadithText, so - already captured). Any source change flips the hash and the doc is - re-indexed — which, for the semantic field, means re-embedded.""" - payload = { - k: v - for k, v in doc.items() - if k not in ("_id", CONTENT_HASH_FIELD, SEMANTIC_FIELD) - } + payload = {k: v for k, v in doc.items() if k not in ("_id", "contentHash", SEMANTIC_FIELD)} encoded = json.dumps(payload, sort_keys=True, default=str, ensure_ascii=False) return hashlib.sha256(encoded.encode("utf-8")).hexdigest() def _prepare_documents(documents): - """Assign each doc a deterministic _id and a content hash, in place. The - _id namespaces urn by language because the English and Arabic URN spaces - overlap; it lets a reindex match an incoming doc to its indexed copy.""" for doc in documents: doc["_id"] = f"{doc['lang']}:{doc['urn']}" - doc[CONTENT_HASH_FIELD] = _content_hash(doc) + doc["contentHash"] = _content_hash(doc) -def _bulk_index(actions, index): - """helpers.bulk with the project's standard flags: a timeout long enough - for the semantic_text embedding calls, and errors collected per-doc rather - than raised so a partial failure still reports.""" +def _bulk_index(actions, index, timeout=None): return helpers.bulk( es_client, actions, index=index, - request_timeout=BULK_REQUEST_TIMEOUT, + request_timeout=timeout or BULK_REQUEST_TIMEOUT, raise_on_error=False, raise_on_exception=False, ) -def _index_supports_incremental(): - """True if the live index was built by the current indexer — detected by - the content-hash field in its mapping. An older index lacks it (and has - non-deterministic ids), so it must be rebuilt before incremental diffing - can work; until then a reindex would churn the whole corpus.""" +def _index_is_incremental(index_name): + """True if the index has a contentHash field (built by this indexer).""" try: - mapping = es_client.indices.get_mapping(index=INDEX_NAME) + mapping = es_client.indices.get_mapping(index=index_name) except NotFoundError: return False - if not mapping: - return False return all( - CONTENT_HASH_FIELD in index_def.get("mappings", {}).get("properties", {}) - for index_def in mapping.values() + "contentHash" in idx.get("mappings", {}).get("properties", {}) + for idx in mapping.values() ) -def create_and_update_index(documents, fields_to_not_index): - settings = { +def _make_settings(): + return { "index": { "number_of_shards": 1, - "search.slowlog.threshold.query.warn": "1s", - "search.slowlog.threshold.query.info": "500ms", - "search.slowlog.threshold.fetch.warn": "500ms", + "search.slowlog.threshold.query.warn": "1s", + "search.slowlog.threshold.query.info": "500ms", + "search.slowlog.threshold.fetch.warn": "500ms", "analysis": { "analyzer": { "trigram": { @@ -240,24 +288,13 @@ def create_and_update_index(documents, fields_to_not_index): "type": "custom", "tokenizer": "standard", "char_filter": ["html_strip", "shortcode_strip"], - "filter": [ - "lowercase", - "stop", - "synonyms_filter", - "stemmer", - ], + "filter": ["lowercase", "stop", "synonyms_filter", "stemmer"], }, "custom_arabic": { - "tokenizer": "standard", + "tokenizer": "standard", "char_filter": ["html_strip", "shortcode_strip"], - "filter": [ - "lowercase", - "decimal_digit", - "arabic_normalization", - "arabic_stemmer", - "shingle" - ] - } + "filter": ["lowercase", "decimal_digit", "arabic_normalization", "arabic_stemmer", "shingle"], + }, }, "char_filter": { "shortcode_strip": { @@ -267,191 +304,98 @@ def create_and_update_index(documents, fields_to_not_index): } }, "filter": { - # 2-3 word shingles for better suggestions - "shingle": { - "type": "shingle", - "min_shingle_size": 2, - "max_shingle_size": 3, - "output_unigrams": True - }, - "synonyms_filter": { - "type": "synonym", - "lenient": True, - "synonyms_path": "synonyms.txt", - }, - "arabic_stemmer": { - "type": "stemmer", - "language": "arabic" - }, - "arabic_stop": { - "type": "stop", - "stopwords": "_arabic_" - }, + "shingle": {"type": "shingle", "min_shingle_size": 2, "max_shingle_size": 3, "output_unigrams": True}, + "synonyms_filter": {"type": "synonym", "lenient": True, "synonyms_path": "synonyms.txt"}, + "arabic_stemmer": {"type": "stemmer", "language": "arabic"}, + "arabic_stop": {"type": "stop", "stopwords": "_arabic_"}, }, }, } } - mappings = { - "properties": { - field: {"type": "text", "index": False} for field in fields_to_not_index - } - | - # Configurating field for suggestions - { - "hadithText": { - "type": "text", - "analyzer": "synonym", - "fields": { - "trigram": {"type": "text", "analyzer": "trigram"}, - }, - } - } - | {"arabicText": {"type": "text", "analyzer": "custom_arabic"}} + + +def _make_mappings(non_indexed_fields, model=None): + props = {field: {"type": "text", "index": False} for field in non_indexed_fields} + props["hadithText"] = { + "type": "text", + "analyzer": "synonym", + "fields": {"trigram": {"type": "text", "analyzer": "trigram"}}, } - if SEMANTIC_ENABLED: - mappings["properties"][SEMANTIC_FIELD] = { + props["arabicText"] = {"type": "text", "analyzer": "custom_arabic"} + props["contentHash"] = {"type": "keyword", "index": False} + if model: + props[SEMANTIC_FIELD] = { "type": "semantic_text", - "inference_id": INFERENCE_ENDPOINT, + "inference_id": model["inference_id"], } - mappings["properties"][CONTENT_HASH_FIELD] = {"type": "keyword", "index": False} - # Zero-downtime reindex: build into a fresh concrete index, then atomically - # repoint the INDEX_NAME alias at it. Searches keep hitting the old index - # until the swap, so there's no NotFoundError window. The previous - # delete-then-recreate caused ~2-3 min of downtime. - new_index = f"{INDEX_NAME}-{int(time.time())}" - es_client.indices.create(index=new_index, mappings=mappings, settings=settings) - - _prepare_documents(documents) - successCount, errors = _bulk_index(documents, new_index) - result = {"mode": "rebuild", "success_count": successCount, "errors": errors} - - # Don't swap an empty/failed build over a working index. - if successCount == 0: + return {"properties": props} + + +def _rebuild_index(index_name, documents, non_indexed_fields, model=None): + new_index = f"{index_name}-{int(time.time())}" + timeout = BULK_REQUEST_TIMEOUT if model else 60 + es_client.indices.create( + index=new_index, + mappings=_make_mappings(non_indexed_fields, model), + settings=_make_settings(), + ) + success, errors = _bulk_index(documents, new_index, timeout=timeout) + if success == 0: es_client.indices.delete(index=new_index, ignore_unavailable=True) - return result + return {"mode": "rebuild", "success_count": 0, "errors": errors} - # Find whatever currently serves the alias so we can retire it after the swap. old_indices = [] - if es_client.indices.exists_alias(name=INDEX_NAME): - old_indices = list(es_client.indices.get_alias(name=INDEX_NAME).keys()) - elif es_client.indices.exists(index=INDEX_NAME): - # Legacy concrete index occupying the alias name (pre-alias deploys). - # It must go before an alias of the same name can exist — one-time, - # brief gap on the first reindex after this change ships. - es_client.indices.delete(index=INDEX_NAME) - - # Atomic alias swap: add new + remove old in a single cluster action. - actions = [{"add": {"index": new_index, "alias": INDEX_NAME}}] + if es_client.indices.exists_alias(name=index_name): + old_indices = list(es_client.indices.get_alias(name=index_name).keys()) + elif es_client.indices.exists(index=index_name): + es_client.indices.delete(index=index_name) + + actions = [{"add": {"index": new_index, "alias": index_name}}] for old in old_indices: - actions.append({"remove": {"index": old, "alias": INDEX_NAME}}) + actions.append({"remove": {"index": old, "alias": index_name}}) es_client.indices.update_aliases(actions=actions) - for old in old_indices: es_client.indices.delete(index=old, ignore_unavailable=True) - return result - - -def incremental_update_index(documents): - """Reindex by diffing against the live index instead of rebuilding it. + return {"mode": "rebuild", "success_count": success, "errors": errors} - Each incoming doc carries a content hash; we fetch the stored hashes from - the live index and only touch what changed: - - new / changed docs are re-indexed (and, for the semantic field, - re-embedded — the only OpenAI calls made) - - docs no longer in the source are deleted - - unchanged docs are left untouched - Hadith text is near-static, so a typical run embeds a handful of docs - rather than the whole corpus — sidestepping the OpenAI rate limit a full - rebuild hits. Updates apply in place and atomically per doc, so there's no - downtime and no alias swap. A mapping/analysis change still needs a full - rebuild (use ?rebuild=true).""" - _prepare_documents(documents) +def _incremental_index(index_name, documents, model=None): incoming = {doc["_id"]: doc for doc in documents} - - # Pull just {_id: contentHash} for every indexed doc — no _source bodies, - # so this stays cheap even for the full corpus. existing_hashes = {} for hit in helpers.scan( - es_client, - index=INDEX_NAME, - query={"_source": [CONTENT_HASH_FIELD]}, - size=2000, + es_client, index=index_name, query={"_source": ["contentHash"]}, size=2000 ): - existing_hashes[hit["_id"]] = hit["_source"].get(CONTENT_HASH_FIELD) + existing_hashes[hit["_id"]] = hit["_source"].get("contentHash") - to_index = [ - doc - for doc_id, doc in incoming.items() - if existing_hashes.get(doc_id) != doc[CONTENT_HASH_FIELD] - ] + to_index = [doc for doc_id, doc in incoming.items() + if existing_hashes.get(doc_id) != doc["contentHash"]] to_delete = [doc_id for doc_id in existing_hashes if doc_id not in incoming] + actions = to_index + [{"_op_type": "delete", "_id": did} for did in to_delete] - actions = to_index + [ - {"_op_type": "delete", "_id": doc_id} for doc_id in to_delete - ] - success_count, errors = 0, [] + timeout = BULK_REQUEST_TIMEOUT if model else 60 + success, errors = 0, [] if actions: - success_count, errors = _bulk_index(actions, INDEX_NAME) + success, errors = _bulk_index(actions, index_name, timeout=timeout) + return { "mode": "incremental", "indexed": len(to_index), "deleted": len(to_delete), "unchanged": len(incoming) - len(to_index), - "success_count": success_count, + "success_count": success, "errors": errors, } -def get_suggest_query(suggest_field): - return { - "field": suggest_field, - "size": 3, - "gram_size": 3, - "direct_generator": [ - {"field": suggest_field, "suggest_mode": "missing"} - ], - "highlight": {"pre_tag": "", "post_tag": ""}, - "collate": { - "query": { - "source": { - "match": {suggest_field: "{{suggestion}}"} - } - }, - # Only return suggestions with a query match - "prune": False, - }, - } - - -def get_suggest_block(query): - """Phrase-suggester ("did you mean") block covering English + Arabic text.""" - return { - "text": query, - "english": {"phrase": get_suggest_query("hadithText.trigram")}, - "arabic": {"phrase": get_suggest_query("arabicText")}, - } - - -def build_semantic_query(query, filter_clauses): - """bool query matching the inference-backed semantic_text field.""" - return { - "bool": { - "filter": filter_clauses, - "must": [{"semantic": {"field": SEMANTIC_FIELD, "query": query}}], - } - } +def _index_one(index_name, documents, non_indexed_fields, model=None, force_rebuild=False): + """Rebuild or incrementally update a single index.""" + if force_rebuild or not _index_is_incremental(index_name): + return _rebuild_index(index_name, documents, non_indexed_fields, model) + return _incremental_index(index_name, documents, model) -def malformed_query_response(exc): - """400 for a query ES rejected. Logs the detail but doesn't leak ES - internals (field paths, index names) to the client.""" - access_log.warning( - "malformed_query", - extra={"request_id": getattr(g, "request_id", None), "detail": str(exc)}, - ) - return jsonify({"error": "malformed query"}), 400 +# ── Routes ──────────────────────────────────────────────────────────────────── @app.route("/index", methods=["GET"]) def index(): @@ -459,8 +403,8 @@ def index(): if request.args.get("password") != os.environ.get("INDEXING_PASSWORD"): return "Must provide valid password to index", 401 - if SEMANTIC_ENABLED: - create_inference_endpoint() + target_model = request.args.get("model") # index only this model when specified + force_rebuild = _is_truthy(request.args.get("rebuild")) connection = pymysql.connect( host=os.environ.get("MYSQL_HOST"), @@ -469,162 +413,175 @@ def index(): database=os.environ.get("MYSQL_DATABASE"), ) cursor = connection.cursor(pymysql.cursors.DictCursor) - # Arabic Hadiths cursor.execute( - """SELECT arabicURN as urn, collection, hadithNumber, hadithText as arabicText, + """SELECT arabicURN as urn, collection, hadithNumber, hadithText as arabicText, matchingEnglishURN, "ar" as lang, grade1 as grade FROM ArabicHadithTable""" ) arabicHadiths = cursor.fetchall() - arabicOnlyHadiths = [] - matchingArabicHadiths = {} - for arabicHadith in arabicHadiths: - if arabicHadith["matchingEnglishURN"] == 0: - arabicOnlyHadiths.append(arabicHadith) + arabicOnlyHadiths, matchingArabicHadiths = [], {} + for h in arabicHadiths: + if h["matchingEnglishURN"] == 0: + arabicOnlyHadiths.append(h) else: - matchingArabicHadiths[arabicHadith["matchingEnglishURN"]] = arabicHadith - + matchingArabicHadiths[h["matchingEnglishURN"]] = h - # English Hadiths cursor.execute( - """SELECT englishURN as urn, collection, hadithText, + """SELECT englishURN as urn, collection, hadithText, matchingArabicURN, "en" as lang, grade1 as grade FROM EnglishHadithTable""" ) englishHadiths = cursor.fetchall() + for h in englishHadiths: + if h["urn"] in matchingArabicHadiths: + ar = matchingArabicHadiths[h["urn"]] + h["arabicText"] = ar["arabicText"] + h["arabicGrade"] = ar["grade"] + h["hadithNumber"] = ar["hadithNumber"] - # Add arabic text and hadithNumber to english hadith - for englishHadith in englishHadiths: - if SEMANTIC_ENABLED: - englishHadith[SEMANTIC_FIELD] = englishHadith["hadithText"] - if englishHadith["urn"] not in matchingArabicHadiths: - continue - matchingArabic = matchingArabicHadiths[englishHadith["urn"]] - englishHadith["arabicText"] = matchingArabic["arabicText"] - englishHadith["arabicGrade"] = matchingArabic["grade"] - englishHadith["hadithNumber"] = matchingArabic["hadithNumber"] - connection.close() - documents = englishHadiths + arabicOnlyHadiths - # Full rebuild when explicitly asked (?rebuild=true — needed after a - # mapping/analysis change) or when there's no current-format index to diff - # against. Otherwise diff against the live index and touch only what changed. - if _is_truthy(request.args.get("rebuild")) or not _index_supports_incremental(): - result = create_and_update_index(documents, ["urn", "matchingArabicURN", "lang"]) - else: - result = incremental_update_index(documents) + non_indexed = ["urn", "matchingArabicURN", "lang"] + + # Prepare IDs and content hashes. arabicHadiths is a superset of arabicOnlyHadiths + # (same dict objects), so preparing arabicHadiths covers both. + _prepare_documents(arabicHadiths) + _prepare_documents(englishHadiths) + + # Lexical index: English + Arabic-only (avoids duplicate hits for paired hadiths). + lexical_docs = englishHadiths + arabicOnlyHadiths + + # Semantic index: full multilingual corpus — every Arabic doc gets its Arabic text + # embedded, every English doc gets its English text embedded. This lets a multilingual + # model like text-embedding-3-small retrieve across both languages from one index. + results = {} + + # Lexical index — built when no model is specified, or when model=lexical. + if not target_model or target_model == "lexical": + results["lexical"] = _index_one(LEXICAL_INDEX, lexical_docs, non_indexed, + model=None, force_rebuild=force_rebuild) + + # Model indexes — skip entirely when model=lexical. + models_to_index = ( + {} + if target_model == "lexical" + else {target_model: _ENABLED_MODELS[target_model]} + if target_model and target_model in _ENABLED_MODELS + else _ENABLED_MODELS + ) + for model_key, model in models_to_index.items(): + _ensure_inference_endpoint(model) + if model.get("multilingual"): + # Full corpus: every Arabic doc embeds Arabic text, every English doc embeds English. + en_docs = [{**doc, SEMANTIC_FIELD: doc["hadithText"]} for doc in englishHadiths] + ar_docs = [{**doc, SEMANTIC_FIELD: doc["arabicText"]} for doc in arabicHadiths] + model_docs = en_docs + ar_docs + else: + # English-only — replicates colleague's original PR approach. + model_docs = [{**doc, SEMANTIC_FIELD: doc["hadithText"]} for doc in englishHadiths] + results[model_key] = _index_one( + model["index"], model_docs, non_indexed, model=model, force_rebuild=force_rebuild + ) + results[model_key]["failed"] = json.dumps(results[model_key].pop("errors")) + + if "lexical" in results: + results["lexical"]["failed"] = json.dumps(results["lexical"].pop("errors")) - result["failed"] = json.dumps(result.pop("errors")) - result["arabic_only"] = {"count": len(arabicOnlyHadiths)} - result["timeInSeconds"] = time.time() - start - return result + results["arabic_only_count"] = len(arabicOnlyHadiths) + results["timeInSeconds"] = round(time.time() - start, 1) + return jsonify(results) @app.route("/index/status", methods=["GET"]) def index_status(): - try: - result = es_client.search( - index=INDEX_NAME, - size=0, - track_total_hits=True, - aggs={"english": {"filter": {"exists": {"field": "hadithText"}}}}, - ) - except NotFoundError: - return {"indexed": False} + out = {} + for index_name in [LEXICAL_INDEX] + [m["index"] for m in EMBEDDING_MODELS.values()]: + try: + r = es_client.search(index=index_name, size=0, track_total_hits=True) + out[index_name] = {"indexed": True, "count": r["hits"]["total"]["value"]} + except NotFoundError: + out[index_name] = {"indexed": False} + return jsonify(out) - total = result["hits"]["total"]["value"] - english = result["aggregations"]["english"]["doc_count"] + +# ── Search helpers ──────────────────────────────────────────────────────────── + +def get_suggest_query(field): return { - "indexed": True, - "total_count": total, - "english_count": english, - "arabic_only_count": total - english, + "field": field, "size": 3, "gram_size": 3, + "direct_generator": [{"field": field, "suggest_mode": "missing"}], + "highlight": {"pre_tag": "", "post_tag": ""}, + "collate": {"query": {"source": {"match": {field: "{{suggestion}}"}}}, "prune": False}, } -def _rrf_merge(lexical_resp, semantic_resp, k, from_, size): - """Reciprocal rank fusion of two ES result sets. Each doc's fused score - is sum(1/(k+rank)) across retrievers it appears in; rank is 1-indexed.""" - scores = {} - hits_by_id = {} - for rank, h in enumerate(lexical_resp.get("hits", {}).get("hits", []), start=1): - doc_id = h["_id"] - scores[doc_id] = scores.get(doc_id, 0.0) + 1.0 / (k + rank) - # Lexical hits own the highlight slot — semantic queries don't produce one. - hits_by_id[doc_id] = h - for rank, h in enumerate(semantic_resp.get("hits", {}).get("hits", []), start=1): - doc_id = h["_id"] - scores[doc_id] = scores.get(doc_id, 0.0) + 1.0 / (k + rank) - hits_by_id.setdefault(doc_id, h) +def get_suggest_block(query): + return { + "text": query, + "english": {"phrase": get_suggest_query("hadithText.trigram")}, + "arabic": {"phrase": get_suggest_query("arabicText")}, + } - sorted_ids = sorted(scores, key=scores.get, reverse=True) - merged_hits = [] - for doc_id in sorted_ids[from_ : from_ + size]: - h = dict(hits_by_id[doc_id]) - h["_score"] = scores[doc_id] - merged_hits.append(h) - # Lexical total is the keyword-match count and stays comparable to the - # non-semantic path; semantic returns top-N by similarity with no total. - total = lexical_resp.get("hits", {}).get( - "total", {"value": len(sorted_ids), "relation": "eq"} - ) - max_score = scores[sorted_ids[0]] if sorted_ids else None +def build_semantic_query(query, filter_clauses): return { - "took": lexical_resp.get("took", 0) + semantic_resp.get("took", 0), - "hits": {"total": total, "max_score": max_score, "hits": merged_hits}, - "suggest": lexical_resp.get("suggest"), + "bool": { + "filter": filter_clauses, + "must": [{"semantic": {"field": SEMANTIC_FIELD, "query": query}}], + } } def get_filter_from_args(args): filters = [] - collection = args.getlist("collection") - if collection: + if collection := args.getlist("collection"): filters.append({"terms": {"collection": collection}}) - - grade = args.getlist("grade") - if grade: + if grade := args.getlist("grade"): filters.append({"terms": {"grade": grade}}) return filters -def _resolve_search_mode(args): - """Resolve the ?mode= arg, falling a semantic-backed mode back to lexical - when SEMANTIC_SEARCH_ENABLED is off — so a deploy without an inference - endpoint degrades gracefully instead of erroring.""" + +def _resolve_mode(args): mode = args.get("mode", "lexical").lower() if mode not in SEARCH_MODES: mode = "lexical" if mode in SEMANTIC_MODES and not SEMANTIC_ENABLED: - return "lexical" + mode = "lexical" return mode + +def _resolve_model_key(args): + key = args.get("model") + if key in _ENABLED_MODELS: + return key + return next(iter(_ENABLED_MODELS), None) + + +def malformed_query_response(exc): + access_log.warning("malformed_query", extra={"request_id": getattr(g, "request_id", None), "detail": str(exc)}) + return jsonify({"error": "malformed query"}), 400 + + @app.route("//search", methods=["GET"]) def search(language): query = request.args.get("q") - filter = get_filter_from_args(request.args) - mode = _resolve_search_mode(request.args) + filters = get_filter_from_args(request.args) + mode = _resolve_mode(request.args) + model_key = _resolve_model_key(request.args) if mode in SEMANTIC_MODES else None + model = _ENABLED_MODELS.get(model_key) if model_key else None + search_index = model["index"] if model else LEXICAL_INDEX fields = ["hadithNumber^2", "hadithText", "arabicText", "collection^2"] - # TODO: Query string has a strict syntax and can cause failures when character like ":" appear in a search query. - # It's not recomended for search. But it's what allows us to do "AND collection:bukhari" or "AND hadithNumber:123" in the search bar - # Could be better to expose all those fields as filters instead and move away from query_string - def build_query(query_type): + def build_lexical(query_type): inner = {"query": query, "fields": fields} if query_type == "query_string": inner["type"] = "cross_fields" return { "function_score": { - "query": { - "bool": { - "filter": filter, - "must": [{query_type: inner}], - } - }, + "query": {"bool": {"filter": filters, "must": [{query_type: inner}]}}, "functions": [ - {"filter": {"term": {"collection": name}}, "weight": weight} - for name, weight in COLLECTION_BOOSTS + {"filter": {"term": {"collection": name}}, "weight": w} + for name, w in COLLECTION_BOOSTS ], "score_mode": "sum", "boost_mode": "sum", @@ -632,134 +589,72 @@ def build_query(query_type): } if mode in SEMANTIC_MODES: - access_log.info( - "semantic_search_mode", - extra={ - "request_id": getattr(g, "request_id", None), - "language": language, - "query": query, - "filters": filter, - "mode": mode, - }, - ) + access_log.info("semantic_search", extra={ + "request_id": getattr(g, "request_id", None), + "mode": mode, "model": model_key, "query": query, + }) if mode == "hybrid": - return _semantic_rrf_search(language, query, filter, build_query) - return _semantic_only_search(language, query, filter) + return _hybrid_search(search_index, query, filters, build_lexical, model_key) + return _semantic_search(search_index, query, filters) - search_kwargs = { - "index": language, + # Lexical path + kwargs = { + "index": LEXICAL_INDEX, "from_": request.args.get("from", 0), "size": request.args.get("size", 10), "_source": {"excludes": [SEMANTIC_FIELD]}, "highlight": {"number_of_fragments": 0, "fields": {"*": {}}}, "suggest": get_suggest_block(query), } - try: try: - result = es_client.search(query=build_query("query_string"), **search_kwargs) + result = es_client.search(query=build_lexical("query_string"), **kwargs) except BadRequestError: - # query_string syntax is strict; retry once with simple_query_string, which tolerates malformed input - result = es_client.search(query=build_query("simple_query_string"), **search_kwargs) + result = es_client.search(query=build_lexical("simple_query_string"), **kwargs) except BadRequestError as e: return malformed_query_response(e) - return jsonify(result.body) -def _semantic_rrf_search(language, query, filter_clauses, build_lexical_query): - """Run lexical + semantic searches in parallel via msearch and fuse with RRF. - Lexical query keeps the function_score collection boosts; semantic uses the - inference-backed semantic_text field. Fusion happens in Python to avoid the - Enterprise-licensed RRF retriever.""" +def _hybrid_search(search_index, query, filters, build_lexical, model_key): from_ = int(request.args.get("from", 0)) size = int(request.args.get("size", 10)) window = max(RRF_WINDOW, from_ + size) + common = {"from": 0, "size": window, "_source": {"excludes": [SEMANTIC_FIELD]}} - semantic_query = build_semantic_query(query, filter_clauses) - # The semantic_text field stores chunked embeddings + a copy of the input - # text; excluding it keeps responses lean. - common_body = { - "from": 0, - "size": window, - "_source": {"excludes": [SEMANTIC_FIELD]}, - } - # Highlight + suggest run on the lexical leg only — _rrf_merge keeps the - # lexical hit for any doc that appears in both legs, so a semantic-leg - # highlight would be computed and then discarded. - lexical_body = { - **common_body, - "highlight": {"number_of_fragments": 0, "fields": {"*": {}}}, - "suggest": get_suggest_block(query), - } - - def _run(query_type): - searches = [ - {"index": language}, - {**lexical_body, "query": build_lexical_query(query_type)}, - {"index": language}, - {**common_body, "query": semantic_query}, - ] - return es_client.options(request_timeout=130).msearch(searches=searches) + def _run(qt): + return es_client.options(request_timeout=130).msearch(searches=[ + {"index": LEXICAL_INDEX}, + {**common, "highlight": {"number_of_fragments": 0, "fields": {"*": {}}}, + "suggest": get_suggest_block(query), "query": build_lexical(qt)}, + {"index": search_index}, + {**common, "query": build_semantic_query(query, filters)}, + ]) try: result = _run("query_string") if result["responses"][0].get("error"): - # Only the lexical leg can hit query_string strictness; the - # semantic leg uses a `semantic` clause that doesn't parse the - # user's query as a syntax. result = _run("simple_query_string") except BadRequestError as e: return malformed_query_response(e) - lex_resp, sem_resp = result["responses"][0], result["responses"][1] - access_log.info( - "semantic_rrf_legs", - extra={ - "request_id": getattr(g, "request_id", None), - "lexical_hits": len(lex_resp.get("hits", {}).get("hits", [])), - "semantic_hits": len(sem_resp.get("hits", {}).get("hits", [])), - "lexical_took_ms": lex_resp.get("took"), - "semantic_took_ms": sem_resp.get("took"), - "window": window, - }, - ) - for resp, label in ((lex_resp, "lexical"), (sem_resp, "semantic")): + lex, sem = result["responses"][0], result["responses"][1] + for resp, label in ((lex, "lexical"), (sem, "semantic")): if resp.get("error"): - access_log.warning( - "rrf_subquery_failed", - extra={ - "request_id": getattr(g, "request_id", None), - "leg": label, - "error": resp["error"], - }, - ) + access_log.warning("rrf_leg_failed", extra={"leg": label, "error": resp["error"]}) return jsonify({"error": "malformed query"}), 400 - merged = _rrf_merge(lex_resp, sem_resp, RRF_K, from_, size) - access_log.info( - "semantic_rrf_merged", - extra={ - "request_id": getattr(g, "request_id", None), - "returned_hits": len(merged["hits"]["hits"]), - "max_score": merged["hits"]["max_score"], - "from": from_, - "size": size, - }, - ) + merged = _rrf_merge(lex, sem, RRF_K, from_, size) return jsonify(merged) -def _semantic_only_search(language, query, filter_clauses): - """Single semantic query against the semantic_text field — no lexical leg - and no RRF fusion, so collection boosts (a function_score wrapper) don't - apply and there's no highlight (a semantic_text field can't be highlighted).""" +def _semantic_search(search_index, query, filters): try: result = es_client.options(request_timeout=130).search( - index=language, + index=search_index, from_=int(request.args.get("from", 0)), size=int(request.args.get("size", 10)), - query=build_semantic_query(query, filter_clauses), + query=build_semantic_query(query, filters), _source={"excludes": [SEMANTIC_FIELD]}, suggest=get_suggest_block(query), ) @@ -768,5 +663,30 @@ def _semantic_only_search(language, query, filter_clauses): return jsonify(result.body) +def _rrf_merge(lex_resp, sem_resp, k, from_, size): + scores, hits_by_id = {}, {} + for rank, h in enumerate(lex_resp.get("hits", {}).get("hits", []), start=1): + scores[h["_id"]] = scores.get(h["_id"], 0.0) + 1.0 / (k + rank) + hits_by_id[h["_id"]] = h + for rank, h in enumerate(sem_resp.get("hits", {}).get("hits", []), start=1): + scores[h["_id"]] = scores.get(h["_id"], 0.0) + 1.0 / (k + rank) + hits_by_id.setdefault(h["_id"], h) + + sorted_ids = sorted(scores, key=scores.get, reverse=True) + merged = [] + for doc_id in sorted_ids[from_: from_ + size]: + h = dict(hits_by_id[doc_id]) + h["_score"] = scores[doc_id] + merged.append(h) + + total = lex_resp.get("hits", {}).get("total", {"value": len(sorted_ids), "relation": "eq"}) + max_score = scores[sorted_ids[0]] if sorted_ids else None + return { + "took": lex_resp.get("took", 0) + sem_resp.get("took", 0), + "hits": {"total": total, "max_score": max_score, "hits": merged}, + "suggest": lex_resp.get("suggest"), + } + + if __name__ == "__main__": app.run(host="0.0.0.0") diff --git a/templates/search.html b/templates/search.html new file mode 100644 index 0000000..38e05c1 --- /dev/null +++ b/templates/search.html @@ -0,0 +1,286 @@ + + + + + + Sunnah Search — Embedding Testbed + + + + +
+

Sunnah Search — Embedding Testbed

+
+ + +
+
+ +
+
+ + + + +
+ + + +
+ + +
+
+ +
+
+
+ +
+
+ + + + From 6f3a8f97dd206e64f4764a40741f030316f098f0 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Mon, 25 May 2026 05:39:53 -0500 Subject: [PATCH 07/32] testing scripts, results, reports and documentation --- .gitignore | 2 +- README.md | 216 ++- batch_search.py | 217 +++ docker-compose.yml | 2 - fetch_exact_knn.py | 102 ++ .../exact_knn_results.json | 290 +++ .../exact_knn_texts.json | 25 + .../knn10k_results.json | 290 +++ .../lexical vs hybrid vs semantic/report1.md | 704 +++++++ .../lexical vs semantic/test1/batch_report.md | 1344 ++++++++++++++ .../test1/batch_results.csv | 391 ++++ .../lexical vs semantic/test2/batch_report.md | 1627 +++++++++++++++++ .../test2/batch_results.csv | 467 +++++ .../search query analyses/search_analysis.md | 356 ++++ test results & reports/semantic/report2.md | 301 +++ test results & reports/semantic/report3.md | 296 +++ 16 files changed, 6619 insertions(+), 11 deletions(-) create mode 100644 batch_search.py create mode 100644 fetch_exact_knn.py create mode 100644 test results & reports/lexical vs hybrid vs semantic/exact_knn_results.json create mode 100644 test results & reports/lexical vs hybrid vs semantic/exact_knn_texts.json create mode 100644 test results & reports/lexical vs hybrid vs semantic/knn10k_results.json create mode 100644 test results & reports/lexical vs hybrid vs semantic/report1.md create mode 100644 test results & reports/lexical vs semantic/test1/batch_report.md create mode 100644 test results & reports/lexical vs semantic/test1/batch_results.csv create mode 100644 test results & reports/lexical vs semantic/test2/batch_report.md create mode 100644 test results & reports/lexical vs semantic/test2/batch_results.csv create mode 100644 test results & reports/search query analyses/search_analysis.md create mode 100644 test results & reports/semantic/report2.md create mode 100644 test results & reports/semantic/report3.md diff --git a/.gitignore b/.gitignore index 883972b..810d734 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -db/01-hadithTable.sql +*.sql .env __pycache__ data/ diff --git a/README.md b/README.md index 4617579..01b8b6f 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,210 @@ -# Search -To run: -docker-compose up --build +# sunnah.com Search API -Then visit: -http://localhost:5000/index?password=index123 +Flask + Elasticsearch search service for sunnah.com. Supports lexical (BM25), semantic, and hybrid search across the hadith corpus. -To run: -docker-compose up --build -docker-compose -f docker-compose.prod.yml -d up --build +## What's in this branch + +This branch extends the existing search service with **multi-model semantic search**: multiple embedding models can be indexed and queried independently, letting the team compare results before committing to one model in production. + +### Key changes from main + +- **Multi-model architecture** — each embedding model gets its own ES index. Models are enabled/disabled via env vars with no code changes required. +- **Dedicated lexical index** (`english-lexical`) — separated from the semantic indexes so it can be rebuilt quickly without re-embedding. +- **Testbed UI** — the API root (`/`) now serves a search interface for testing modes and models side-by-side without the PHP website. +- **`/api/models` endpoint** — returns which models are configured and whether their indexes are built; the testbed UI calls this on load. + +Corresponding website changes (mode/model toggles in the production UI) are in the `semantic-search-ui-toggles` branch of the website repo. + +--- + +## Architecture + +``` +Browser / PHP website + │ + ▼ + Flask API (this repo) ──► Elasticsearch + │ │ + │ ┌─────────┴──────────┐ + │ │ english-lexical │ BM25, no embeddings + │ │ english-nomic │ nomic-embed-text via Ollama + │ │ english-mxbai │ mxbai-embed-large via Ollama + │ │ english-openai-* │ text-embedding-3-small via OpenAI API + │ │ multilingual-* │ text-embedding-3-small, full corpus + │ │ english-embedding… │ embeddinggemma-300m via TEI (optional) + │ └────────────────────┘ + │ + Model servers (embedding inference) + ├── Ollama (runs on host, port 11434) — nomic, mxbai + ├── OpenAI API — openai-small-en / openai-small-multi + └── tei-gemma Docker service — embeddinggemma (optional, see below) +``` + +Each model's index name in ES is an **alias** (e.g. `english-nomic`) that points to a timestamped backing index (e.g. `english-nomic-1779026769`). Reindexing builds a new backing index and atomically swaps the alias — the live index keeps serving traffic during the rebuild. + +--- + +## Local setup + +### Prerequisites + +- Docker + Docker Compose +- For Ollama-backed models (nomic, mxbai): [Ollama](https://ollama.com) installed and running on your machine + +### 1. Configure environment + +```bash +cp .env.sample .env +``` + +Edit `.env` and enable the models you want to test: + +```env +NOMIC_ENABLED=true +MXBAI_ENABLED=true +OPENAI_ENABLED=false # requires OPENAI_API_KEY +EMBEDDINGGEMMA_ENABLED=false # requires --profile embeddinggemma, see below +``` + +If using Ollama and it's not at the default address, set: +```env +OLLAMA_URL=http://host.docker.internal:11434 +``` + +### 2. Pull Ollama models (if enabled) + +```bash +ollama pull nomic-embed-text +ollama pull mxbai-embed-large +``` + +### 3. Start the stack + +```bash +docker compose up --build +``` + +The override file (`docker-compose.override.yml`) is applied automatically and exposes Flask on port 5001. + +For the embeddinggemma model only: +```bash +docker compose --profile embeddinggemma up --build +``` +This starts the `tei-gemma` service which downloads `google/embeddinggemma-300m` from HuggingFace on first run (~600 MB, cached in a Docker volume). + +### 4. Build the indexes + +Open in a browser or curl: + +``` +http://localhost:5001/index?password=index123 +``` + +This reads all hadiths from MySQL and builds ES indexes for every enabled model plus the lexical index. It takes a while — embedding ~48k English hadiths per model is the slow part. + +To rebuild only one model's index: +``` +http://localhost:5001/index?password=index123&model=nomic +http://localhost:5001/index?password=index123&model=lexical +``` + +To force a full rebuild instead of incremental: +``` +http://localhost:5001/index?password=index123&rebuild=true +``` + +Check index status (doc counts per index): +``` +http://localhost:5001/index/status +``` + +--- + +## Embedding models + +| Key | Model | Served by | Dimensions | Notes | +|---|---|---|---|---| +| `openai-small-en` | text-embedding-3-small | OpenAI API | 1536 | English corpus only | +| `openai-small-multi` | text-embedding-3-small | OpenAI API | 1536 | Full Arabic+English corpus | +| `nomic` | nomic-embed-text | Ollama (host) | 768 | English-only | +| `mxbai` | mxbai-embed-large | Ollama (host) | 1024 | English-only | +| `embeddinggemma` | embeddinggemma-300m | tei-gemma (Docker) | 256 | Optional, needs `--profile embeddinggemma` | + +**Nomic and mxbai run via Ollama on your host machine**, not inside Docker. The container reaches them at `http://host.docker.internal:11434` — a Docker hostname that resolves to your Mac's IP from inside any container. Ollama exposes an OpenAI-compatible API, which is what ES 8.16's inference endpoint uses. + +**embeddinggemma runs in a Docker container** (`tei-gemma`) using HuggingFace's Text Embeddings Inference server. It's gated behind a Docker Compose profile so it doesn't start unless you need it. + +### Adding a new model + +1. Add an entry to `EMBEDDING_MODELS` in `main.py` — copy the shape of any existing entry. For an Ollama model it's ~8 lines. +2. Add `NEWMODEL_ENABLED=false` to `.env.sample` (and set to `true` in your local `.env`). +3. Pull the model in Ollama: `ollama pull your-model-name` +4. Hit `/index?password=index123&model=newmodel` to build its index. +5. Update `SEMANTIC_INDEXES` in `batch_search.py` to include it (use the alias name, e.g. `"english-newmodel"`). + +### Disabling a model + +Set `MODELNAME_ENABLED=false` in `.env`. The model is completely ignored at runtime — no index queries, no inference calls. + +--- + +## Search modes + +| Mode | What it does | +|---|---| +| `lexical` | BM25 full-text search with collection boosts. Fast, exact keyword matching. | +| `semantic` | Embedding similarity via HNSW approximate nearest-neighbor. Finds conceptually related hadiths even without keyword overlap. | +| `hybrid` | Both legs run in parallel (msearch), results fused with Reciprocal Rank Fusion (RRF). | + +The active mode and model are passed as query parameters: +``` +/english/search?q=prayer&mode=semantic&model=nomic +/english/search?q=prayer&mode=hybrid&model=mxbai +/english/search?q=prayer&mode=lexical +``` + +--- + +## API endpoints + +| Endpoint | Description | +|---|---| +| `GET /` | Testbed UI — search interface for comparing modes and models | +| `GET /api/models` | JSON: configured models + whether each index exists in ES | +| `GET //search?q=...` | Main search endpoint (consumed by PHP website) | +| `GET /index?password=...` | Build/rebuild ES indexes from MySQL | +| `GET /index/status` | Doc counts for all indexes | + +--- + +## Docker Compose files + +| File | When to use | +|---|---| +| `docker-compose.yml` | Base definition. Do not run directly. | +| `docker-compose.override.yml` | Applied automatically on `docker compose up`. Exposes Flask on port 5001 (override from default 5000 to avoid conflicts). | +| `docker-compose.prod.yml` | Production. Run with `-f docker-compose.prod.yml`. Uses uwsgi, persistent ES data volume, explicit JVM memory limits, no MySQL service. | + +**Why Elasticsearch has a fixed IP** (`172.31.250.10`): at high request rates, Docker's embedded DNS resolver becomes a bottleneck and throws `EAI_AGAIN` errors. Hardcoding the IP in `/etc/hosts` via `extra_hosts` makes every lookup instant. + +**Observability services** (`es-exporter`, `alloy`) are included in the base compose file. They ship ES metrics and logs to Grafana Cloud. They require Grafana Cloud credentials in `.env` — if you don't have them, these services will fail to connect but won't break the rest of the stack. + +--- + +## Batch evaluation + +`batch_search.py` runs a fixed set of queries across all enabled models and produces a CSV and a markdown report for side-by-side comparison. + +```bash +# Copy script into container, run it, copy results back +docker cp search/batch_search.py search-web-1:/code/batch_search.py && \ +docker exec search-web-1 python3 /code/batch_search.py && \ +docker cp search-web-1:/code/batch_results.csv search/batch_results.csv && \ +docker cp search-web-1:/code/batch_report.md search/batch_report.md +``` + +The script must run inside the container because ES is not exposed to the host — it's only reachable at `http://elasticsearch:9200` from within the Docker network. + +Edit `QUERIES` in `batch_search.py` to change which queries are tested. Edit `SEMANTIC_INDEXES` to add or remove models from the comparison. + +**Note:** always use commas between query strings in the list. Python silently concatenates adjacent string literals without a comma, producing wrong queries with no error. diff --git a/batch_search.py b/batch_search.py new file mode 100644 index 0000000..6a9fc9d --- /dev/null +++ b/batch_search.py @@ -0,0 +1,217 @@ +""" +Batch search across all semantic models + lexical — production approach (size=100, HNSW). +Outputs: batch_results.csv and batch_report.md in /code/ inside the container. + +WHY run inside the container: + ES is not exposed to the host. It only resolves at http://elasticsearch:9200 + from within the Docker network (search-web-1 is on that network). + +STEP 1 — copy the script into the container: + docker cp search/batch_search.py search-web-1:/code/batch_search.py + +STEP 2 — run it: + docker exec search-web-1 python3 /code/batch_search.py + +STEP 3 — copy results back to your local machine: + docker cp search-web-1:/code/batch_results.csv search/batch_results.csv + docker cp search-web-1:/code/batch_report.md search/batch_report.md + +One-liner (copy in, run, copy results out): + docker cp search/batch_search.py search-web-1:/code/batch_search.py && \ + docker exec search-web-1 python3 /code/batch_search.py && \ + docker cp search-web-1:/code/batch_results.csv search/batch_results.csv && \ + docker cp search-web-1:/code/batch_report.md search/batch_report.md + +To add/remove queries: edit QUERIES below. +To change how many results are fetched per model per query: edit SIZE. +To change how many are shown in the markdown report: edit REPORT_TOP_N. + +NOTE: always include commas between query strings — Python silently concatenates +adjacent string literals without a comma, producing wrong queries with no error. +""" +import csv +import os +import re +import textwrap +from datetime import date +from elasticsearch import Elasticsearch, BadRequestError + +ES_HOST = os.environ.get("ES_HOST", "http://elasticsearch:9200") +ES_PASS = os.environ.get("ELASTIC_PASSWORD", "123") +ES = Elasticsearch(ES_HOST, basic_auth=("elastic", ES_PASS)) + +LEXICAL_INDEX = "english-lexical" + +LEXICAL_FIELDS = ["hadithNumber^2", "hadithText", "arabicText", "collection^2"] + +COLLECTION_BOOSTS = [ + ("bukhari", 5.0), ("muslim", 4.8), ("nasai", 3.5), ("abudawud", 3.0), + ("tirmidhi", 2.5), ("ibnmajah", 2.0), ("malik", 2.5), ("ahmad", 2.5), + ("darimi", 2.0), ("mishkat", 2.5), ("nawawi40", 3.3), ("riyadussalihin", 2.5), +] + +SEMANTIC_INDEXES = { + "openai-small-en": "english-openai-small-1779045411", + #"openai-small-multi": "multilingual-openai-small-1779017104", + "nomic": "english-nomic-1779026769", + "mxbai": "english-mxbai-1779026713", +} + +QUERIES = [ + "comparing yourself to others", + "aisha six years", + "music", + "actions are by intentions", + "ramadan", + "jesus", + "sex", + "marriage", + "masturbation", + "racism", + "polygamy", + "pork", + "dance" +,] + +SIZE = 100 # fetch this many; report shows top 10 per model per query +REPORT_TOP_N = 10 + +OUT_DIR = "/code" +CSV_PATH = os.path.join(OUT_DIR, "batch_results.csv") +MD_PATH = os.path.join(OUT_DIR, "batch_report.md") + + +def lexical_search(query, size=SIZE): + def _build(query_type): + inner = {"query": query, "fields": LEXICAL_FIELDS} + if query_type == "query_string": + inner["type"] = "cross_fields" + return { + "function_score": { + "query": {"bool": {"must": [{query_type: inner}]}}, + "functions": [ + {"filter": {"term": {"collection": name}}, "weight": w} + for name, w in COLLECTION_BOOSTS + ], + "score_mode": "sum", + "boost_mode": "sum", + } + } + + kwargs = dict( + index=LEXICAL_INDEX, + size=size, + track_total_hits=True, + _source=["hadithText", "collection", "hadithNumber", "urn"], + ) + try: + res = ES.search(query=_build("query_string"), **kwargs) + except BadRequestError: + res = ES.search(query=_build("simple_query_string"), **kwargs) + return res["hits"]["hits"], res["hits"]["total"]["value"] + + +def semantic_search(index, query, size=SIZE): + res = ES.search( + index=index, + query={"semantic": {"field": "semantic_text", "query": query}}, + size=size, + track_total_hits=True, + _source=["hadithText", "collection", "hadithNumber", "urn"], + ) + return res["hits"]["hits"], res["hits"]["total"]["value"] + + +def query_anchor(query): + s = f'query: "{query}"' + s = s.lower() + s = re.sub(r'[^\w\s-]', '', s) + s = re.sub(r'\s+', '-', s.strip()) + return s + + +def snippet(text, width=160): + if not text: + return "" + return textwrap.shorten(text.replace("\n", " ").strip(), width=width, placeholder="…") + + +def run(): + csv_rows = [] + md_sections = [] + + all_models = {"lexical": None, **SEMANTIC_INDEXES} + + md_sections.append(f"# Batch Search Report") + md_sections.append(f"**Date:** {date.today()} ") + md_sections.append(f"**Models:** {', '.join(all_models)} ") + md_sections.append(f"**Method:** lexical = BM25 + collection boosts; semantic = HNSW `size={SIZE}` ") + md_sections.append(f"**Queries:** {len(QUERIES)}, report shows top {REPORT_TOP_N} per model") + md_sections.append("") + + # Table of contents + md_sections.append("## Queries") + for query in QUERIES: + md_sections.append(f"- [{query}](#{query_anchor(query)})") + md_sections.append("") + + for query in QUERIES: + print(f"\nQuery: {query!r}") + md_sections.append(f"---\n\n## Query: \"{query}\"\n") + + for model_name, index in all_models.items(): + print(f" [{model_name}] ...", end=" ", flush=True) + try: + if model_name == "lexical": + hits, total = lexical_search(query, size=SIZE) + else: + hits, total = semantic_search(index, query, size=SIZE) + print(f"{len(hits)} hits (total: {total})") + except Exception as e: + print(f"ERROR: {e}") + md_sections.append(f"### {model_name}\n\n_Error: {e}_\n") + continue + + md_sections.append(f"### {model_name} — {total} total hits\n") + + for rank, h in enumerate(hits[:REPORT_TOP_N], 1): + src = h["_source"] + score = round(h["_score"], 4) + collection = src.get("collection", "") + hadith_num = src.get("hadithNumber", "") + text = src.get("hadithText", "") + urn = src.get("urn", "") + + csv_rows.append({ + "query": query, + "model": model_name, + "rank": rank, + "collection": collection, + "hadithNumber": hadith_num, + "urn": urn, + "score": score, + "text_snippet": snippet(text, width=500), + }) + + md_sections.append(f"**#{rank}** — {collection} {hadith_num} · score: {score}") + md_sections.append(f"> {snippet(text, width=600)}\n") + + md_sections.append("") + + # Write CSV + fieldnames = ["query", "model", "rank", "collection", "hadithNumber", "urn", "score", "text_snippet"] + with open(CSV_PATH, "w", newline="", encoding="utf-8") as f: + writer = csv.DictWriter(f, fieldnames=fieldnames) + writer.writeheader() + writer.writerows(csv_rows) + print(f"\nCSV → {CSV_PATH}") + + # Write markdown + with open(MD_PATH, "w", encoding="utf-8") as f: + f.write("\n".join(md_sections) + "\n") + print(f"MD → {MD_PATH}") + print(f"Rows: {len(csv_rows)} ({len(QUERIES)} queries × {len(all_models)} models × up to {REPORT_TOP_N})") + + +if __name__ == "__main__": + run() diff --git a/docker-compose.yml b/docker-compose.yml index d3bf5cf..23cb697 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,8 +17,6 @@ services: command: flask run --host=0.0.0.0 volumes: - .:/code - ports: - - "5001:5000" env_file: - .env extra_hosts: diff --git a/fetch_exact_knn.py b/fetch_exact_knn.py new file mode 100644 index 0000000..b473959 --- /dev/null +++ b/fetch_exact_knn.py @@ -0,0 +1,102 @@ +""" +Fetch exact kNN results for all 4 models by: +1. Getting query embedding via ES inference API +2. Running knn query on inner dense_vector field (semantic_text.inference.chunks.embeddings) + with num_candidates >= index doc count (forces exhaustive search) +""" +import urllib.request, urllib.parse, json, sys +from base64 import b64decode + +ES = "http://elasticsearch:9200" +ES_AUTH = ("elastic", "123") +QUERY = "comparing yourself to others" +K = 10 # results to return + +MODELS = { + "openai-small-en": { + "inference_id": "openai-text-embedding-3-small", + "index": "english-openai-small-1779045411", + "num_docs": 99956, + "dims": 1536, + }, + "openai-small-multi": { + "inference_id": "openai-text-embedding-3-small", + "index": "multilingual-openai-small-1779017104", + "num_docs": 285236, + "dims": 1536, + }, + "nomic": { + "inference_id": "nomic-embed-text", + "index": "english-nomic-1779026769", + "num_docs": 99956, + "dims": 768, + }, + "mxbai": { + "inference_id": "mxbai-embed-large", + "index": "english-mxbai-1779026713", + "num_docs": 99956, + "dims": 1024, + }, +} + +import base64, urllib.error + +def es_request(path, method="GET", body=None): + url = ES + path + data = json.dumps(body).encode() if body else None + req = urllib.request.Request(url, data=data, method=method) + creds = base64.b64encode(b"elastic:123").decode() + req.add_header("Authorization", f"Basic {creds}") + if data: + req.add_header("Content-Type", "application/json") + resp = urllib.request.urlopen(req, timeout=60) + return json.loads(resp.read()) + +def get_embedding(inference_id, text): + r = es_request(f"/_inference/text_embedding/{inference_id}", "POST", {"input": text}) + return r["text_embedding"][0]["embedding"] + +results = {} +for model_key, cfg in MODELS.items(): + print(f"\nModel: {model_key}", file=sys.stderr) + print(f" Getting embedding via {cfg['inference_id']} ...", file=sys.stderr) + emb = get_embedding(cfg["inference_id"], QUERY) + print(f" Got {len(emb)}-dim embedding", file=sys.stderr) + + # Exact kNN: num_candidates >= num_docs forces exhaustive search + num_candidates = cfg["num_docs"] + 1000 + print(f" Running knn on {cfg['index']} (num_candidates={num_candidates}) ...", file=sys.stderr) + + body = { + "size": K, + "knn": { + "field": "semantic_text.inference.chunks.embeddings", + "query_vector": emb, + "k": K, + "num_candidates": num_candidates, + "inner_hits": {"size": 1, "_source": False, "fields": []} + }, + "_source": ["urn", "hadithText", "collection"], + } + + try: + r = es_request(f"/{cfg['index']}/_search", "POST", body) + hits = r.get("hits", {}).get("hits", []) + print(f" Got {len(hits)} hits", file=sys.stderr) + results[model_key] = [ + { + "rank": i+1, + "urn": h.get("_source", {}).get("urn", h.get("_id", "")), + "score": round(h.get("_score", 0), 4), + "text": h.get("_source", {}).get("hadithText", "") + } + for i, h in enumerate(hits) + ] + except urllib.error.HTTPError as e: + err_body = e.read().decode() + print(f" ERROR: {e.code} {err_body[:500]}", file=sys.stderr) + results[model_key] = {"error": err_body[:300]} + +with open("/tmp/exact_knn.json", "w") as f: + json.dump(results, f, indent=2) +print("\nDone — saved to /tmp/exact_knn.json", file=sys.stderr) diff --git a/test results & reports/lexical vs hybrid vs semantic/exact_knn_results.json b/test results & reports/lexical vs hybrid vs semantic/exact_knn_results.json new file mode 100644 index 0000000..d79709c --- /dev/null +++ b/test results & reports/lexical vs hybrid vs semantic/exact_knn_results.json @@ -0,0 +1,290 @@ +{ + "openai-small-en": [ + { + "rank": 1, + "collection": "adab", + "hadithNumber": "328", + "cosine": 0.3795, + "text": " Ibn 'Abbas said, \"When you want to mention your companion's faults,\nremember your own faults.\"" + }, + { + "rank": 2, + "collection": "bukhari", + "hadithNumber": "6490", + "cosine": 0.3789, + "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" + }, + { + "rank": 3, + "collection": "riyadussalihin", + "hadithNumber": "466", + "cosine": 0.3702, + "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" + }, + { + "rank": 4, + "collection": "ahmad", + "hadithNumber": "111", + "cosine": 0.3543, + "text": "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet \u2018Umar bin al-Khattab and ask him about three things. He came to Madinah and \u2018Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, \u2018Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah \ufdfa told me not to do them. He said: (And I asked) about stories (for preaching), because they wanted me to tell them stories. He said: Whatever you want. It was as if he did not want to tell him not to do that. He said: I only wanted to follow what you say. He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." + }, + { + "rank": 5, + "collection": "forty", + "hadithNumber": "18", + "cosine": 0.3507, + "text": "The felicitous person takes lessons from (the actions of) others." + }, + { + "rank": 6, + "collection": "muslim", + "hadithNumber": "2963 c", + "cosine": 0.3406, + "text": "

\nAbu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.\n\n

In the chain narrated by Abu Mu'awiya's he said: Upon you." + }, + { + "rank": 7, + "collection": "adab", + "hadithNumber": "592", + "cosine": 0.3337, + "text": " Abu Hurayra said, \"One of you looks at the mote in his brother's\neye while forgetting the stump in his own eye.\"" + }, + { + "rank": 8, + "collection": "muslim", + "hadithNumber": "2963 a", + "cosine": 0.3323, + "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + }, + { + "rank": 9, + "collection": "abudawud", + "hadithNumber": "4084", + "cosine": 0.3312, + "text": "\n

\n\nNarrated AbuJurayy Jabir ibn Salim al-Hujaymi:\n

\n\n\n\n

\n\nI saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say \"On you be peace,\" for \"On you be peace\" is a greeting for the dead, but say \"Peace be upon you\". \n

\n\n\n

\n\nI asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and you call Him, He returns it to you. \n

\n\n\n

\n\nI said: Give me some advice. He said: Do not abuse anyone. He said that he did not abuse a freeman, or a slave, or a camel or a sheep thenceforth. He said: Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. Have your lower garment halfway down your shin; if you cannot do it, have it up to the ankles. Beware of trailing the lower garment, for it is conceit and Allah does not like conceit. And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it.\n

\n\n\n" + }, + { + "rank": 10, + "collection": "bulugh", + "hadithNumber": "1471", + "cosine": 0.3276, + "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." + } + ], + "openai-small-multi": [ + { + "rank": 1, + "collection": "adab", + "hadithNumber": "328", + "cosine": 0.3795, + "text": " Ibn 'Abbas said, \"When you want to mention your companion's faults,\nremember your own faults.\"" + }, + { + "rank": 2, + "collection": "bukhari", + "hadithNumber": "6490", + "cosine": 0.3789, + "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" + }, + { + "rank": 3, + "collection": "riyadussalihin", + "hadithNumber": "466", + "cosine": 0.3702, + "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" + }, + { + "rank": 4, + "collection": "ahmad", + "hadithNumber": "111", + "cosine": 0.3542, + "text": "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet \u2018Umar bin al-Khattab and ask him about three things. He came to Madinah and \u2018Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, \u2018Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah \ufdfa told me not to do them. He said: (And I asked) about stories (for preaching), because they wanted me to tell them stories. He said: Whatever you want. It was as if he did not want to tell him not to do that. He said: I only wanted to follow what you say. He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." + }, + { + "rank": 5, + "collection": "forty", + "hadithNumber": "18", + "cosine": 0.3507, + "text": "The felicitous person takes lessons from (the actions of) others." + }, + { + "rank": 6, + "collection": "muslim", + "hadithNumber": "2963 c", + "cosine": 0.3406, + "text": "

\nAbu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.\n\n

In the chain narrated by Abu Mu'awiya's he said: Upon you." + }, + { + "rank": 7, + "collection": "adab", + "hadithNumber": "592", + "cosine": 0.3337, + "text": " Abu Hurayra said, \"One of you looks at the mote in his brother's\neye while forgetting the stump in his own eye.\"" + }, + { + "rank": 8, + "collection": "muslim", + "hadithNumber": "2963 a", + "cosine": 0.3323, + "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + }, + { + "rank": 9, + "collection": "abudawud", + "hadithNumber": "4084", + "cosine": 0.3312, + "text": "\n

\n\nNarrated AbuJurayy Jabir ibn Salim al-Hujaymi:\n

\n\n\n\n

\n\nI saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say \"On you be peace,\" for \"On you be peace\" is a greeting for the dead, but say \"Peace be upon you\". \n

\n\n\n

\n\nI asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and you call Him, He returns it to you. \n

\n\n\n

\n\nI said: Give me some advice. He said: Do not abuse anyone. He said that he did not abuse a freeman, or a slave, or a camel or a sheep thenceforth. He said: Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. Have your lower garment halfway down your shin; if you cannot do it, have it up to the ankles. Beware of trailing the lower garment, for it is conceit and Allah does not like conceit. And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it.\n

\n\n\n" + }, + { + "rank": 10, + "collection": "bulugh", + "hadithNumber": "1471", + "cosine": 0.3276, + "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." + } + ], + "nomic": [ + { + "rank": 1, + "collection": "bukhari", + "hadithNumber": "6490", + "cosine": 0.671, + "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" + }, + { + "rank": 2, + "collection": "bukhari", + "hadithNumber": "6061", + "cosine": 0.6323, + "text": "

\nNarrated Abu Bakra:\n\n

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, \n\"May Allah's Mercy be on you ! You have cut the neck of your friend.\" The Prophet repeated this \nsentence many times and said, \"If it is indispensable for anyone of you to praise someone, then he \nshould say, 'I think that he is so-and-so,\" if he really thinks that he is such. Allah is the One Who will \ntake his accounts (as He knows his reality) and no-one can sanctify anybody before Allah.\" (Khalid \nsaid, \"Woe to you,\" instead of \"Allah's Mercy be on you.\")" + }, + { + "rank": 3, + "collection": "bukhari", + "hadithNumber": "6530", + "cosine": 0.6227, + "text": "

\nNarrated Abu Sa`id:\n\n

The Prophet said, \"Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to \nYour Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' \nThen Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) \nare the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine \n(persons).' At that time children will become hoary-headed and every pregnant female will drop \nher load (have an abortion) and you will see the people as if they were drunk, yet not drunk; But \nAllah's punishment will be very severe.\" \nThat news distressed the companions of the Prophet too much, and they said, \"O Allah's Apostle! \nWho amongst us will be that man (the lucky one out of one-thousand who will be saved from the \nFire)?\" He said, \"Have the good news that one-thousand will be from Gog and Magog, and the one (to \nbe saved will be) from you.\" The Prophet added, \"By Him in Whose Hand my soul is, I Hope that \nyou (Muslims) will be one third of the people of Paradise.\" On that, we glorified and praised Allah \nand said, \"Allahu Akbar.\" The Prophet then said, \"By Him in Whose Hand my soul is, I hope that you \nwill be one half of the people of Paradise, as your (Muslims) example in comparison to the other \npeople (non-Muslims), is like that of a white hair on the skin of a black ox, or a round hairless spot on \nthe foreleg of a donkey.\"" + }, + { + "rank": 4, + "collection": "bulugh", + "hadithNumber": "1471", + "cosine": 0.6218, + "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." + }, + { + "rank": 5, + "collection": "muslim", + "hadithNumber": "2963 a", + "cosine": 0.6211, + "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + }, + { + "rank": 6, + "collection": "tirmidhi", + "hadithNumber": "2513", + "cosine": 0.6181, + "text": "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said:\n\"Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.\"" + }, + { + "rank": 7, + "collection": "nasai", + "hadithNumber": "3947", + "cosine": 0.6161, + "text": "It was narrated from Abu Musa that the Prophet said: \"The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.\"" + }, + { + "rank": 8, + "collection": "bukhari", + "hadithNumber": "6162", + "cosine": 0.6136, + "text": "

\nNarrated Abu Bakra:\n\n

A man praised another man in front of the Prophet. The Prophet said thrice, \"Wailaka (Woe on you) ! \nYou have cut the neck of your brother!\" The Prophet added, \"If it is indispensable for anyone of you \nto praise a person, then he should say, \"I think that such-and-such person (is so-and-so), and Allah is \nthe one who will take his accounts (as he knows his reality) and none can sanctify anybody before \nAllah (and that only if he knows well about that person.)\"." + }, + { + "rank": 9, + "collection": "abudawud", + "hadithNumber": "4627", + "cosine": 0.6096, + "text": "Ibn \u2018Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. \u2019Umar came next and then \u2018Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." + }, + { + "rank": 10, + "collection": "adab", + "hadithNumber": "1146", + "cosine": 0.6093, + "text": " Ibn 'Abbas said, \"The most precious of people in my opinion is\nmy sitting companion. This is so much the case that he can step over the\nshoulders of people until he sits with me.\"" + } + ], + "mxbai": [ + { + "rank": 1, + "collection": "forty", + "hadithNumber": "18", + "cosine": 0.6287, + "text": "The felicitous person takes lessons from (the actions of) others." + }, + { + "rank": 2, + "collection": "bukhari", + "hadithNumber": "6490", + "cosine": 0.6062, + "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" + }, + { + "rank": 3, + "collection": "forty", + "hadithNumber": "3", + "cosine": 0.5944, + "text": "A Muslim is a mirror of the Muslim." + }, + { + "rank": 4, + "collection": "muslim", + "hadithNumber": "2963 a", + "cosine": 0.5875, + "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + }, + { + "rank": 5, + "collection": "ibnmajah", + "hadithNumber": "4336", + "cosine": 0.5846, + "text": " Sa\u2019eed\nbin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said:\n\u201cI supplicate Allah to bring you and I together in the marketplace\nof Paradise,\u201d Sa\u2019eed said: \u201cIs there a marketplace there?\u201d He\nsaid: \u201cYes. The Messenger of Allah (saw) told me that when the\npeople of Paradise enter it, they will take their places according to\ntheir deeds, and they will be given permission for a length of time\nequivalent to Friday on earth, when they will visit Allah. His Throne\nwill be shown to them and He will appear to them in one of the\ngardens of Paradise. Chairs of light and chairs of pearls and chairs\nof rubies and chairs of chrysolite and chairs of gold and chairs of\nsilver will be placed for them. Those who are of a lower status than\nthem, and none of them will be regarded as insignificant, will sit on\nsandhills of musk and camphor, and they will not feel that those who\nare sitting on chairs are seated better than them.\u201d\n\nAbu Hurairah said: \u201cI said: \u2018O Messenger of Allah, will we see our Lord?\u2019 He said: \u2018Yes. Do you dispute that you see the sun and the moon on the night when it is full?\u2019 We said: \u2018No.\u2019 He said: \u2018Likewise, you will not dispute that you see your Lord, the Glorified. There will be no one left in that gathering with whom Allah does not speak face to face, until He will say to a man among you: \u201cDo you not remember, O so-and-so, the day you did such and such?\u201d And He will remind him of some of his sins in this world. He will say: \u201cO Lord, have You not forgiven me?\u201d He will say: \u201cYes, it is by the vastness of My forgiveness that You have reached the position you are in.\u201d While they are like that, a cloud will cover them from above and will rain down on them perfume the like of whose fragrance they have never smelled before. Then He will say: \u201cGet up and go to the honor that has been prepared for you, and take whatever you desire.\u201d So we will go to a marketplace surrounded by the angels, in which there will be such things as eyes have never seen, ears have never heard and it has not entered the heart of man. Whatever we desire will be carried for us. Nothing will be bought or sold therein. In that marketplace the people of Paradise will meet one another. A man of elevated status will meet those who are of lower status than him, but none shall be regarded as insignificant, and he will be dazzled by the clothes that he sees on him. He will not finish the last of his conversation before better clothes appear on him. That is because no one should be sad there.\u2019\u201d\n\u201cHe said: \u2018Then we will go back to our homes where we will be met by our wives, and they will say: \u2018Welcome. You have come looking more handsome and with a better fragrance than when you left us.\u2019 And we will say: \u2018Today we sat with our Lord, the Compeller, the Glorified, and we deserve to come back as we have come back.\u2019\u201d" + }, + { + "rank": 6, + "collection": "adab", + "hadithNumber": "159", + "cosine": 0.5824, + "text": " Abu'd-Darda' used to say to people. \"We know you better than the\nveterinarian knows his animals. We recognise the best of you from the worst\nof you. The best of you is the one whose good is hoped for and the one\nwhose evil you are safe from. As for the worst of you, that is the person\nwhose good is not hoped for and whose evil you are not safe from and he\ndoes not free slaves.\"" + }, + { + "rank": 7, + "collection": "bukhari", + "hadithNumber": "3348", + "cosine": 0.5786, + "text": "

\nNarrated Abu Sa`id Al-Khudri:\n\n

The Prophet said, \"Allah will say (on the Day of Resurrection), 'O Adam.' Adam will reply, 'Labbaik \nwa Sa`daik', and all the good is in Your Hand.' Allah will say: 'Bring out the people of the fire.' Adam \nwill say: 'O Allah! How many are the people of the Fire?' Allah will reply: 'From every one thousand, \ntake out nine-hundred-and ninety-nine.' At that time children will become hoary headed, every \npregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be \ndrunken, but dreadful will be the Wrath of Allah.\" The companions of the Prophet asked, \"O Allah's \nApostle! Who is that (excepted) one?\" He said, \"Rejoice with glad tidings; one person will be from \nyou and one-thousand will be from Gog and Magog.\" \nThe Prophet further said, \"By Him in Whose Hands my life is, hope that you will be one-fourth of the \npeople of Paradise.\" We shouted, \"Allahu Akbar!\" He added, \"I hope that you will be one-third of the \npeople of Paradise.\" We shouted, \"Allahu Akbar!\" He said, \"I hope that you will be half of the people \nof Paradise.\" We shouted, \"Allahu Akbar!\" He further said, \"You (Muslims) (compared with non \nMuslims) are like a black hair in the skin of a white ox or like a white hair in the skin of a black ox \n(i.e. your number is very small as compared with theirs)." + }, + { + "rank": 8, + "collection": "riyadussalihin", + "hadithNumber": "466", + "cosine": 0.5742, + "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" + }, + { + "rank": 9, + "collection": "muslim", + "hadithNumber": "2536", + "cosine": 0.5716, + "text": "

\n'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." + }, + { + "rank": 10, + "collection": "nasai", + "hadithNumber": "384b", + "cosine": 0.5656, + "text": "(Another chain) with similarity." + } + ] +} \ No newline at end of file diff --git a/test results & reports/lexical vs hybrid vs semantic/exact_knn_texts.json b/test results & reports/lexical vs hybrid vs semantic/exact_knn_texts.json new file mode 100644 index 0000000..c5532e0 --- /dev/null +++ b/test results & reports/lexical vs hybrid vs semantic/exact_knn_texts.json @@ -0,0 +1,25 @@ +{ + "ibnmajah 4336": "Sa\u2019eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: \u201cI supplicate Allah to bring you and I together in the marketplace of Paradise,\u201d Sa\u2019eed said: \u201cIs there a marketplace there?\u201d He said: \u201cYes. The Messenger of Allah (saw) told me that when the people of Paradise enter it, they will take their places according to their deeds, and they will be given permission for a length of time equivalent to Friday on earth, when they will visit Allah. His Throne will be shown to them and He will appear to them in one of the gardens of Paradise. Chairs of light and chairs of pearls and chairs of rubies and chairs of chrysolite and chairs of gold and chairs of silver will be placed for them. Those who are of a lower status than them, and none of them will be regarded as insignificant, will sit on sandhills of musk and camphor, and they will not feel that those who are sitting on chairs are seated better than them.\u201d Abu Hurairah said: \u201cI said: \u2018O Messenger of Allah, will we see our Lord?\u2019 He said: \u2018Yes. Do you dispute that you see the sun and the moon on the night when it is full?\u2019 We said: \u2018No.\u2019 He said: \u2018Likewise, you will not dispute that you see your Lord, the Glorified. There will be no one left in that gathering with whom Allah does not speak face to face, until He will say to a man among you: \u201cDo you not remember, O so-and-so, the day you did such and such?\u201d And He will remind him of some of his sins in this world. He will say: \u201cO Lord, have You not forgiven me?\u201d He will say: \u201cYes, it is by the vastness of My forgiveness that You have reached the position you are in.\u201d While they are like that, a cloud will cover them from above and will rain down on them perfume the like of whose fragrance they have never smelled before. Then He will say: \u201cGet up and go to the honor that has been prepared for you, and take whatever you desire.\u201d So we will go to a marketplace surrounded by the angels, in which there will be such things as eyes have never seen, ears have never heard and it has not entered the heart of man. Whatever we desire will be carried for us. Nothing will be bought or sold therein. In that marketplace the people of Paradise will meet one another. A man of elevated status will meet those who are of lower status than him, but none shall be regarded as insignificant, and he will be dazzled by the clothes that he sees on him. He will not finish the last of his conversation before better clothes appear on him. That is because no one should be sad there.\u2019\u201d \u201cHe said: \u2018Then we will go back to our homes where we will be met by our wives, and they will say: \u2018Welcome. You have come looking more handsome and with a better fragrance than when you left us.\u2019 And we will say: \u2018Today we sat with our Lord, the Compeller, the Glorified, and we deserve to come back as we have come back.\u2019\u201d", + "bukhari 3348": "Narrated Abu Sa`id Al-Khudri: The Prophet said, \"Allah will say (on the Day of Resurrection), 'O Adam.' Adam will reply, 'Labbaik wa Sa`daik', and all the good is in Your Hand.' Allah will say: 'Bring out the people of the fire.' Adam will say: 'O Allah! How many are the people of the Fire?' Allah will reply: 'From every one thousand, take out nine-hundred-and ninety-nine.' At that time children will become hoary headed, every pregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be drunken, but dreadful will be the Wrath of Allah.\" The companions of the Prophet asked, \"O Allah's Apostle! Who is that (excepted) one?\" He said, \"Rejoice with glad tidings; one person will be from you and one-thousand will be from Gog and Magog.\" The Prophet further said, \"By Him in Whose Hands my life is, hope that you will be one-fourth of the people of Paradise.\" We shouted, \"Allahu Akbar!\" He added, \"I hope that you will be one-third of the people of Paradise.\" We shouted, \"Allahu Akbar!\" He said, \"I hope that you will be half of the people of Paradise.\" We shouted, \"Allahu Akbar!\" He further said, \"You (Muslims) (compared with non Muslims) are like a black hair in the skin of a white ox or like a white hair in the skin of a black ox (i.e. your number is very small as compared with theirs).", + "abudawud 4084": "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say \"On you be peace,\" for \"On you be peace\" is a greeting for the dead, but say \"Peace be upon you\". I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and you call Him, He returns it to you. I said: Give me some advice. He said: Do not abuse anyone. He said that he did not abuse a freeman, or a slave, or a camel or a sheep thenceforth. He said: Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. Have your lower garment halfway down your shin; if you cannot do it, have it up to the ankles. Beware of trailing the lower garment, for it is conceit and Allah does not like conceit. And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it.", + "muslim 2963 c": "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you.", + "muslim 2963 a": "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him).", + "bukhari 6490": "Narrated Abu Huraira: Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.", + "bulugh 1471": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih.", + "nasai 384b": "(Another chain) with similarity.", + "bukhari 6162": "Narrated Abu Bakra: A man praised another man in front of the Prophet. The Prophet said thrice, \"Wailaka (Woe on you) ! You have cut the neck of your brother!\" The Prophet added, \"If it is indispensable for anyone of you to praise a person, then he should say, \"I think that such-and-such person (is so-and-so), and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah (and that only if he knows well about that person.)\".", + "bukhari 6530": "Narrated Abu Sa`id: The Prophet said, \"Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) are the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine (persons).' At that time children will become hoary-headed and every pregnant female will drop her load (have an abortion) and you will see the people as if they were drunk, yet not drunk; But Allah's punishment will be very severe.\" That news distressed the companions of the Prophet too much, and they said, \"O Allah's Apostle! Who amongst us will be that man (the lucky one out of one-thousand who will be saved from the Fire)?\" He said, \"Have the good news that one-thousand will be from Gog and Magog, and the one (to be saved will be) from you.\" The Prophet added, \"By Him in Whose Hand my soul is, I Hope that you (Muslims) will be one third of the people of Paradise.\" On that, we glorified and praised Allah and said, \"Allahu Akbar.\" The Prophet then said, \"By Him in Whose Hand my soul is, I hope that you will be one half of the people of Paradise, as your (Muslims) example in comparison to the other people (non-Muslims), is like that of a white hair on the skin of a black ox, or a round hairless spot on the foreleg of a donkey.\"", + "ahmad 111": "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet \u2018Umar bin al-Khattab and ask him about three things. He came to Madinah and \u2018Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, \u2018Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah \ufdfa told me not to do them. He said: (And I asked) about stories (for preaching), because they wanted me to tell them stories. He said: Whatever you want. It was as if he did not want to tell him not to do that. He said: I only wanted to follow what you say. He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection.", + "adab 159": "Abu'd-Darda' used to say to people. \"We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves.\"", + "bukhari 6061": "Narrated Abu Bakra: A man was mentioned before the Prophet and another man praised him greatly The Prophet said, \"May Allah's Mercy be on you ! You have cut the neck of your friend.\" The Prophet repeated this sentence many times and said, \"If it is indispensable for anyone of you to praise someone, then he should say, 'I think that he is so-and-so,\" if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody before Allah.\" (Khalid said, \"Woe to you,\" instead of \"Allah's Mercy be on you.\")", + "adab 592": "Abu Hurayra said, \"One of you looks at the mote in his brother's eye while forgetting the stump in his own eye.\"", + "forty 18": "The felicitous person takes lessons from (the actions of) others.", + "forty 3": "A Muslim is a mirror of the Muslim.", + "tirmidhi 2513": "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: \"Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.\"", + "riyadussalihin 466": "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\" This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".", + "adab 328": "Ibn 'Abbas said, \"When you want to mention your companion's faults, remember your own faults.\"", + "abudawud 4627": "Ibn \u2018Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. \u2019Umar came next and then \u2018Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other.", + "nasai 3947": "It was narrated from Abu Musa that the Prophet said: \"The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.\"", + "adab 1146": "Ibn 'Abbas said, \"The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me.\"", + "muslim 2536": "'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." +} \ No newline at end of file diff --git a/test results & reports/lexical vs hybrid vs semantic/knn10k_results.json b/test results & reports/lexical vs hybrid vs semantic/knn10k_results.json new file mode 100644 index 0000000..50eb9ac --- /dev/null +++ b/test results & reports/lexical vs hybrid vs semantic/knn10k_results.json @@ -0,0 +1,290 @@ +{ + "openai-small-en": [ + { + "rank": 1, + "collection": "adab", + "hadithNumber": "328", + "score": 0.6896, + "text": " Ibn 'Abbas said, \"When you want to mention your companion's faults,\nremember your own faults.\"" + }, + { + "rank": 2, + "collection": "bukhari", + "hadithNumber": "6490", + "score": 0.6896, + "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" + }, + { + "rank": 3, + "collection": "riyadussalihin", + "hadithNumber": "466", + "score": 0.6851, + "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" + }, + { + "rank": 4, + "collection": "ahmad", + "hadithNumber": "111", + "score": 0.6775, + "text": "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet \u2018Umar bin al-Khattab and ask him about three things. He came to Madinah and \u2018Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, \u2018Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah \ufdfa told me not to do them. He said: (And I asked) about stories (for preaching), because they wanted me to tell them stories. He said: Whatever you want. It was as if he did not want to tell him not to do that. He said: I only wanted to follow what you say. He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." + }, + { + "rank": 5, + "collection": "forty", + "hadithNumber": "18", + "score": 0.6753, + "text": "The felicitous person takes lessons from (the actions of) others." + }, + { + "rank": 6, + "collection": "muslim", + "hadithNumber": "2963 c", + "score": 0.6708, + "text": "

\nAbu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.\n\n

In the chain narrated by Abu Mu'awiya's he said: Upon you." + }, + { + "rank": 7, + "collection": "adab", + "hadithNumber": "592", + "score": 0.6669, + "text": " Abu Hurayra said, \"One of you looks at the mote in his brother's\neye while forgetting the stump in his own eye.\"" + }, + { + "rank": 8, + "collection": "muslim", + "hadithNumber": "2963 a", + "score": 0.6666, + "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + }, + { + "rank": 9, + "collection": "abudawud", + "hadithNumber": "4084", + "score": 0.6659, + "text": "\n

\n\nNarrated AbuJurayy Jabir ibn Salim al-Hujaymi:\n

\n\n\n\n

\n\nI saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say \"On you be peace,\" for \"On you be peace\" is a greeting for the dead, but say \"Peace be upon you\". \n

\n\n\n

\n\nI asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and you call Him, He returns it to you. \n

\n\n\n

\n\nI said: Give me some advice. He said: Do not abuse anyone. He said that he did not abuse a freeman, or a slave, or a camel or a sheep thenceforth. He said: Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. Have your lower garment halfway down your shin; if you cannot do it, have it up to the ankles. Beware of trailing the lower garment, for it is conceit and Allah does not like conceit. And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it.\n

\n\n\n" + }, + { + "rank": 10, + "collection": "bulugh", + "hadithNumber": "1471", + "score": 0.664, + "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." + } + ], + "openai-small-multi": [ + { + "rank": 1, + "collection": "adab", + "hadithNumber": "328", + "score": 0.6898, + "text": " Ibn 'Abbas said, \"When you want to mention your companion's faults,\nremember your own faults.\"" + }, + { + "rank": 2, + "collection": "bukhari", + "hadithNumber": "6490", + "score": 0.6894, + "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" + }, + { + "rank": 3, + "collection": "riyadussalihin", + "hadithNumber": "466", + "score": 0.685, + "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" + }, + { + "rank": 4, + "collection": "ahmad", + "hadithNumber": "111", + "score": 0.6779, + "text": "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet \u2018Umar bin al-Khattab and ask him about three things. He came to Madinah and \u2018Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, \u2018Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah \ufdfa told me not to do them. He said: (And I asked) about stories (for preaching), because they wanted me to tell them stories. He said: Whatever you want. It was as if he did not want to tell him not to do that. He said: I only wanted to follow what you say. He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." + }, + { + "rank": 5, + "collection": "forty", + "hadithNumber": "18", + "score": 0.6752, + "text": "The felicitous person takes lessons from (the actions of) others." + }, + { + "rank": 6, + "collection": "muslim", + "hadithNumber": "2963 c", + "score": 0.6709, + "text": "

\nAbu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.\n\n

In the chain narrated by Abu Mu'awiya's he said: Upon you." + }, + { + "rank": 7, + "collection": "adab", + "hadithNumber": "592", + "score": 0.6667, + "text": " Abu Hurayra said, \"One of you looks at the mote in his brother's\neye while forgetting the stump in his own eye.\"" + }, + { + "rank": 8, + "collection": "muslim", + "hadithNumber": "2963 a", + "score": 0.6666, + "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + }, + { + "rank": 9, + "collection": "abudawud", + "hadithNumber": "4084", + "score": 0.6655, + "text": "\n

\n\nNarrated AbuJurayy Jabir ibn Salim al-Hujaymi:\n

\n\n\n\n

\n\nI saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say \"On you be peace,\" for \"On you be peace\" is a greeting for the dead, but say \"Peace be upon you\". \n

\n\n\n

\n\nI asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and you call Him, He returns it to you. \n

\n\n\n

\n\nI said: Give me some advice. He said: Do not abuse anyone. He said that he did not abuse a freeman, or a slave, or a camel or a sheep thenceforth. He said: Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. Have your lower garment halfway down your shin; if you cannot do it, have it up to the ankles. Beware of trailing the lower garment, for it is conceit and Allah does not like conceit. And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it.\n

\n\n\n" + }, + { + "rank": 10, + "collection": "bulugh", + "hadithNumber": "1471", + "score": 0.6634, + "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." + } + ], + "nomic": [ + { + "rank": 1, + "collection": "bukhari", + "hadithNumber": "6490", + "score": 0.8354, + "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" + }, + { + "rank": 2, + "collection": "bukhari", + "hadithNumber": "6061", + "score": 0.8165, + "text": "

\nNarrated Abu Bakra:\n\n

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, \n\"May Allah's Mercy be on you ! You have cut the neck of your friend.\" The Prophet repeated this \nsentence many times and said, \"If it is indispensable for anyone of you to praise someone, then he \nshould say, 'I think that he is so-and-so,\" if he really thinks that he is such. Allah is the One Who will \ntake his accounts (as He knows his reality) and no-one can sanctify anybody before Allah.\" (Khalid \nsaid, \"Woe to you,\" instead of \"Allah's Mercy be on you.\")" + }, + { + "rank": 3, + "collection": "bulugh", + "hadithNumber": "1471", + "score": 0.8111, + "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." + }, + { + "rank": 4, + "collection": "bukhari", + "hadithNumber": "6530", + "score": 0.8109, + "text": "

\nNarrated Abu Sa`id:\n\n

The Prophet said, \"Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to \nYour Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' \nThen Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) \nare the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine \n(persons).' At that time children will become hoary-headed and every pregnant female will drop \nher load (have an abortion) and you will see the people as if they were drunk, yet not drunk; But \nAllah's punishment will be very severe.\" \nThat news distressed the companions of the Prophet too much, and they said, \"O Allah's Apostle! \nWho amongst us will be that man (the lucky one out of one-thousand who will be saved from the \nFire)?\" He said, \"Have the good news that one-thousand will be from Gog and Magog, and the one (to \nbe saved will be) from you.\" The Prophet added, \"By Him in Whose Hand my soul is, I Hope that \nyou (Muslims) will be one third of the people of Paradise.\" On that, we glorified and praised Allah \nand said, \"Allahu Akbar.\" The Prophet then said, \"By Him in Whose Hand my soul is, I hope that you \nwill be one half of the people of Paradise, as your (Muslims) example in comparison to the other \npeople (non-Muslims), is like that of a white hair on the skin of a black ox, or a round hairless spot on \nthe foreleg of a donkey.\"" + }, + { + "rank": 5, + "collection": "muslim", + "hadithNumber": "2963 a", + "score": 0.8103, + "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + }, + { + "rank": 6, + "collection": "tirmidhi", + "hadithNumber": "2513", + "score": 0.809, + "text": "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said:\n\"Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.\"" + }, + { + "rank": 7, + "collection": "bukhari", + "hadithNumber": "6162", + "score": 0.8085, + "text": "

\nNarrated Abu Bakra:\n\n

A man praised another man in front of the Prophet. The Prophet said thrice, \"Wailaka (Woe on you) ! \nYou have cut the neck of your brother!\" The Prophet added, \"If it is indispensable for anyone of you \nto praise a person, then he should say, \"I think that such-and-such person (is so-and-so), and Allah is \nthe one who will take his accounts (as he knows his reality) and none can sanctify anybody before \nAllah (and that only if he knows well about that person.)\"." + }, + { + "rank": 8, + "collection": "nasai", + "hadithNumber": "3947", + "score": 0.8077, + "text": "It was narrated from Abu Musa that the Prophet said: \"The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.\"" + }, + { + "rank": 9, + "collection": "abudawud", + "hadithNumber": "4627", + "score": 0.8051, + "text": "Ibn \u2018Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. \u2019Umar came next and then \u2018Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." + }, + { + "rank": 10, + "collection": "adab", + "hadithNumber": "1146", + "score": 0.8041, + "text": " Ibn 'Abbas said, \"The most precious of people in my opinion is\nmy sitting companion. This is so much the case that he can step over the\nshoulders of people until he sits with me.\"" + } + ], + "mxbai": [ + { + "rank": 1, + "collection": "forty", + "hadithNumber": "18", + "score": 0.8147, + "text": "The felicitous person takes lessons from (the actions of) others." + }, + { + "rank": 2, + "collection": "bukhari", + "hadithNumber": "6490", + "score": 0.8022, + "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" + }, + { + "rank": 3, + "collection": "forty", + "hadithNumber": "3", + "score": 0.7969, + "text": "A Muslim is a mirror of the Muslim." + }, + { + "rank": 4, + "collection": "muslim", + "hadithNumber": "2963 a", + "score": 0.794, + "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + }, + { + "rank": 5, + "collection": "ibnmajah", + "hadithNumber": "4336", + "score": 0.792, + "text": " Sa\u2019eed\nbin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said:\n\u201cI supplicate Allah to bring you and I together in the marketplace\nof Paradise,\u201d Sa\u2019eed said: \u201cIs there a marketplace there?\u201d He\nsaid: \u201cYes. The Messenger of Allah (saw) told me that when the\npeople of Paradise enter it, they will take their places according to\ntheir deeds, and they will be given permission for a length of time\nequivalent to Friday on earth, when they will visit Allah. His Throne\nwill be shown to them and He will appear to them in one of the\ngardens of Paradise. Chairs of light and chairs of pearls and chairs\nof rubies and chairs of chrysolite and chairs of gold and chairs of\nsilver will be placed for them. Those who are of a lower status than\nthem, and none of them will be regarded as insignificant, will sit on\nsandhills of musk and camphor, and they will not feel that those who\nare sitting on chairs are seated better than them.\u201d\n\nAbu Hurairah said: \u201cI said: \u2018O Messenger of Allah, will we see our Lord?\u2019 He said: \u2018Yes. Do you dispute that you see the sun and the moon on the night when it is full?\u2019 We said: \u2018No.\u2019 He said: \u2018Likewise, you will not dispute that you see your Lord, the Glorified. There will be no one left in that gathering with whom Allah does not speak face to face, until He will say to a man among you: \u201cDo you not remember, O so-and-so, the day you did such and such?\u201d And He will remind him of some of his sins in this world. He will say: \u201cO Lord, have You not forgiven me?\u201d He will say: \u201cYes, it is by the vastness of My forgiveness that You have reached the position you are in.\u201d While they are like that, a cloud will cover them from above and will rain down on them perfume the like of whose fragrance they have never smelled before. Then He will say: \u201cGet up and go to the honor that has been prepared for you, and take whatever you desire.\u201d So we will go to a marketplace surrounded by the angels, in which there will be such things as eyes have never seen, ears have never heard and it has not entered the heart of man. Whatever we desire will be carried for us. Nothing will be bought or sold therein. In that marketplace the people of Paradise will meet one another. A man of elevated status will meet those who are of lower status than him, but none shall be regarded as insignificant, and he will be dazzled by the clothes that he sees on him. He will not finish the last of his conversation before better clothes appear on him. That is because no one should be sad there.\u2019\u201d\n\u201cHe said: \u2018Then we will go back to our homes where we will be met by our wives, and they will say: \u2018Welcome. You have come looking more handsome and with a better fragrance than when you left us.\u2019 And we will say: \u2018Today we sat with our Lord, the Compeller, the Glorified, and we deserve to come back as we have come back.\u2019\u201d" + }, + { + "rank": 6, + "collection": "adab", + "hadithNumber": "159", + "score": 0.7897, + "text": " Abu'd-Darda' used to say to people. \"We know you better than the\nveterinarian knows his animals. We recognise the best of you from the worst\nof you. The best of you is the one whose good is hoped for and the one\nwhose evil you are safe from. As for the worst of you, that is the person\nwhose good is not hoped for and whose evil you are not safe from and he\ndoes not free slaves.\"" + }, + { + "rank": 7, + "collection": "bukhari", + "hadithNumber": "3348", + "score": 0.7888, + "text": "

\nNarrated Abu Sa`id Al-Khudri:\n\n

The Prophet said, \"Allah will say (on the Day of Resurrection), 'O Adam.' Adam will reply, 'Labbaik \nwa Sa`daik', and all the good is in Your Hand.' Allah will say: 'Bring out the people of the fire.' Adam \nwill say: 'O Allah! How many are the people of the Fire?' Allah will reply: 'From every one thousand, \ntake out nine-hundred-and ninety-nine.' At that time children will become hoary headed, every \npregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be \ndrunken, but dreadful will be the Wrath of Allah.\" The companions of the Prophet asked, \"O Allah's \nApostle! Who is that (excepted) one?\" He said, \"Rejoice with glad tidings; one person will be from \nyou and one-thousand will be from Gog and Magog.\" \nThe Prophet further said, \"By Him in Whose Hands my life is, hope that you will be one-fourth of the \npeople of Paradise.\" We shouted, \"Allahu Akbar!\" He added, \"I hope that you will be one-third of the \npeople of Paradise.\" We shouted, \"Allahu Akbar!\" He said, \"I hope that you will be half of the people \nof Paradise.\" We shouted, \"Allahu Akbar!\" He further said, \"You (Muslims) (compared with non \nMuslims) are like a black hair in the skin of a white ox or like a white hair in the skin of a black ox \n(i.e. your number is very small as compared with theirs)." + }, + { + "rank": 8, + "collection": "riyadussalihin", + "hadithNumber": "466", + "score": 0.7864, + "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" + }, + { + "rank": 9, + "collection": "muslim", + "hadithNumber": "2536", + "score": 0.7854, + "text": "

\n'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." + }, + { + "rank": 10, + "collection": "nasai", + "hadithNumber": "384b", + "score": 0.7824, + "text": "(Another chain) with similarity." + } + ] +} \ No newline at end of file diff --git a/test results & reports/lexical vs hybrid vs semantic/report1.md b/test results & reports/lexical vs hybrid vs semantic/report1.md new file mode 100644 index 0000000..9bf8017 --- /dev/null +++ b/test results & reports/lexical vs hybrid vs semantic/report1.md @@ -0,0 +1,704 @@ +# Search Quality Report +**Query:** "comparing yourself to others" +**Date:** 2026-05-20 +**Modes tested:** lexical · hybrid · semantic +**Models tested:** openai-small-en · openai-small-multi · nomic · mxbai +**Results per case:** top 10 · semantic sections re-fetched with size=100 (matches production PHP behavior) + +--- + +## Models + +| Key | Full name | Params | Dimensions | Context | Provider | Cost | Index coverage | +|---|---|---|---|---|---|---|---| +| `openai-small-en` | text-embedding-3-small | Undisclosed | 1536 | 8191 tokens | OpenAI API | Per token (~$0.02/1M) | English only (~48k docs) | +| `openai-small-multi` | text-embedding-3-small | Undisclosed | 1536 | 8191 tokens | OpenAI API | Per token (~$0.02/1M) | English + Arabic (~180k docs) | +| `nomic` | nomic-embed-text-v1.5 | ~137M | 768 | 8192 tokens | Nomic AI — runs locally via Ollama | Free | English only (~48k docs) | +| `mxbai` | mxbai-embed-large-v1 | ~335M | 1024 | 512 tokens | mixedbread.ai — runs locally via Ollama | Free | English only (~48k docs) | + +**openai-small-en / openai-small-multi** — the same underlying OpenAI model (`text-embedding-3-small`), but indexed against different datasets. The `-en` variant embeds only English hadiths; the `-multi` variant embeds all English + Arabic hadiths (~180k total) so multilingual queries can surface Arabic-language results. Parameter count isn't published by OpenAI. Generally strong for English semantic matching. + +**nomic** (`nomic-embed-text-v1.5`) — 137M-parameter open-source model by Nomic AI. Standout feature: 8192-token context window, the longest of the four models, so even very long hadiths are embedded without truncation. Apache 2.0 licensed. Runs entirely locally via Ollama — no API cost, no data leaves the machine. + +**mxbai** (`mxbai-embed-large-v1`) — 335M-parameter model by mixedbread.ai, based on BERT-large architecture. The largest and most capable local model tested. The key trade-off: a short 512-token context window means longer hadiths get silently truncated at indexing time, which may affect recall on longer texts. Apache 2.0 licensed. Runs locally via Ollama. + +--- + +## LEXICAL ONLY + +### #1 — muslim 1776d · score: 17.99 +> "This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." + +**⚠ Misfire** — chain-of-transmission metadata. Keyword "compared" fires. + +--- + +### #2 — bukhari 3334 · score: 16.26 +> "Narrated Anas: The Prophet said, 'Allah will say to that person of the (Hell) Fire who will receive the least punishment, "If you had everything on the earth, would you give it as a ransom to free yourself (i.e. save yourself from this Fire)?" He will say, "Yes." Then Allah will say, "While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me."'" + +**⚠ Misfire** — "yourself" and "others" fire; topic is ransom on the Day of Judgment / shirk. + +--- + +### #3 — muslim 2431 · score: 16.19 +> "Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods." + +**⚠ Misfire** — "as compared to" fires; topic is the excellence of certain women. + +--- + +### #4 — bukhari 4816 · score: 14.90 +> "Narrated Ibn Mas'ud: (regarding) the Verse: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you.' (41.22) While two persons from Quraish and their brother-in-law from Thaqif were in a house, they said to each other, 'Do you think that Allah hears our talks?' Some said, 'He hears a portion thereof.' Others said, 'If He can hear a portion of it, He can hear all of it.' Then the following Verse was revealed: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you.' (41.22)" + +**⚠ Misfire** — "yourself" keyword; topic is Allah's knowledge of all things. + +--- + +### #5 — muslim 2939b · score: 14.88 +> "Mughira b. Shu'ba reported that none asked Allah's Apostle (may peace be upon him) about Dajjal more than I asked him. I said: What did you ask? Mughira replied: I said that the people alleged that he would have a mountain load of bread and mutton and rivers of water. Thereupon he said: He would be more insignificant in the eye of Allah compared with all this." + +**⚠ Misfire** — "compared" fires; topic is the Dajjal. + +--- + +### #6 — abudawud 4627 · score: 14.88 +> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." + +**⚠ Adjacent** — about ranking the Companions; not about self-comparison. + +--- + +### #7 — bukhari 6557 · score: 14.38 +> "Narrated Anas bin Malik: The Prophet said, 'Allah will say to the person who will have the minimum punishment in the Fire on the Day of Resurrection, "If you had things equal to whatever is on the earth, would you ransom yourself (from the punishment) with it?" He will reply, Yes. Allah will say, "I asked you a much easier thing than this while you were in the backbone of Adam, that is, not to worship others besides Me, but you refused and insisted to worship others besides Me."'" + +**⚠ Misfire** — duplicate of #2 concept; "yourself" and "others" fire. + +--- + +### #8 — bukhari 2219 · score: 14.33 +> "Narrated Sa'd that his father said: 'Abdur-Rahman bin 'Auf said to Suhaib, 'Fear Allah and do not ascribe yourself to somebody other than your father.' Suhaib replied, 'I would not like to say it even if I were given large amounts of money, but I say I was kidnapped in my childhood.'" + +**⚠ Misfire** — "ascribe yourself" fires; topic is lineage and identity. + +--- + +### #9 — bukhari 3628 · score: 14.19 +> "Narrated Ibn 'Abbas: Allah's Apostle in his fatal illness came out, wrapped with a sheet, and his head was wrapped with an oiled bandage. He sat on the pulpit, and praising and glorifying Allah, he said, 'Now then, people will increase but the Ansar will decrease in number, so much so that they, compared with the people, will be just like the salt in the meals. So, if any of you should take over the authority by which he can either benefit some people or harm some others, he should accept the goodness of their good people (i.e. Ansar) and excuse the faults of their wrong-doers.' That was the last gathering which the Prophet attended." + +**⚠ Misfire** — "compared with the people" fires; topic is the Prophet's last address about the Ansar. + +--- + +### #10 — bukhari 3655 · score: 14.04 +> "Narrated Ibn 'Umar: We used to compare the people as to who was better during the lifetime of Allah's Apostle. We used to regard Abu Bakr as the best, then 'Umar, and then 'Uthman." + +**⚠ Adjacent** — "compare the people" fires; topic is the ranking of the Companions. + +--- +--- + +## HYBRID — openai-small-en + +### #1 — abudawud 4627 · score: 0.0285 +> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." + +**⚠ Adjacent** — ranking Companions, not self-comparison. + +--- + +### #2 — muslim 2963a · score: 0.0261 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +**✅ On topic** — directly about comparing yourself to those above and below. + +--- + +### #3 — bukhari 6407 · score: 0.0223 +> "Narrated Abu Musa: The Prophet said, 'The example of the one who celebrates the Praises of his Lord (Allah) in comparison to the one who does not celebrate the Praises of his Lord, is that of a living creature compared to a dead one.'" + +**⚠ Misfire** — "comparison" fires; topic is dhikr vs. no dhikr. + +--- + +### #4 — muslim 1776d · score: 0.0164 +> "This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." + +**⚠ Misfire** — pulled in from lexical leg. + +--- + +### #5 — adab 328 · score: 0.0164 +> "Ibn 'Abbas said, 'When you want to mention your companion's faults, remember your own faults.'" + +**✅ On topic** — self-reflection before judging others. + +--- + +### #6 — bukhari 3334 · score: 0.0161 +> "Narrated Anas: The Prophet said, 'Allah will say to that person of the (Hell) Fire who will receive the least punishment, "If you had everything on the earth, would you give it as a ransom to free yourself?" He will say, "Yes." Then Allah will say, "While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me."'" + +**⚠ Misfire** — pulled in from lexical leg; topic is the Day of Judgment. + +--- + +### #7 — bukhari 6490 · score: 0.0161 +> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" + +**✅ On topic** — the core teaching on self-comparison. + +--- + +### #8 — muslim 2431 · score: 0.0159 +> "Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods." + +**⚠ Misfire** — pulled in from lexical leg. + +--- + +### #9 — riyadussalihin 466 · score: 0.0159 +> "Abu Hurairah (May Allah be pleased with him) reported: Messenger of Allah (PBUH) said, 'Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.' [Al-Bukhari and Muslim]. The narration in Al-Bukhari is: 'When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him.'" + +**✅ On topic** — same teaching as #7, extended wording. + +--- + +### #10 — bukhari 4816 · score: 0.0156 +> "Narrated Ibn Mas'ud: (regarding) the Verse: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you.' (41.22) While two persons from Quraish and their brother-in-law from Thaqif were in a house, they said to each other, 'Do you think that Allah hears our talks?' Some said, 'He hears a portion thereof.' Others said, 'If He can hear a portion of it, He can hear all of it.'" + +**⚠ Misfire** — pulled in from lexical leg. + +--- + +## HYBRID — openai-small-multi + +### #1 — abudawud 4627 · score: 0.0283 +> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." + +**⚠ Adjacent** — ranking Companions. + +--- + +### #2 — muslim 2963a · score: 0.0261 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +**✅ On topic** + +--- + +### #3 — bukhari 6407 · score: 0.0223 +> "Narrated Abu Musa: The Prophet said, 'The example of the one who celebrates the Praises of his Lord (Allah) in comparison to the one who does not celebrate the Praises of his Lord, is that of a living creature compared to a dead one.'" + +**⚠ Misfire** — "comparison" keyword; topic is dhikr. + +--- + +### #4 — tirmidhi 2323 · score: 0.0187 +> "Qa'is bin Abi Hazim said: I heard Mustawrid, a member of Banu Fihr, saying: The Messenger of Allah (s.a.w) said: 'The world compared to the Hereafter is but like what one of you gets when placing his finger into the sea, so look at what you draw from it.'" + +**⚠ Adjacent** — a comparison hadith, but the topic is the dunya vs. akhira, not self-comparison. Unique to this model (not in openai-small-en hybrid). + +--- + +### #5 — muslim 1776d · score: 0.0164 +> "This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." + +**⚠ Misfire** — lexical leg noise. + +--- + +### #6 — adab 328 · score: 0.0164 +> "Ibn 'Abbas said, 'When you want to mention your companion's faults, remember your own faults.'" + +**✅ On topic** + +--- + +### #7 — bukhari 3334 · score: 0.0161 +> "Narrated Anas: The Prophet said, 'Allah will say to that person of the (Hell) Fire who will receive the least punishment, "If you had everything on the earth, would you give it as a ransom to free yourself?" He will say, "Yes." Then Allah will say, "While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me."'" + +**⚠ Misfire** — lexical leg noise. + +--- + +### #8 — bukhari 6490 · score: 0.0161 +> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" + +**✅ On topic** + +--- + +### #9 — muslim 2431 · score: 0.0159 +> "Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods." + +**⚠ Misfire** — lexical leg noise. + +--- + +### #10 — riyadussalihin 466 · score: 0.0159 +> "Abu Hurairah (May Allah be pleased with him) reported: Messenger of Allah (PBUH) said, 'Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.' [Al-Bukhari and Muslim]. The narration in Al-Bukhari is: 'When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him.'" + +**✅ On topic** + +--- + +## HYBRID — nomic + +### #1 — abudawud 4627 · score: 0.0296 +> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." + +**⚠ Adjacent** — ranking Companions. + +--- + +### #2 — muslim 2963a · score: 0.0267 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +**✅ On topic** + +--- + +### #3 — bukhari 3655 · score: 0.0249 +> "Narrated Ibn 'Umar: We used to compare the people as to who was better during the lifetime of Allah's Apostle. We used to regard Abu Bakr as the best, then 'Umar, and then 'Uthman." + +**⚠ Adjacent** — ranking Companions; "compare" fires. + +--- + +### #4 — mishkat 6025 · score: 0.0214 +> "Ibn 'Umar said: In the time of the Prophet, we did not compare anyone with Abu Bakr. 'Umar came next and then Uthman. We would then leave the Prophet's companions without treating any as superior to others. Bukhari transmitted it. In a version by Abu Dawud, he said: When God's messenger was alive, we used to say that the most excellent member of the Prophet's people after himself was Abu Bakr, then 'Umar, then 'Uthman." + +**⚠ Adjacent** — same concept as #1 and #3; Companions ranking. + +--- + +### #5 — bukhari 3791 · score: 0.0206 +> "Narrated Abu Humaid: The Prophet said, 'The best of the Ansar families (homes) are the families of Banu An-Najjar, and then that of Banu 'Abdul Ash-hal, and then that of Banu Al-Harith, and then that of Banu Saida; and there is good in all the families of the Ansar.' Sa'd bin 'Ubada followed us and said, 'O Abu Usaid! Don't you see that the Prophet compared the Ansar and made us the last of them in superiority?' Then Sa'd met the Prophet and said, 'O Allah's Apostle! In comparing the Ansar's families as to the degree of superiority, you have made us the last of them.' Allah's Apostle replied, 'Isn't it sufficient that you are regarded amongst the best?'" + +**⚠ Misfire** — "compared" fires; topic is ranking of Ansar tribes. + +--- + +### #6 — bukhari 6407 · score: 0.0194 +> "Narrated Abu Musa: The Prophet said, 'The example of the one who celebrates the Praises of his Lord (Allah) in comparison to the one who does not celebrate the Praises of his Lord, is that of a living creature compared to a dead one.'" + +**⚠ Misfire** — "comparison" fires; topic is dhikr. + +--- + +### #7 — bukhari 3348 · score: 0.0167 +> "Narrated Abu Sa'id Al-Khudri: The Prophet said, 'Allah will say, "O Adam." Adam will reply, "Labbaik wa Sa'daik." Allah will say, "Bring out the people of the fire." Adam will say, "O Allah! How many are the people of the Fire?" Allah will reply: "From every one thousand, take out nine-hundred-and-ninety-nine." At that time children will become hoary headed, every pregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be drunken, but dreadful will be the Wrath of Allah.' [...] The Prophet further said, 'By Him in Whose Hands my life is, hope that you will be one-fourth of the people of Paradise.' [...] 'You (Muslims) compared with non-Muslims are like a black hair in the skin of a white ox or like a white hair in the skin of a black ox (i.e. your number is very small as compared with theirs).'" + +**⚠ Misfire** — "compared" fires; topic is the Day of Judgment and the proportion of Muslims in Paradise. + +--- + +### #8 — muslim 1776d · score: 0.0164 +> "This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." + +**⚠ Misfire** — lexical leg noise. + +--- + +### #9 — bukhari 6490 · score: 0.0164 +> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" + +**✅ On topic** + +--- + +### #10 — bukhari 3334 · score: 0.0161 +> "Narrated Anas: The Prophet said, 'Allah will say to that person of the (Hell) Fire who will receive the least punishment, "If you had everything on the earth, would you give it as a ransom to free yourself?" He will say, "Yes." Then Allah will say, "While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me."'" + +**⚠ Misfire** — lexical leg noise. + +--- + +## HYBRID — mxbai + +### #1 — muslim 2963a · score: 0.0270 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +**✅ On topic** + +--- + +### #2 — bukhari 3655 · score: 0.0259 +> "Narrated Ibn 'Umar: We used to compare the people as to who was better during the lifetime of Allah's Apostle. We used to regard Abu Bakr as the best, then 'Umar, and then 'Uthman." + +**⚠ Adjacent** — ranking Companions. + +--- + +### #3 — abudawud 4627 · score: 0.0218 +> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." + +**⚠ Adjacent** — ranking Companions; duplicate concept of #2. + +--- + +### #4 — muslim 1776d · score: 0.0164 +> "This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." + +**⚠ Misfire** — lexical leg noise. + +--- + +### #5 — forty 18 · score: 0.0164 +> "The felicitous person takes lessons from (the actions of) others." + +**✅ On topic** + +--- + +### #6 — bukhari 3334 · score: 0.0161 +> "Narrated Anas: The Prophet said, 'Allah will say to that person of the (Hell) Fire who will receive the least punishment, "If you had everything on the earth, would you give it as a ransom to free yourself?" He will say, "Yes." Then Allah will say, "While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me."'" + +**⚠ Misfire** — lexical leg noise. + +--- + +### #7 — bukhari 6490 · score: 0.0161 +> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" + +**✅ On topic** + +--- + +### #8 — muslim 2431 · score: 0.0159 +> "Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods." + +**⚠ Misfire** — lexical leg noise. + +--- + +### #9 — forty 3 · score: 0.0159 +> "A Muslim is a mirror of the Muslim." + +**✅ Adjacent** — metaphor about self-reflection through others. + +--- + +### #10 — bukhari 4816 · score: 0.0156 +> "Narrated Ibn Mas'ud: (regarding) the Verse: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you.' (41.22) While two persons from Quraish and their brother-in-law from Thaqif were in a house, they said to each other, 'Do you think that Allah hears our talks?' Some said, 'He hears a portion thereof.' Others said, 'If He can hear a portion of it, He can hear all of it.' Then the following Verse was revealed: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you.' (41.22)" + +**⚠ Misfire** — lexical leg noise. + +--- +--- + +## SEMANTIC — openai-small-en + +### #1 — adab 328 · score: 0.6896 +> "Ibn 'Abbas said, 'When you want to mention your companion's faults, remember your own faults.'" + +**✅ On topic** — self-reflection before judging others. + +--- + +### #2 — bukhari 6490 · score: 0.6896 +> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" + +**✅ On topic** — the core teaching on comparison. + +--- + +### #3 — riyadussalihin 466 · score: 0.6851 +> "Abu Hurairah (May Allah be pleased with him) reported: Messenger of Allah (PBUH) said, 'Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.' [Al-Bukhari and Muslim]. The narration in Al-Bukhari is: 'When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him.'" + +**✅ On topic** — same teaching with fuller wording. + +--- + +### #4 — ahmad 111 · score: 0.6775 +> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet 'Umar bin al-Khattab and ask him about three things. [...] He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." + +**✅ Adjacent** — the danger of feeling superior to others. + +--- + +### #5 — forty 18 · score: 0.6753 +> "The felicitous person takes lessons from (the actions of) others." + +**✅ On topic** + +--- + +### #6 — muslim 2963c · score: 0.6708 +> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors." + +**✅ On topic** — another narration of the core teaching; surfaces with size=100 (was absent from size=10 results). + +--- + +### #7 — adab 592 · score: 0.6669 +> "Abu Hurayra said, 'One of you looks at the mote in his brother's eye while forgetting the stump in his own eye.'" + +**✅ On topic** — self-awareness before judging others; Biblical parallel (Matthew 7:3). + +--- + +### #8 — muslim 2963a · score: 0.6666 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +**✅ On topic** — core teaching on self-comparison; surfaces with size=100 (was absent from size=10 results). + +--- + +### #9 — abudawud 4084 · score: 0.6659 +> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: [...] I said: Give me some advice. He said: Do not abuse anyone. [...] Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. [...] And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it." + +**✅ Adjacent** — advice about treating others and not shaming them for faults you share. + +--- + +### #10 — bulugh 1471 · score: 0.6640 +> "Ibn 'Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, 'He who imitates any people (in their actions) is considered to be one of them.' Related by Abu Dawud and Ibn Hibban graded it as Sahih." + +**⚠ Adjacent** — imitation/identification with others; loosely related. + +--- + +## SEMANTIC — openai-small-multi + +### #1 — adab 328 · score: 0.6898 +> "Ibn 'Abbas said, 'When you want to mention your companion's faults, remember your own faults.'" + +**✅ On topic** + +--- + +### #2 — bukhari 6490 · score: 0.6894 +> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" + +**✅ On topic** + +--- + +### #3 — riyadussalihin 466 · score: 0.6850 +> "Abu Hurairah (May Allah be pleased with him) reported: Messenger of Allah (PBUH) said, 'Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.' [Al-Bukhari and Muslim]. The narration in Al-Bukhari is: 'When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him.'" + +**✅ On topic** + +--- + +### #4 — ahmad 111 · score: 0.6779 +> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet 'Umar bin al-Khattab and ask him about three things. [...] He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." + +**✅ Adjacent** — the danger of feeling superior to others; surfaces with size=100 (was absent from size=10 results). + +--- + +### #5 — forty 18 · score: 0.6752 +> "The felicitous person takes lessons from (the actions of) others." + +**✅ On topic** — surfaces with size=100 (was absent from size=10 results). + +--- + +### #6 — muslim 2963c · score: 0.6709 +> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you." + +**✅ On topic** + +--- + +### #7 — adab 592 · score: 0.6667 +> "Abu Hurayra said, 'One of you looks at the mote in his brother's eye while forgetting the stump in his own eye.'" + +**✅ On topic** + +--- + +### #8 — muslim 2963a · score: 0.6666 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +**✅ On topic** + +--- + +### #9 — abudawud 4084 · score: 0.6655 +> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: [...] Do not abuse anyone. [...] Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. [...] And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it." + +**✅ Adjacent** — advice about treatment of others and not shaming. + +--- + +### #10 — bulugh 1471 · score: 0.6634 +> "Ibn 'Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, 'He who imitates any people (in their actions) is considered to be one of them.' Related by Abu Dawud and Ibn Hibban graded it as Sahih." + +**⚠ Adjacent** — imitation of others; loosely related. + +--- + +## SEMANTIC — nomic + +### #1 — bukhari 6490 · score: 0.8354 +> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" + +**✅ On topic** + +--- + +### #2 — bukhari 6061 · score: 0.8165 +> "Narrated Abu Bakra: A man was mentioned before the Prophet and another man praised him greatly. The Prophet said, 'May Allah's Mercy be on you! You have cut the neck of your friend.' The Prophet repeated this sentence many times and said, 'If it is indispensable for anyone of you to praise someone, then he should say, "I think that he is so-and-so," if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody before Allah.'" + +**⚠ Adjacent** — about praising others excessively / judging others. + +--- + +### #3 — bulugh 1471 · score: 0.8111 +> "Ibn 'Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, 'He who imitates any people (in their actions) is considered to be one of them.' Related by Abu Dawud and Ibn Hibban graded it as Sahih." + +**⚠ Adjacent** — imitation of others; loosely related. + +--- + +### #4 — bukhari 6530 · score: 0.8109 +> "Narrated Abu Sa'id: The Prophet said, 'Allah will say, "O Adam!" [...] "By Him in Whose Hand my soul is, I hope that you will be one half of the people of Paradise, as your (Muslims') example in comparison to the other people (non-Muslims), is like that of a white hair on the skin of a black ox, or a round hairless spot on the foreleg of a donkey."'" + +**⚠ Misfire** — "in comparison" fires; topic is the Day of Judgment and proportions of Paradise. + +--- + +### #5 — muslim 2963a · score: 0.8103 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +**✅ On topic** + +--- + +### #6 — tirmidhi 2513 · score: 0.8090 +> "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: 'Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy (so that you will) not belittle Allah's favors upon you.'" + +**✅ On topic** + +--- + +### #7 — bukhari 6162 · score: 0.8085 +> "Narrated Abu Bakra: A man praised another man in front of the Prophet. The Prophet said thrice, 'Wailaka (Woe on you)! You have cut the neck of your brother!' The Prophet added, 'If it is indispensable for anyone of you to praise a person, then he should say, "I think that such-and-such person is so-and-so," and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah.'" + +**⚠ Adjacent** — duplicate of #2 concept; about excessive praise. + +--- + +### #8 — nasai 3947 · score: 0.8077 +> "It was narrated from Abu Musa that the Prophet said: 'The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.'" + +**⚠ Misfire** — "superiority to other" fires; topic is 'Aishah's excellence. + +--- + +### #9 — abudawud 4627 · score: 0.8051 +> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." + +**⚠ Adjacent** — ranking Companions, not self-comparison. + +--- + +### #10 — adab 1146 · score: 0.8041 +> "Ibn 'Abbas said, 'The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me.'" + +**⚠ Misfire** — off topic; about valuing a companion. + +--- + +## SEMANTIC — mxbai + +### #1 — forty 18 · score: 0.8147 +> "The felicitous person takes lessons from (the actions of) others." + +**✅ On topic** + +--- + +### #2 — bukhari 6490 · score: 0.8022 +> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" + +**✅ On topic** + +--- + +### #3 — forty 3 · score: 0.7969 +> "A Muslim is a mirror of the Muslim." + +**✅ Adjacent** — metaphor about self-reflection through others. + +--- + +### #4 — muslim 2963a · score: 0.7940 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +**✅ On topic** + +--- + +### #5 — ibnmajah 4336 · score: 0.7920 +> "Sa'eed bin Al-Musayyab said that he met Abu Hurairah... [lengthy hadith about the marketplace of Paradise] '...Those who are of a lower status than them, and none of them will be regarded as insignificant, will sit on sandhills of musk and camphor, and they will not feel that those who are sitting on chairs are seated better than them.' [...] 'A man of elevated status will meet those who are of lower status than him, but none shall be regarded as insignificant... That is because no one should be sad there.'" + +**[needs review]** — lengthy hadith about the marketplace of Paradise; includes passages on people of different status meeting without any feeling of inferiority. + +--- + +### #6 — adab 159 · score: 0.7897 +> "Abu'd-Darda' used to say to people: 'We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves.'" + +**[needs review]** — about discerning the best and worst among people. + +--- + +### #7 — riyadussalihin 466 · score: 0.7864 +> "Abu Hurairah (May Allah be pleased with him) reported: Messenger of Allah (PBUH) said, 'Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.' [Al-Bukhari and Muslim]. The narration in Al-Bukhari is: 'When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him.'" + +**✅ On topic** + +--- + +### #8 — muslim 2536 · score: 0.7854 +> "'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." + +**⚠ Adjacent** — ranking generations; "best" comparison but not about self. + +--- + +### #9 — tirmidhi 2513 · score: 0.7821 +> "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: 'Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy (so that you will) not belittle Allah's favors upon you.'" + +**✅ On topic** + +--- + +### #10 — abudawud 4092 · score: 0.7821 +> "Narrated AbuHurayrah: A man who was beautiful came to the Prophet (saws). He said: Messenger of Allah, I am a man who likes beauty, and I have been given some of it, as you see. And I do not like that anyone excels me (in respect of beauty). Is it pride? He replied: No, pride is disdaining what is true and despising people." + +**[needs review]** — about a man concerned with being excelled by others in beauty; the Prophet defines pride as disdaining truth and despising people. This is the result that appeared in the UI but was absent from the original size=10 report. + +--- +--- + +## Summary + +| Case | On-topic / 10 | Notes | +|---|---|---| +| Lexical (all models) | 0 / 10 | All keyword misfires — "yourself", "others", "compared" dominate | +| Hybrid – openai-small-en | 3 / 10 | #7 and #9 rescued by semantic leg; heavy lexical noise in #4, #6, #8, #10 | +| Hybrid – openai-small-multi | 3 / 10 | Nearly identical to en-only; tirmidhi 2323 unique at #4 (adjacent) | +| Hybrid – nomic | 2 / 10 | Companions-ranking cluster (#1, #3, #4, #5) dominates; lexical noise in #8, #10 | +| Hybrid – mxbai | 2 / 10 | Companions-ranking cluster again; lexical noise throughout | +| Semantic – openai-small-en | 4 or 5 / 10 [needs review] | size=100: #6/#8 are new on-topic results (muslim 2963c/2963a); tirmidhi 2513 and bukhari 7528 drop out | +| Semantic – openai-small-multi | 4 or 5 / 10 [needs recount] | size=100: ahmad 111 at #4, forty 18 at #5 (both new); tirmidhi 2513 and bukhari 7528 drop out | +| Semantic – nomic | 4 / 10 | size=100: abudawud 4627 enters at #9, nasai 3948 drops; #1–#8 unchanged | +| Semantic – mxbai | 6 / 10 | size=100: ibnmajah 4336 (#5) and adab 159 (#6) and abudawud 4092 (#10) are new; riyadussalihin 7 / forty 19 / forty 29 drop out | + +> **Note on size=100:** Semantic sections were re-fetched with size=100 to match production PHP behavior. HNSW with larger size explores more candidates, surfacing higher-scoring docs that were missed at size=10. Rows marked [needs review] have either duplicate entries or results arguably not entirely on topic. + +**openai-small-en vs openai-small-multi (semantic):** With size=100 the two models converge further — both now show ahmad 111, forty 18, muslim 2963c and 2963a in top-10. The models use the same underlying embedding (text-embedding-3-small) and the same inference endpoint, so divergence only comes from index coverage (English-only vs English+Arabic). Arabic-query testing would reveal more meaningful differences. + +**Consistently correct hadiths across models (size=100):** +- **bukhari 6490** — appears in top-3 of every semantic case and in hybrid top-10 for all models. Ground-truth correct. +- **muslim 2963a** — appears in all 4 semantic cases (nomic #5, mxbai #4, en #8, multi #8) and all hybrid cases. Ground-truth correct. +- **riyadussalihin 466** — full-wording version of the same teaching; in openai en #3, openai multi #3, mxbai #7. +- **tirmidhi 2513** — now only in nomic (#6) and mxbai (#9); drops from openai semantic with size=100. +- **adab 328** — self-reflection angle; surfaces in both openai semantic cases at #1. +- **forty 18** — brief but on-topic; in mxbai #1, openai en #5, openai multi #5. + +**Recurring issue:** muslim 1776d (a chain-of-transmission note with no substantive content) appears in hybrid results for all four models at a tied score of 0.0164, pulled in from the lexical leg. Worth filtering out hadiths with very short or content-free text at indexing time. diff --git a/test results & reports/lexical vs semantic/test1/batch_report.md b/test results & reports/lexical vs semantic/test1/batch_report.md new file mode 100644 index 0000000..42e5651 --- /dev/null +++ b/test results & reports/lexical vs semantic/test1/batch_report.md @@ -0,0 +1,1344 @@ +# Batch Semantic Search Report +**Date:** 2026-05-25 +**Method:** Semantic search (HNSW), `size=100`, report shows top 10 per model +**Queries:** 13 + +--- + +## Query: "comparing yourself to others" + +### openai-small-en + +**#1** — adab 328 · score: 0.6896 +> Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults." + +**#2** — bukhari 6490 · score: 0.6896 +>

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is… + +**#3** — riyadussalihin 466 · score: 0.6851 +> Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you… + +**#4** — ahmad 111 · score: 0.6775 +> It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He… + +**#5** — forty 18 · score: 0.6753 +> The felicitous person takes lessons from (the actions of) others. + +**#6** — muslim 2963 c · score: 0.6708 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that… + +**#7** — adab 592 · score: 0.6669 +> Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye." + +**#8** — muslim 2963 a · score: 0.6666 +>

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should… + +**#9** — abudawud 4084 · score: 0.6659 +>

Narrated AbuJurayy Jabir ibn Salim al-Hujaymi:

I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the… + +**#10** — bulugh 1471 · score: 0.664 +> Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as… + + +### nomic + +**#1** — bukhari 6490 · score: 0.8354 +>

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is… + +**#2** — bukhari 6061 · score: 0.8165 +>

Narrated Abu Bakra:

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, "May Allah's Mercy be on you ! You have cut the neck of your friend." The… + +**#3** — bulugh 1471 · score: 0.8111 +> Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as… + +**#4** — bukhari 6530 · score: 0.8109 +>

Narrated Abu Sa`id:

The Prophet said, "Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the… + +**#5** — muslim 2963 a · score: 0.8103 +>

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should… + +**#6** — tirmidhi 2513 · score: 0.809 +> Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not… + +**#7** — bukhari 6162 · score: 0.8085 +>

Narrated Abu Bakra:

A man praised another man in front of the Prophet. The Prophet said thrice, "Wailaka (Woe on you) ! You have cut the neck of your brother!" The Prophet added, "If it is… + +**#8** — nasai 3947 · score: 0.8077 +> It was narrated from Abu Musa that the Prophet said: "The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food." + +**#9** — abudawud 4627 · score: 0.8051 +> Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the… + +**#10** — adab 1146 · score: 0.8041 +> Ibn 'Abbas said, "The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me." + + +### mxbai + +**#1** — forty 18 · score: 0.8147 +> The felicitous person takes lessons from (the actions of) others. + +**#2** — bukhari 6490 · score: 0.8022 +>

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is… + +**#3** — forty 3 · score: 0.7969 +> A Muslim is a mirror of the Muslim. + +**#4** — muslim 2963 a · score: 0.794 +>

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should… + +**#5** — ibnmajah 4336 · score: 0.792 +> Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace… + +**#6** — adab 159 · score: 0.7897 +> Abu'd-Darda' used to say to people. "We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for… + +**#7** — riyadussalihin 466 · score: 0.7864 +> Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you… + +**#8** — muslim 2536 · score: 0.7854 +>

'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second… + +**#9** — tirmidhi 2513 · score: 0.7821 +> Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not… + +**#10** — abudawud 4092 · score: 0.7821 +>

Narrated AbuHurayrah:

A man who was beautiful came to the Prophet (saws). He said: Messenger of Allah, I am a man who likes beauty, and I have been given some of it, as you see. And I do… + + +--- + +## Query: "aisha six years" + +### openai-small-en + +**#1** — bukhari 5134 · score: 0.7911 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained… + +**#2** — bukhari 5133 · score: 0.7872 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till… + +**#3** — muslim 1422 d · score: 0.7823 +> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house… + +**#4** — muslim 1422 b · score: 0.7807 +>

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old. + +**#5** — muslim 1422 c · score: 0.78 +>

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and… + +**#6** — mishkat 3129 · score: 0.7723 +> ‘A’isha said that the Prophet married her when she was seven, she was brought to live with him when she was nine bringing her toys with her, and he died when she was eighteen. Muslim transmitted it. + +**#7** — muslim 334 d · score: 0.7658 +>

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years," and the rest of the hadith is the same… + +**#8** — nasai 3378 · score: 0.7618 +> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls." + +**#9** — ibnmajah 1877 · score: 0.7572 +> It was narrated that: Abdullah said: “The Prophet married Aishah when she was seven years old, and consummated the marriage with her when she was nine, and he passed away when she was eighteen.” + +**#10** — nasai 3379 · score: 0.7566 +> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine." + + +### nomic + +**#1** — muslim 1422 d · score: 0.7981 +> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house… + +**#2** — bukhari 3948 · score: 0.7872 +>

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. + +**#3** — muslim 334 d · score: 0.7823 +>

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years," and the rest of the hadith is the same… + +**#4** — muslim 1422 b · score: 0.7789 +>

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old. + +**#5** — bulugh 228 · score: 0.7779 +> It is mentioned in al-Bazzar through another chain with the addition: "forty years." + +**#6** — abudawud 2240 · score: 0.7756 +>

Narrated Abdullah ibn Abbas:

The Messenger of Allah (saws) restored his daughter Zaynab to Abul'As on the basis of the previous marriage, and he did not do anything afresh.

… + +**#7** — shamail 380 · score: 0.7728 +> Mu'awiya said in a sermon: "The Prophet died (Allah bless him and give him peace) when he was sixty-three years of age, as did Abu Bakr and 'Umar, and I am now sixty-three years of age.” + +**#8** — muslim 1422 c · score: 0.771 +>

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and… + +**#9** — mishkat 5489 · score: 0.7701 +> Asma' daughter of Yazid b. as-Sakan reported the Prophet a saying, "The dajjal will remain in the earth forty years, a year being like a month, a month like a week, a week like a day, and a day like… + +**#10** — bukhari 5133 · score: 0.7689 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till… + + +### mxbai + +**#1** — bukhari 3894 · score: 0.8627 +>

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on… + +**#2** — nasai 3255 · score: 0.8612 +> It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine. + +**#3** — bukhari 5133 · score: 0.86 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till… + +**#4** — ibnmajah 1876 · score: 0.8522 +> It was narrated that: Aishah said: “The Messenger of Allah married me when I was six years old. Then we came to Al-Madinah and settled among Banu Harith bin Khazraj. I became ill and my hair fell… + +**#5** — bukhari 5134 · score: 0.8507 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained… + +**#6** — bukhari 5158 · score: 0.849 +>

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him… + +**#7** — nasai 3378 · score: 0.8465 +> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls." + +**#8** — nasai 3379 · score: 0.8449 +> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine." + +**#9** — muslim 1422 d · score: 0.8446 +> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house… + +**#10** — nasai 3258 · score: 0.8426 +> It was narrated from 'Aishah that the Messenger of Allah married her when she was nine and he died when she was eighteen years old. + + +--- + +## Query: "music" + +### openai-small-en + +**#1** — mishkat 3153 · score: 0.6246 +> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn… + +**#2** — malik 1748 · score: 0.6187 +>

Yahya related to me from Malik from Abu Hazim ibn Dinar that Abu Idris al-Khawlani said, "I entered the Damascus mosque and there was a young man with a beautiful mouth and white teeth sitting… + +**#3** — abudawud 1468 · score: 0.617 +>

Narrated Al-Bara' ibn Azib:

The Prophet (saws) said: Beautify the Qur'an with your voices.

+ +**#4** — adab 786 · score: 0.6146 +> Ibn 'Abbas said about "There are some people who trade in distracting tales" (31:5) that it means singing and things like it. + +**#5** — bukhari 439 · score: 0.6132 +>

Narrated `Aisha:

There was a black slave girl belonging to an 'Arab tribe and they manumitted her but she remained with them. The slave girl said, "Once one of their girls (of that tribe) came… + +**#6** — muslim 2114 · score: 0.6126 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. + +**#7** — adab 1265 · score: 0.6111 +> Ibn 'Abbas said that the words of Allah in Luqman (35:6), "There are people who trade in distracting tales" mean "singing and things like it." + +**#8** — muslim 793 d · score: 0.6071 +>

Buraida reported on the authority of his father that the Messenger of Allah (may peace be upon him) had said: 'Abdullah b. Qais or al-Ash'ari has been gifted with a sweet melodious voice out of… + +**#9** — forty 19 · score: 0.6067 +> Indeed, in poetry there is wisdom and in eloquence there is magic. + +**#10** — forty 25 · score: 0.606 +>

Also on the authority of Abu Dharr (may Allah be pleased with him): Some people from amongst the Companions of the Messenger of Allah (peace and blessings of Allah be upon him) said to the Prophet… + + +### nomic + +**#1** — muslim 2114 · score: 0.8074 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. + +**#2** — mishkat 3153 · score: 0.8052 +> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn… + +**#3** — tirmidhi 3728 · score: 0.7873 +> Narrated Anas bin Malik: "The advent of the Prophet (SAW) was on Monday and 'Ali performed Salat on Tuesday." + +**#4** — muslim 892 a · score: 0.7864 +>

'A'isha reported: Abu Bakr came to see me and I had two girls with me from among the girls of the Ansar and they were singing what the Ansar recited to one another at the Battle of Bu'ath. They… + +**#5** — tirmidhi 3734 · score: 0.7863 +> Narrated Ibn 'Abbas: "The first to perform Salat was 'Ali." + +**#6** — nasai 342 · score: 0.7859 +> It was narrated that Ibn 'Umar said: "Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH)." + +**#7** — bukhari 952 · score: 0.7855 +>

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said… + +**#8** — nasai 71 · score: 0.7854 +> It was narrated that Ibn 'Umar said: "Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH)." + +**#9** — bukhari 1621 · score: 0.7853 +>

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf of the Ka`ba tied with a string or something else. So the Prophet cut that string. + +**#10** — ibnmajah 1898 · score: 0.7842 +> It was narrated that 'Aishah said: “Abu Bakr entered upon me, and there were two girls from the Ansar with me, singing about the Day of Bu'ath.” She said: “And they were not really singers. Abu Bakr… + + +### mxbai + +**#1** — muslim 892 b · score: 0.7705 +>

This hadith has been narrated by Hisham with the same chain of transmitters, but there the words are:" Two girls were playing upon a tambourine." + +**#2** — tirmidhi 2780b · score: 0.7596 +> Another chain with a similar narration + +**#3** — tirmidhi 2783b · score: 0.7578 +> (Another chain) with a similar narration + +**#4** — tirmidhi 1599 · score: 0.7559 +> Another chain with similar narration. + +**#5** — mishkat 2214 · score: 0.752 +> Ibn ‘Abbās reported God’s messenger as saying, “Gabriel taught me to recite in one mode, and when I replied to him and kept asking him to give me more he did so till he reached seven modes." Ibn… + +**#6** — mishkat 3153 · score: 0.7513 +> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn… + +**#7** — hisn 94 · score: 0.7495 +> Subḥānallāhi wa biḥamdih: `adada khalqih, wa riḍā nafsih, wa zinata `arshih, wa midāda kalimātih. Glory is to Allah and praise is to… + +**#8** — abudawud 942 · score: 0.7494 +> ‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. + +**#9** — hisn 181 · score: 0.7488 +> Alhamdu lillāhi ḥamdan kathīran tayyiban mubārakan fīh, ghayra makfiyyin wa lā muwadda`in, wa lā mustaghnan `anhu Rabbanā. All praise… + +**#10** — bukhari 5944b · score: 0.7477 +>

Narrated `Abdullah:

(As above 827). + + +--- + +## Query: "actions are by intentions" + +### openai-small-en + +**#1** — forty 33 · score: 0.9241 +> Actions are through intentions. + +**#2** — nasai 75 · score: 0.7223 +> It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: "The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus… + +**#3** — nasai 3794 · score: 0.7109 +> It was narrated from 'Umar bin Al-Khattab that the Prophet said: "Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of… + +**#4** — ibnmajah 4229 · score: 0.7081 +> It was narrated from Abu Hurairah that the Messenger of Allah (saw) said: “People will be resurrected (and judged) according to their intentions.” + +**#5** — ahmad 168 · score: 0.7077 +> Umar said: I heard the Messenger of Allah ﷺ say: `Deeds are but by intentions and each man will have but that which he intended. If a man's migration was for the sake of Allah, then his migration was… + +**#6** — abudawud 2201 · score: 0.6958 +> ‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His… + +**#7** — nasai 3437 · score: 0.6949 +> It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: "Actions are but by intentions, and each man will have but that which he intended.… + +**#8** — tirmidhi 1647 · score: 0.6894 +> Narrated 'Umar bin Al-Khattab:

That the Messenger of Allah (saws) said: "Deeds are but with intentions, and for the man is only what he intended. So one whose emigration was to Allah and His… + +**#9** — muslim 130 · score: 0.6872 +>

It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him) observed: He who intended to do good, but did not do it, one good was recorded for him, and he… + +**#10** — ibnmajah 4230 · score: 0.6857 +> It was narrated from Jabir that the Messenger of Allah (saw) said: “People will be gathered (on the Day of Resurrection) according to their intentions.” + + +### nomic + +**#1** — bukhari 6607 · score: 0.826 +>

Narrated Sahl bin Sa`d:

There was a man who fought most bravely of all the Muslims on behalf of the Muslims in a battle (Ghazwa) in the company of the Prophet. The Prophet looked at him and… + +**#2** — abudawud 1368 · score: 0.8197 +> Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those… + +**#3** — ahmad 184 · score: 0.8165 +> It was narrated that Yahya bin Ya'mar and Humaid bin ‘Abdur­-Rahman al­-Himyari said: We met 'Abdullah bin 'Umar and discussed the divine decree (al qadar) and what others said concerning it. He… + +**#4** — bukhari 1559 · score: 0.8164 +>

Narrated Abu Musa:

The Prophet sent me to some people in Yemen and when I returned, I found him at Al-Batha. He asked me, "With what intention have you assumed Ihram (i.e. for Hajj or for Umra… + +**#5** — mishkat 3444 · score: 0.8156 +> ‘Imran b. Husain told that he heard God’s Messenger say, “Vows are of two kinds, so if anyone vows to do an act of obedience, that is for God and must be fulfilled; but if anyone vows, to do an act… + +**#6** — bulugh 918 · score: 0.8098 +> Narrated [Ibn 'Abbas (RA)]: Allah's Messenger (SAW) said, "There should neither be harming (of others without cause), nor reciprocating harm (between two parties)." [Reported by Ahmad and Ibn Majah]. + +**#7** — ibnmajah 2120 · score: 0.8093 +> It was narrated from Abu Hurairah that the Messenger of Allah (SAW) said: "The oath is only according to the intention of the one who requests the oath to be taken."' + +**#8** — bukhari 7551 · score: 0.8077 +>

Narrated `Imran:

I said, "O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, "Everybody will find easy to do such deeds as will lead him to his destined… + +**#9** — adab 490 · score: 0.8071 +> Abu Dharr reported that the Prophet, may Allah bless him and grant him peace, reported that Allah, the Blessed and Exalted, said: "My slaves! I have forbidden injustice for Myself and I have made it… + +**#10** — tirmidhi 2007 · score: 0.807 +> Hudhaifah narrated that the Messenger of Allah said: “Do not be a people without a will of your own, saying: 'If people treat us well, we will treat them well; and if they do wrong, we will do… + + +### mxbai + +**#1** — forty 33 · score: 0.988 +> Actions are through intentions. + +**#2** — forty 5 · score: 0.864 +> The person guiding (someone) to do a good deed, is like the one performing the good deed. + +**#3** — forty 18 · score: 0.8358 +> The felicitous person takes lessons from (the actions of) others. + +**#4** — abudawud 1368 · score: 0.8291 +> Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those… + +**#5** — nasai 3794 · score: 0.8226 +> It was narrated from 'Umar bin Al-Khattab that the Prophet said: "Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of… + +**#6** — nasai 75 · score: 0.8221 +> It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: "The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus… + +**#7** — muslim 2648 b · score: 0.8211 +>

This hadith has been transmitted on the authority of Jabir b. Abdullah with the same wording (and includes these words):" Allah's Messenger (may peace be upon him) said: Every doer of deed is… + +**#8** — bukhari 7551 · score: 0.8187 +>

Narrated `Imran:

I said, "O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, "Everybody will find easy to do such deeds as will lead him to his destined… + +**#9** — forty 1 · score: 0.8183 +>

It is narrated on the authority of Amirul Mu'minin, Abu Hafs 'Umar bin al-Khattab (ra) who said: I heard the Messenger of Allah (saws) say: "Actions are (judged) by motives (niyyah), so each man… + +**#10** — nasai 4484 · score: 0.8169 +> It was narrated from Ibn 'Umar that: a man told the Messenger of Allah that he was always being cheated. The Messenger of Allah said to him: "When you make a deal, say: There is no intention of… + + +--- + +## Query: "ramadan" + +### openai-small-en + +**#1** — mishkat 1962 · score: 0.7704 +> Abu Huraira reported God’s messenger as saying, “Ramadan, a blessed month, has come to you during which God has made it obligatory for you to fast. In it the gates of heaven are opened, the gates of… + +**#2** — muslim 1081 a · score: 0.7665 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal)… + +**#3** — muslim 1079 c · score: 0.7643 +>

This hadith is reported by Abu Huraira (with a slight alteration of words) that the Messenger of Allah (may peace be upon him) said:" When (the month of) Ramadan begins." + +**#4** — riyadussalihin 1194 · score: 0.7628 +> 'Aishah (May Allah be pleased with her) reported: The Messenger of Allah (PBUH) used to strive more in worship during Ramadan than he strove in any other time of the year; and he would devote himself… + +**#5** — muslim 1163 a · score: 0.7614 +>

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent… + +**#6** — muslim 1145 b · score: 0.7592 +>

Salama b. Akwa' reported: We, during the lifetime of the Messenger of Allah (may peace be upon him), in one month of Ramadan (observed fast according to our liking). He who wished to fast lasted… + +**#7** — muslim 1080 b · score: 0.7579 +>

Ibn Umar reported that Allah's Messenger (may peace be upon him) made a mention of Ramadan and he with the gesture of his hand said: The month is thus and thus. (He then withdrew his thumb at the… + +**#8** — muslim 1080 e · score: 0.7564 +>

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have… + +**#9** — abudawud 2429 · score: 0.7543 +> Narrated Abu Hurairah: The Messenger of Allah (saws) as saying: The most excellent fast after Ramadan is Allah's month al-Muharram, and the most excellent prayer after the prescribed prayer is the… + +**#10** — ibnmajah 3925 · score: 0.7539 +> It was narrated from Talhah bin ‘Ubaidullah that two men from Bali came to the Messenger of Allah (saw). They had become Muslim together, but one of them used to strive harder than the other. The one… + + +### nomic + +**#1** — muslim 1157 a · score: 0.8212 +>

Ibn Abbas (Allah be pleased with both of them) reported: The Messenger of Allah (may peace be upon him) did not fast throughout any month except during ramadan. And when he observed fast (he… + +**#2** — bulugh 163 · score: 0.819 +> Narrated Abu Sa'id al-Khudri (RA): I heard Allah's Messenger (SAW) saying: "No Salat (prayer) is to be offered after the morning prayer until the sun rises, or after the afternoon prayer until the… + +**#3** — abudawud 1611 · score: 0.8174 +> Ibn ‘Umar said : The Messenger of Allah(may peace be upon him) prescribed as zakat payable by slave and freeman, male and female, among the muslims on closing the fast of Ramadan one sa of dried… + +**#4** — ahmad 163 · score: 0.813 +> Abu ‘Ubaid said: I was present at Eid with ‘Umar, and he started with the prayer before the khutbah. He said: The Messenger of Allah ﷺ forbade fasting on these two days. The day of al-Fitr is the day… + +**#5** — malik 629 · score: 0.8107 +>

Yahya related to me from Malik from Nafi from Abdullah ibn Umar that the Messenger of Allah, may Allah bless him and grant him peace, made the zakat of breaking the fast at the end of Ramadan… + +**#6** — abudawud 1357 · score: 0.8107 +> Narrated Ibn 'Abbas: I spent a night in the house of my maternal aunt Maimunah, daughter of al-Harith. The Prophet (saws) offered the night prayer. He then came and prayed four rak'ahs and slept. He… + +**#7** — mishkat 2048 · score: 0.8106 +> Abu Sa'id al-Khudri said God’s messenger forbade fasting on the day of breaking the fast of Ramadan and on the day of sacrifice. (Bukhari and Muslim.) + +**#8** — muslim 979 a · score: 0.81 +>

Abu Sa'id al-Khudri reported Allah's Messenger (way peace be upon him) as saying: No sadaqa (zakat) is payable on less than five wasqs of (dates or grains), on less than five camel-heads and on… + +**#9** — malik · score: 0.8099 +>

Malik said, "There is no harm in someone who is in itikaf entering into a marriage contract as long as there is no physical relationship. A woman in itikaf may also be betrothed as long as there… + +**#10** — muslim 1167 a · score: 0.8096 +>

Abu Sa'id al-Khudri (Allah be pleased with him) reported that Allah's Messenger (may peace be upon him) spent in devotion (in i'tikaf) the middle ten nights of the month of Ramadan, and when… + + +### mxbai + +**#1** — muslim 1080 e · score: 0.8869 +>

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have… + +**#2** — muslim 1080 f · score: 0.882 +>

'Abdullah b. 'Umar (Allah be pleased with both of them) reported Allah's Messenger (may peace be upon him) as saying: The month (of Ramadan) may consist of twenty nine days; so when you see the… + +**#3** — muslim 1163 a · score: 0.8815 +>

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent… + +**#4** — bukhari 1900 · score: 0.8801 +>

Narrated Ibn `Umar:

I heard Allah's Apostle saying, "When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting;… + +**#5** — mishkat 2047 · score: 0.8797 +> Abu Ayyub al-Ansari told that God’s messenger said, “If anyone fasts during Ramadan, then follows it with six days in Shawwal, it will be like a perpetual fast.” Muslim transmitted it. + +**#6** — mishkat 1817 · score: 0.8785 +> Ibn 'Abbas said, “At the end of Ramadan bring forth the sadaqa relating to your fast. God's messenger prescribed this sadaqa as a sa' of dried dates or barley, or half a sa' of wheat… + +**#7** — riyadussalihin 1167 · score: 0.8784 +> Abu Hurairah (May Allah be pleased with him) reported: The Messenger of Allah (PBUH) said, "The best month for observing Saum (fasting) after Ramadan is Muharram, and the best Salat after the… + +**#8** — muslim 1116 a · score: 0.8783 +>

Abu Sa'id al-Khudri (Allah be pleased with him) reported: We went out on an expedition with Allah's Messenger (may peace be upon him) on the 16th of Ramadan. Some of us fasted and some of us… + +**#9** — muslim 1081 a · score: 0.878 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal)… + +**#10** — riyadussalihin 1225 · score: 0.876 +> Ibn 'Abbas (May Allah be pleased with them) reported: The Messenger of Allah (PBUH) said, "Do not observe Saum (fasting) before the advent of Ramadan. Observe Saum at sighting of the crescent of… + + +--- + +## Query: "jesus" + +### openai-small-en + +**#1** — bukhari 3444 · score: 0.6949 +>

Narrated Abu Huraira:

The Prophet said, "Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus… + +**#2** — muslim 2937 a · score: 0.6918 +>

An-Nawwas b. Sam`an reported that Allah's Messenger (may peace be upon him) made a mention of the Dajjal one day in the morning. He (saws) sometimes described him to be insignificant and… + +**#3** — mishkat 5716 · score: 0.6859 +> Abu Huraira reported God's messenger as saying, "On the night when I was taken up to heaven, I met Moses who may be described as a lanky man with somewhat curly hair who resembled one of the men of… + +**#4** — bukhari 3448 · score: 0.6841 +>

Narrated Abu Huraira:

Allah's Apostle said, "By Him in Whose Hands my soul is, surely (Jesus,) the son of Mary will soon descend amongst you and will judge mankind justly (as a Just Ruler); he… + +**#5** — muslim 2897 · score: 0.6785 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The Last Hour would not come until the Romans would land at al-A'maq or in Dabiq. An army consisting of the best… + +**#6** — muslim 2365 c · score: 0.6774 +>

Abu Huraira reported many ahadith from Allah's Messenger (may peace be upon him) and one is that Allah's Messenger (may peace be upon him) said: I am most close to Jesus, son of Mary, among the… + +**#7** — muslim 2365 b · score: 0.6765 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to… + +**#8** — abudawud 4324 · score: 0.6757 +>

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of… + +**#9** — mishkat 2288 · score: 0.6753 +> Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate,… + +**#10** — mishkat 5608 · score: 0.6739 +> Hudhaifa and Abu Huraira reported God's messenger as saying, "God who is blessed and exalted will collect mankind and the believers will stand till paradise is brought near them. They will then go to… + + +### nomic + +**#1** — mishkat 1214 · score: 0.7989 +> ‘A’isha told how God’s Messenger said when he awoke during the night, “There is no god but Thee. Glory be to Thee, O God, and praise be to Thee. I ask for Thy forgiveness of my sin, and I ask for Thy… + +**#2** — bukhari 1209 · score: 0.7957 +>

Narrated Aisha:

I used to stretch my legs towards the Qibla of the Prophet while he was praying; whenever he prostrated he touched me, and I would withdraw my legs, and whenever he stood up, I… + +**#3** — bukhari 3392 · score: 0.7952 +>

Narrated `Aisha:

The Prophet returned to Khadija while his heart was beating rapidly. She took him to Waraqa bin Naufal who was a Christian convert and used to read the Gospels in Arabic… + +**#4** — muslim 196 c · score: 0.792 +>

Anas b. Malik said: The Apostle of Allah (may peace be upon him) said: I would be the first intercessor in the Paradise and no apostle amongst the apostles has been testified (by such a large… + +**#5** — muslim 201 · score: 0.7917 +>

Abu Zubair heard Jabir b. Abdullah reporting it from the Apostle of Allah (may peace be upon him): For every apostle was a prayer with which he prayed (to his Lord) for his Ummah, but I have… + +**#6** — bukhari 516 · score: 0.7907 +>

Narrated Abu Qatada Al-Ansari:

Allah's Apostle was praying and he was carrying Umama the daughters of Zainab, the daughter of Allah's Apostle and she was the daughter of 'As bin Rabi`a bin… + +**#7** — bulugh 226 · score: 0.7903 +> Narrated Abu Qatada (RA): Allah's Messenger (SAW) was (one time) offering prayer while he was carrying Umama, daughter of Zainab, when he prostrated he put her down and when he stood up he lifted her… + +**#8** — mishkat 936 · score: 0.7895 +> Ruwaih' reported God’s Messenger as saying, “If anyone invokes a blessing on Muhammad saying, ‘O God, cause him to occupy the place near Thee on the day of resurrection’, he will be guaranteed my… + +**#9** — mishkat 5572 · score: 0.7893 +> Anas reported the Prophet as saying, "The believers will be restrained on the day of resurrection so that they will be concerned about that and express a desire to find an intercessor with their Lord… + +**#10** — muslim 200 a · score: 0.789 +>

Anas b. Malik reported: Verily the Apostle of Allah (may peace be upon him) said: There is for every apostle a prayer with which he prays (to Allah) for his Ummah. I have reserved my prayer for… + + +### mxbai + +**#1** — abudawud 4324 · score: 0.826 +>

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of… + +**#2** — mishkat 2288 · score: 0.8246 +> Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate,… + +**#3** — bukhari 3438 · score: 0.8234 +>

Narrated Ibn `Abbas:

The Prophet said, "I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of… + +**#4** — muslim 194 a · score: 0.8198 +>

Abu Huraira reported: Meat was one day brought to the Messenger of Allah (may peace be upon him) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of… + +**#5** — mishkat 1897 · score: 0.8186 +> ‘A’isha reported God’s messenger as saying, “Everyone of the children of Adam has been created with three hundred and sixty joints, so he who declares God’s greatness, praises God, declares that He… + +**#6** — abudawud 4641 · score: 0.8183 +> ‘Awf said: I heard al-Hajjaj addressing the people say: The similitude of ‘Uthman with Allah is like the similitude of Jesus son of Mary. He then recited the following verse and explained it:… + +**#7** — muslim 2368 · score: 0.8175 +>

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person… + +**#8** — bukhari 7510 · score: 0.8169 +>

Narrated Ma`bad bin Hilal Al-`Anzi:

We, i.e., some people from Basra gathered and went to Anas bin Malik, and we went in company with Thabit Al-Bunnani so that he might ask him about the… + +**#9** — bukhari 3441 · score: 0.816 +>

Narrated Salim from his father:

No, By Allah, the Prophet did not tell that Jesus was of red complexion but said, "While I was asleep circumambulating the Ka`ba (in my dream), suddenly I saw a… + +**#10** — bukhari 3443 · score: 0.8156 +>

Narrated Abu Huraira:

Allah's Apostle said, "Both in this world and in the Hereafter, I am the nearest of all the people to Jesus, the son of Mary. The prophets are paternal brothers; their… + + +--- + +## Query: "sex" + +### openai-small-en + +**#1** — bukhari 1545 · score: 0.6616 +>

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He… + +**#2** — malik 1824 · score: 0.6498 +>

Malik related to me from Zayd ibn Aslam from Ata ibn Yasar that the Messenger of Allah, may Allah bless him and grant him peace, said, "Whomever Allah protects from the evil of two things will… + +**#3** — bulugh 1012 · score: 0.6451 +> Sa'id (bin Mansur) also reported something similar from 'Ali (RA) and added: "And (if) she has something like a horn (Qarn) (coming out of her vagina), her husband then has the right to divorce her… + +**#4** — mishkat 3190 · score: 0.6449 +> Abu Sa'id al-Khudri reported God's Messenger as saying, “The most serious breach of trust in God’s sight on the day of resurrection ...” A version has, “Among those who will have the worst position… + +**#5** — mishkat 3341 · score: 0.6443 +> Ibn ‘Umar said that when a girl with whom intercourse might be had was given as a present, or sold, or set free, it was necessary to wait till she had had a menstrual period, but that this was… + +**#6** — muslim 1435 a · score: 0.6418 +>

Jabir (Allah be pleased with him) declared that the Jews used to say: When a man has intercourse with his wife through the vagina but being on her back. the child will have squint, so the verse… + +**#7** — mishkat 86 · score: 0.6409 +> Abu Huraira reported God's messenger as saying, “God has decreed for man his portion of fornication which he will inevitably commit. The fornication of the eye consists in looking, and of the tongue… + +**#8** — malik 1135 · score: 0.6395 +>

Yahya related to me from Malik from Ibn Shihab, and he had heard from al-Qasim ibn Muhammad that they said, "When a free man marries a slave-girl and consummates the marriage, she makes him… + +**#9** — muslim 1438 a · score: 0.6379 +>

Abu Sirma said to Abu Sa'id al Khadri (Allah he pleased with him): 0 Abu Sa'id, did you hear Allah's Messenger (may peace be upon him) mentioning al-'azl? He said: Yes, and added: We went out… + +**#10** — bukhari 6818 · score: 0.6361 +>

Narrated Abu Huraira:

The Prophet said, "The boy is for (the owner of) the bed and the stone is for the person who commits illegal sexual intercourse.' + + +### nomic + +**#1** — mishkat 3143 · score: 0.8485 +> ‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful." (Bukhari and Muslim.) + +**#2** — muslim 348 a · score: 0.8351 +>

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar… + +**#3** — bulugh 995 · score: 0.8327 +> Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, "The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)." [Agreed… + +**#4** — bulugh 119 · score: 0.8325 +> Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash… + +**#5** — bulugh 110 · score: 0.8277 +> Narrated Abu Huraira (rad): Allah’s Messenger (saw) said that, “If one of you sits between her legs (of a woman) and penetrates her, Ghusl (bath) is obligatory.” [Agreed upon]. + +**#6** — muslim 1418 · score: 0.8261 +>

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse… + +**#7** — abudawud 265 · score: 0.826 +> Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given) + +**#8** — muslim 346 b · score: 0.8254 +>

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his… + +**#9** — bulugh 117 · score: 0.8218 +> Narrated Abu Sa’id Al-Khudri (rad): Allah’s Messenger (saw) said, “If one of you has sexual intercourse with his wife and wishes to repeat he should perform ablution between them” [Reported by… + +**#10** — muslim 321 c · score: 0.8205 +>

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. + + +### mxbai + +**#1** — bulugh 117 · score: 0.8391 +> A-Hakim added: “Ablution makes one active for repeating (the sexual act).” + +**#2** — muslim 321 c · score: 0.8145 +>

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. + +**#3** — muslim 348 a · score: 0.8112 +>

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar… + +**#4** — bukhari 1545 · score: 0.8087 +>

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He… + +**#5** — mishkat 3143 · score: 0.8082 +> ‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful." (Bukhari and Muslim.) + +**#6** — abudawud 265 · score: 0.8081 +> Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given) + +**#7** — mishkat 330 · score: 0.8072 +> Ibn ‘Umar used to say, “A man’s kiss to his wife and his touching her with his hand are connected with sexual intercourse, and anyone who kisses his wife or touches her with his hand must perform… + +**#8** — muslim 1418 · score: 0.8048 +>

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse… + +**#9** — bukhari 293 · score: 0.804 +>

Narrated Ubai bin Ka`b:

I asked Allah's Apostle about a man who engages in sexual intercourse with his wife but does not discharge. He replied, "He should wash the parts which comes in contact… + +**#10** — muslim 346 b · score: 0.8031 +>

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his… + + +--- + +## Query: "marriage" + +### openai-small-en + +**#1** — ibnmajah 1847 · score: 0.7042 +> It was narrated from Ibn Abbas that: the Messenger of Allah said: “There is nothing like marriage, for two who love one another.” + +**#2** — abudawud 2272 · score: 0.7 +> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative… + +**#3** — bukhari 5127 · score: 0.6987 +> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the… + +**#4** — malik · score: 0.6956 +>

Yahya said that he heard Malik say, "The way of doing things in our community about which there is no dispute, is that if a man gives sadaqa to his son - sadaqa which the son takes possession of… + +**#5** — abudawud 2130 · score: 0.689 +>

Narrated AbuHurayrah:

When the Prophet (saws) congratulated a man on his marriage, he said: May Allah bless for you, and may He bless on you, and combine both of you in good (works).

+ +**#6** — tirmidhi 1101 · score: 0.6872 +> Abu Musa narrated that : the Messenger of Allah said: "There is no marriage except with a Wali." + +**#7** — ibnmajah 1846 · score: 0.687 +> It was narrated from Aishah that: the Messenger of Allah said: “Marriage is part of my sunnah, and whoever does not follow my sunnah has nothing to do with me. Get married, for I will boast of your… + +**#8** — mishkat 3093 · score: 0.6862 +> Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted. + +**#9** — muslim 1405 d · score: 0.6861 +>

Jabir b. 'Abdullah reported: We contracted temporary marriage giving a handful of (tales or flour as a dower during the lifetime of Allah's Messenger (may peace be upon him) and durnig the time… + +**#10** — bukhari 5150 · score: 0.6859 +>

Narrated Sahl bin Sa`d:

The Prophet said to a man, "Marry, even with (a Mahr equal to) an iron ring." + + +### nomic + +**#1** — bulugh 993 · score: 0.8659 +> Narrated Ibn 'Abbas (RA): The Prophet (SAW) married Maimunah (RA) when he was in the state of Ihram (during pilgrimage). [Agreed upon]. + +**#2** — mishkat 2682 · score: 0.8642 +> Ibn ‘Abbas said that the Prophet married Maimuna when he was on pilgrimage. Bukhari and Muslim. + +**#3** — bukhari 1837 · score: 0.8626 +>

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held). + +**#4** — bukhari 5114 · score: 0.8606 +>

Narrated Ibn `Abbas:

The Prophet got married while he was in the state of Ihram. + +**#5** — mishkat 3093 · score: 0.8564 +> Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted. + +**#6** — abudawud 2272 · score: 0.8557 +> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative… + +**#7** — bukhari 5127 · score: 0.8551 +> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the… + +**#8** — bukhari 5261 · score: 0.8543 +>

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could… + +**#9** — ibnmajah 1991 · score: 0.8543 +> It was narrated from 'Abdul-Malik bin Harith bin Hisham, from his father, that: the Prophet married Umm Salamah in Shawwal, and consummated the marriage with her in Shawwal. + +**#10** — abudawud 2047 · score: 0.8542 +> Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper… + + +### mxbai + +**#1** — forty 21 · score: 0.8446 +> A man will be with whom he loves. + +**#2** — abudawud 2047 · score: 0.8333 +> Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper… + +**#3** — bulugh 967 · score: 0.8322 +> Narrated 'Abdullah bin Mas'ud (RA): Allah's Messenger (SAW) said to us, "O young men, those of you who can support a wife should marry, for it (marriage) controls the gaze and preserves one from… + +**#4** — bukhari 2721 · score: 0.831 +>

Narrated `Uqba bin Amir:

Allah's Apostle said, "From among all the conditions which you have to fulfill, the conditions which make it legal for you to have sexual relations (i.e. the marriage… + +**#5** — bulugh 1127 · score: 0.829 +> Narrated 'Aishah (RA): Allah's Messenger (SAW) said, "One or two sucks do not make (marriage) unlawful." [Muslim reported it]. + +**#6** — bukhari 5090 · score: 0.8282 +>

Narrated Abu Huraira:

The Prophet said, "A woman is married for four things, i.e., her wealth, her family status, her beauty and her religion. So you should marry the religious woman… + +**#7** — bulugh 995 · score: 0.8278 +> Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, "The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)." [Agreed… + +**#8** — bukhari 5119 · score: 0.8278 +> Salama bin Al-Akwa` said: Allah's Apostle's said, "If a man and a woman agree (to marry temporarily), their marriage should last for three nights, and if they like to continue, they can do so; and if… + +**#9** — tirmidhi 1084 · score: 0.8271 +> Abu Hurairah narrated that: The Messenger of Allah said: "When someone whose religion and character you are pleased with proposes to (someone under the care) of one of you, then marry to him. If you… + +**#10** — bulugh 1034 · score: 0.827 +> It is a portion of the long Hadith preceding in the beginning of the Book of Marriage. + + +--- + +## Query: "masturbation" + +### openai-small-en + +**#1** — muslim 348 a · score: 0.678 +>

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar… + +**#2** — ibnmajah 480 · score: 0.6764 +> It was narrated that Jabir bin 'Abdullah said: "The Messenger of Allah said: 'If anyone of you touches his penis, then he has to perform ablution.'" + +**#3** — abudawud 206 · score: 0.6756 +> ‘Ali said: My prostatic fluid flowed excessively. I used to take a bath until my back cracked (because of frequent washing). I mentioned it to the prophet (May peace be upon him), or the fact was… + +**#4** — muslim 346 b · score: 0.6744 +>

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his… + +**#5** — bulugh 72 · score: 0.6734 +> Narrated Talq bin ‘Ali (rad): A man said: “I touched my penis” or he said, “Does a man who touch his penis during the prayer should perform Wudu (ablution)?” The Prophet (saw) replied, “No, it is… + +**#6** — abudawud 211 · score: 0.6726 +>

Narrated Abdullah ibn Sa'd al-Ansari:

I asked the Messenger of Allah (saws) as to what makes it necessary to take a bath and about the (prostatic) fluid that flows after taking a bath.… + +**#7** — ibnmajah 479 · score: 0.6693 +> It was narrated that Busrah bint Safwan said: "The Messenger of Allah said: 'If anyone of you touches his penis, let him perform ablution.'" + +**#8** — tirmidhi 82 · score: 0.669 +> Busrah bint Safwan narrated that : the Prophet said: "Whoever touches his penis, then he is not to pray until he performs Wudu" + +**#9** — muslim 303 c · score: 0.6682 +>

Ibn 'Abbas reported it from 'Ali: We sent al-Miqdad b. al-Aswad to the Messenger of Allah (may peace be upon him) to ask him what must be done about prostatic fluid which flows from (the private… + +**#10** — bukhari 260 · score: 0.6676 +>

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and… + + +### nomic + +**#1** — bulugh 119 · score: 0.8129 +> Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash… + +**#2** — bukhari 464 · score: 0.8127 +>

Narrated Um Salama:

I complained to Allah's Apostle that I was sick. He told me to perform the Tawaf behind the people while riding. So I did so and Allah's Apostle was praying beside the… + +**#3** — ahmad 847 · score: 0.8107 +> It was narrated that ‘Ali (رضي الله عنه) said: I was a man who emitted a great deal of madhi. I asked the Prophet (ﷺ) and he said: “If you ejaculate, then do ghusl for janabah, and if you do not… + +**#4** — bulugh 111 · score: 0.8105 +> Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon] + +**#5** — bukhari 260 · score: 0.8079 +>

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and… + +**#6** — muslim 316 d · score: 0.807 +>

'Urwa has narrated it on the authority of 'A'isha that when Allah's Messenger (may peace be upon him) took a bath because of sexual intercourse, he first washed his hands before dipping one of… + +**#7** — mishkat 340 · score: 0.8065 +> Abu Qatada reported God’s messenger as saying, "When one of you drinks he must not breathe into the vessel, and when he goes to relieve himself he must not touch his penis with his right hand, or… + +**#8** — bukhari 258 · score: 0.8061 +>

Narrated `Aisha:

Whenever the Prophet took the bath of Janaba (sexual relation or wet dream) he asked for the Hilab or some other scent. He used to take it in his hand, rub it first over the… + +**#9** — nasai 387 · score: 0.8043 +> It was narrated that 'Aishah said: "The Prophet (PBUH) would put his head out while he was performing I'tikaf and I would wash it, while I was menstruating." + +**#10** — muslim 346 b · score: 0.804 +>

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his… + + +### mxbai + +**#1** — bulugh 117 · score: 0.8507 +> A-Hakim added: “Ablution makes one active for repeating (the sexual act).” + +**#2** — bulugh 64 · score: 0.82 +> Narrated ‘Umar (rad), in a Mawquf (untraceable) and Anas in a Marfu (traceable) Hadith: “If one of you performs ablution and puts on his two leather socks, let him perform Mash (wipe) over them and… + +**#3** — bulugh 110 · score: 0.8168 +> And Muslim added: “Even if he does not ejaculate”. + +**#4** — bulugh 73 · score: 0.8162 +> Narrated Busra bint Safwan (rad): Allah’s Messenger (saw) said, “He who touches his penis should perform ablution”. [Reported by Al-Khamsa, and At-Tirmidhi and Ibn Hibban graded it Sahih (sound). + +**#5** — bulugh 28 · score: 0.8143 +> In yet another version of Muslim: Verily! I (‘Aisha) used to scrape it (the semen) off his garment with my nails while it was dry. + +**#6** — mishkat 287 · score: 0.8135 +> ‘Uthman performed ablution, pouring water over his hands three times, then rinsing his mouth and snuffing up water, then washing his face three times, then washing his right arm up to the elbow three… + +**#7** — bulugh 111 · score: 0.8128 +> Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon] + +**#8** — bulugh 109 · score: 0.812 +> Narrated Abu Sa’id Al-Khudri (rad): Allah’s Mesenger (saw) said: “The water (of the ghusl) is due to the water (of sexual emission)”. [Reported by Muslim] + +**#9** — tirmidhi 3415 · score: 0.8118 +> Maslamah bin `Amr said: “`Umair bin Hani used to perform a thousand prostrations every day and recite a hundred thousand Tasbīḥs every day.” + +**#10** — shamail 32 · score: 0.8108 +> A’isha said: “I used to comb the hair of Allah’s Messenger (Allah bless him and give him peace) while I was menstruating.” + + +--- + +## Query: "racism" + +### openai-small-en + +**#1** — ahmad 614 · score: 0.6237 +> It was narrated that `Ali (رضي الله عنه)said: The Messenger of Allah (ﷺ) said: “No one hates the Arabs except a hypocrite.” + +**#2** — ibnmajah 69 · score: 0.6207 +> It was narrated that 'Abdullah said: "The Messenger of Allah (SAW) said: 'Verbally abusing a Muslim is immorality and fighting him is Kufr (disbelief).'" + +**#3** — malik 1831 · score: 0.6196 +>

Malik related to me that he heard that Abdullah ibn Masud used to say, "The slave continues to lie and a black spot grows in his heart until all his heart becomes black. Then he is written, in… + +**#4** — abudawud 4877 · score: 0.6188 +>

Narrated AbuHurayrah:

The Prophet (saws) said: The gravest sin is going to lengths in talking unjustly against a Muslim's honour, and it is a major sin to abuse twice for abusing once.… + +**#5** — malik 1600 · score: 0.6177 +>

Yahya said that Malik said, "The way of doing things in our community about which there is no dispute is that women do not swear in the swearing for the intentional act. If the murdered man only… + +**#6** — ahmad 467 · score: 0.6177 +> It was narrated that Rabah said: My masters married me to a Roman slave girl of theirs and she bore me a black boy. Then she fell in love with a Roman slave whose name was Yuhannas, and he spoke to… + +**#7** — malik 1521 · score: 0.6169 +>

Malik related to me from Hisham ibn Urwa that his father said that there was only one hadd against a man who slandered a group of people.

Malik said, "If they are on separate occasions… + +**#8** — riyadussalihin 338 · score: 0.6141 +> 'Abdullah bin 'Amr bin Al-'as (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said, "It is one of the gravest sins to abuse one's parents." It was asked (by the people): "O… + +**#9** — mishkat 3311 · score: 0.614 +> He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he… + +**#10** — nasai 4105 · score: 0.6118 +> It was narrated that 'Abdullah said: "Defaming a Muslim is evildoing and fighting him is Kufr." (Sahih Mawquf) + + +### nomic + +**#1** — bukhari 6847 · score: 0.7889 +>

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, "My wife has delivered a black child." The Prophet said to him, "Have you camels?" He replied, "Yes." The Prophet said, "What… + +**#2** — bukhari 5305 · score: 0.7871 +>

Narrated Abu Huraira:

A man came to the Prophet and said, "O Allah's Apostle! A black child has been born for me." The Prophet asked him, "Have you got camels?" The man said, "Yes." The… + +**#3** — bukhari 7314 · score: 0.7846 +>

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, "My wife has delivered a black boy, and I suspect that he is not my child." Allah's Apostle said to him, "Have you got… + +**#4** — nasai 1594 · score: 0.7836 +> It was narrated that 'Aishah said: "The black people came and played in front of the Prophet (SAW) on the day of 'Eid. He called me and I watched them from over his shoulder, and I continued to watch… + +**#5** — abudawud 2253 · score: 0.7781 +> ‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her… + +**#6** — ibnmajah 2003 · score: 0.7776 +> It was narrated from Ibn 'Umar that: a man frorn the desert people came to the Prophet and said: "O Messenger of Allah, my wife has given birth on my bed to a black boy, and there are no black people… + +**#7** — abudawud 2260 · score: 0.7772 +> Abu Hurairah said A man from Banu Fazarah came to the Prophet (saws) and said “My wife has given birth to a black son”. He said “Have you any camels?” He said “They are red”. He asked “Is there a… + +**#8** — bulugh 1102 · score: 0.7765 +> Narrated Abu Hurairah (RA): A man said, "O Allah's Messenger, my wife has given birth to a black son." He asked, "Have you any camels?" He replied, "Yes." He asked, "What is their color?" He replied,… + +**#9** — nasai 3479 · score: 0.7759 +> It was narrated that Abu Hurairah said: "A man from Banu Fazarah came to the Prophet and said: 'My wife has given birth to a black boy' -and he wanted to disown him. He said: 'Do you have camels?' He… + +**#10** — mishkat 3311 · score: 0.7753 +> He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he… + + +### mxbai + +**#1** — mishkat 4327 · score: 0.7839 +> ‘Abdallah b. ‘Amr b. al-‘As told that when God's messenger saw him wearing two garments dyed with saffron he said, “These are the garments worn by infidels ; do not wear them.” A version says that… + +**#2** — abudawud 2253 · score: 0.7826 +> ‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her… + +**#3** — bulugh 1518 · score: 0.7821 +> 'A’ishah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “The most despicable amongst people in the sight of Allah is the ruthless argumentative (person).” Related by Muslim. + +**#4** — bukhari 30 · score: 0.7805 +>

Narrated Al-Ma'rur:

At Ar-Rabadha I met Abu Dhar who was wearing a cloak, and his slave, too, was wearing a similar one. I asked about the reason for it. He replied, "I abused a person by… + +**#5** — mishkat 3688 · score: 0.7792 +> ‘A’idh b. ‘Amr told that he heard God’s Messenger say, “The worst shepherds are those who are ungentle.” Muslim transmitted it. + +**#6** — bukhari 5940 · score: 0.7787 +>

Narrated Ibn `Umar:

The Prophet has cursed the lady who lengthens her hair artificially and the one who gets her hair lengthened, and also the lady who tattoos (herself or others) and the one… + +**#7** — mishkat 1874 · score: 0.778 +> Abu Huraira reported God’s messenger as saying, “The worst things in a man are anxious niggardliness and unrestrained cowardice.” Abd Dawud transmitted it. + +**#8** — bulugh 1201 · score: 0.7779 +> Sahl bin Abi Khaithamah (RAA) narrated on the authority of some honored men from his people that 'Abdullah bin Sahl and Muhaiysah bin Mas'ud, went out to Khaibar because of a hardship they were… + +**#9** — ibnmajah 1859 · score: 0.7776 +> It was narrated from Abdullah bin Amr that: the Prophet said: “Do not marry women for their beauty for it may lead to their doom. Do not marry them for their wealth, for it may lead them to fall into… + +**#10** — bulugh 1500 · score: 0.7772 +> Abu Hurairah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “When two men insult one another, what they say is mainly the fault of the one who began it, so long as the one who is… + + +--- + +## Query: "polygamy" + +### openai-small-en + +**#1** — bukhari 5127 · score: 0.7243 +> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the… + +**#2** — muslim 1451 a · score: 0.7217 +>

Umm al-Fadl reported: A bedouin came to Allah's Apostle (may peace be upon him) when he was in my house and said: Allah's Apostle, I have had a wife and I married another besides her, and my… + +**#3** — bukhari 5068 · score: 0.7182 +>

Narrated Anas:

The Prophet used to go round (have sexual relations with) all his wives in one night, and he had nine wives. + +**#4** — malik 1238 · score: 0.7156 +>

Yahya related to me from Malik that Ibn Shihab said, "I have heard that the Messenger of Allah, may Allah bless him and grant him peace, said to a man from Thaqif who had ten wives when he became… + +**#5** — abudawud 2243 · score: 0.7142 +>

Al-Dahhak b. Firuz reported on the authority of his father: I said: Messenger of Allah, I have embraced Islam and two sisters are my wives. He said: Divorce any one of them you wish.

+ +**#6** — muslim 1408 b · score: 0.7136 +>

Abu Huraira (Allah be pleased with him) reported: that Allah's Messenger (may peace be upon him) forbade combining of four women in marriage: a woman with her father's sister, and a woman with… + +**#7** — ibnmajah 1953 · score: 0.7113 +> It was narrated that Ibn 'Umar said: “Ghailan bin Salamah became Muslim and he had ten wives. The Prophet said to him: 'Choose four of them.' ” + +**#8** — mishkat 3091 · score: 0.7109 +> Ma'qil b. Yasar reported God’s Messenger as saying, “Marry women who are loving and very prolific, for I shall outnumber the peoples by you." Abu Dawud and Nasa’i transmitted it. + +**#9** — bukhari 5215 · score: 0.7104 +>

Narrated Anas bin Malik:

The Prophet used to pass by (have sexual relation with) all his wives in one night, and at that time he had nine wives. + +**#10** — malik 1149 · score: 0.7087 +>

Yahya related to me from Malik from Rabia ibn Abi Abd ar-Rahman that al-Qasim ibn Muhammad and Urwa ibn az-Zubayr said that a man who had four wives and then divorced one of them irrevocably,… + + +### nomic + +**#1** — mishkat 3170 · score: 0.8259 +> Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s… + +**#2** — muslim 1456 a · score: 0.8245 +>

Abu Sa'id al-Khudri (Allah her pleased with him) reported that at the Battle of Hanain Allah's Messenger (may peace be upon him) sent an army to Autas and encountered the enemy and fought with… + +**#3** — mishkat 2554 · score: 0.8172 +> Ibn ‘Abbas said that the polytheists used to say, “Labbaik, Thou hast no partner," whereupon God’s messenger would say, “Woe to you ! Enough, enough; [do not add] ‘except a partner who is… + +**#4** — bukhari 5127 · score: 0.8167 +> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the… + +**#5** — abudawud 2272 · score: 0.8164 +> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative… + +**#6** — muslim 122 · score: 0.8163 +>

It is narrated on the authority of Ibn 'Abbas that some persons amongst the polytheist had committed a large number of murders and had excessively indulged in fornication. Then they came to… + +**#7** — nasai 3415 · score: 0.8123 +> It was narrated that Ibn 'Umar said: "The Prophet was asked about a man who divorced his wife three times, then another man married her and he closed the door and drew the curtain, then divorced her… + +**#8** — mishkat 3419 · score: 0.8112 +> Ibn Umar told that he heard God’s Messenger say, “He who swears by anyone but God is a polytheist.” Tirmidhi transmitted it. + +**#9** — bulugh 1287 · score: 0.811 +> Samurah (RAA) narrated that The Messenger of Allah (P.B.U.H.) said, “Kill the mature men of the polytheists but spare their children.” Related by Abu Dawud and At-Tirmidhi graded it as Sahih. + +**#10** — bukhari 5105 · score: 0.81 +> Ibn 'Abbas further said, "Seven types of marriages are unlawful because of blood relations, and seven because of marriage relations." Then Ibn 'Abbas recited the Verse: "Forbidden for you (for… + + +### mxbai + +**#1** — abudawud 2088 · score: 0.8486 +>

Narrated Samurah:

The Prophet (saws) said: Any woman who is married by two guardians (to two different men) belongs to the first woman who is married by two guardians (to two different… + +**#2** — abudawud 2133 · score: 0.8341 +>

Narrated AbuHurayrah:

The Prophet (saws) said: When a man has two wives and he is inclined to one of them, he will come on the Day of resurrection with a side hanging down.

+ +**#3** — abudawud 2067 · score: 0.8335 +>

Narrated Abdullah ibn Abbas:

The Prophet (saws) abominated the combination of paternal and maternal aunts and the combination of two maternal aunts and two paternal aunts in marriage.… + +**#4** — bulugh 1001 · score: 0.8334 +> Narrated 'Aishah (RA): A man divorced his wife by three pronouncements and another man married her and divorced her before cohabiting with her. Then, her first husband intended to remarry her and… + +**#5** — bukhari 5127 · score: 0.8334 +> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the… + +**#6** — mishkat 3170 · score: 0.8306 +> Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s… + +**#7** — bukhari 4528 · score: 0.8297 +>

Narrated Jabir:

Jews used to say: "If one has sexual intercourse with his wife from the back, then she will deliver a squint-eyed child." So this Verse was revealed:-- "Your wives are a tilth… + +**#8** — bukhari 5261 · score: 0.8295 +>

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could… + +**#9** — abudawud 2272 · score: 0.8286 +> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative… + +**#10** — bukhari 5104 · score: 0.8278 +>

Narrated `Uqba bin Al-Harith:

I married a woman and then a black lady came to us and said, "I have suckled you both (you and your wife)." So I came to the Prophet and said, "I married so-and-… + + +--- + +## Query: "pork" + +### openai-small-en + +**#1** — abudawud 3489 · score: 0.6549 +>

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

+ +**#2** — bukhari 5506 · score: 0.6408 +>

Narrated Rafi` bin Khadij:

The Prophet said, "Eat what is slaughtered (with any instrument) that makes blood flow out, except what is slaughtered with a tooth or a nail.' + +**#3** — bukhari 1824 · score: 0.6392 +>

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu… + +**#4** — shamail 170 · score: 0.6351 +> 'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” + +**#5** — muslim 1938 c · score: 0.6349 +>

Bara was heard saying: We were forbidden (to eat) the flesh of the domestic asses. + +**#6** — abudawud 2796 · score: 0.6344 +>

Narrated AbuSa'id al-Khudri:

The Messenger of Allah (saws) used to sacrifice a choice, horned ram with black round the eyes, the mouth and the feet.

+ +**#7** — malik 621 · score: 0.6315 +>

Yahya related to me from Malik from Zayd ibn Aslam from his father that he said to Umar ibn al-Khattab, "There is a blind she- camel behind the house,'' soUmar said, "Hand it over to a household… + +**#8** — malik · score: 0.6298 +>

Yahya related to me from Malik that the best of what he had heard about a man who is forced by necessity to eat carrion is that he ate it until he was full and then he took provision from it. If… + +**#9** — ibnmajah 3146 · score: 0.6296 +> It was narrated that Abu Sa’eed Al-Khudri said: “We bought a ram for sacrifice, then a wolf tore some flesh from its rump and ears. We asked the Prophet (saw) and he told us to offer it as a… + +**#10** — bukhari 5527 · score: 0.6295 +>

Narrated Abu Tha'alba:

Allah's Apostle prohibited the eating of donkey's meat.

Narrated Az-Zuhri:

The Prophet prohibited the eating of beasts having fangs.

+ + +### nomic + +**#1** — bukhari 1495 · score: 0.795 +>

Narrated Anas:

Some meat was presented to the Prophet (p.b.u.h) and it had been given to Barira (the freed slave-girl of Aisha) in charity. He said, "This meat is a thing of charity for Barira… + +**#2** — tirmidhi 1509 · score: 0.7935 +> Narrated Ibn 'Umar: That the Prophet (saws) said: "None of you should eat from the meat of his sacrificial animal beyond three days." + +**#3** — bukhari 1824 · score: 0.7908 +>

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu… + +**#4** — shamail 169 · score: 0.7896 +> 'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he… + +**#5** — abudawud 2814 · score: 0.7892 +> Narrated Thawban: The Messenger of Allah (saws) sacrificed during a journey and then said: Thawban, mend the meat of this goat. I then kept on supplying its meat until we reached Medina. + +**#6** — bulugh 15 · score: 0.7864 +> Narrated Abu Waqid Al-Laithi: Narrated Abu Waqid Al-Laithi (rad): Allah’s Messenger (saw) said, “Whatever (portion) is cut off from an animal when it is alive is dead (meat). [Reported by Abu Da’ud… + +**#7** — adab 1276 · score: 0.7855 +> Ya'la ibn Murra reported that he heard Abu Hurayra speaking about someone who plays backgammon and bets on it, saying that he is like someone who eats pig meat and that the person who plays it… + +**#8** — shamail 166 · score: 0.7843 +> Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.” + +**#9** — ibnmajah 3216 · score: 0.783 +> It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).” + +**#10** — muslim 1975 a · score: 0.7829 +>

Thauban reported that Allah's Messenger (way peace be upon him) slaughtered his sacrificial animal and then said: Thauban, make his meat usable (for journey), and I continuously served him that… + + +### mxbai + +**#1** — shamail 170 · score: 0.7987 +> 'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” + +**#2** — ibnmajah 3216 · score: 0.7976 +> It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).” + +**#3** — shamail 169 · score: 0.7928 +> 'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he… + +**#4** — ibnmajah 3314 · score: 0.7917 +> It was narrated from ‘Abdullah bin ‘Umar that the Messenger of Allah (saw) said: “Two kinds of dead meat and two kinds of blood have been permitted to us. The two kinds of dead meat are fish and… + +**#5** — mishkat 4215 · score: 0.7913 +> ‘A’isha reported God’s messenger as saying, “Do not cut meat with a knife, for it is a foreign practice, but bite it, for that is more beneficial and wholesome.” Abu Dawud and Baihaqi, in Shu'ab… + +**#6** — shamail 166 · score: 0.7905 +> Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.” + +**#7** — abudawud 3489 · score: 0.7894 +>

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

+ +**#8** — nasai 4425 · score: 0.7879 +> 'Ali bin Abi Talib Said: "The Messenger of Allah has forbidden you from eating the meat of your sacrificaial animals for more than three day." (Sahih ) + +**#9** — bukhari 1492 · score: 0.7863 +>

Narrated Ibn `Abbas:

The Prophet saw a dead sheep which had been given in charity to a freed slave-girl of Maimuna, the wife of the Prophet . The Prophet said, "Why don't you get the benefit… + +**#10** — bukhari 1824 · score: 0.7858 +>

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu… + + +--- + +## Query: "dance" + +### openai-small-en + +**#1** — malik 75 · score: 0.6113 +>

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, "I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his… + +**#2** — abudawud 4854 · score: 0.5992 +>

Narrated AbudDarda':

The Messenger of Allah (saws) would sit and we would also sit around him. If he got up intending to return, he would take off his sandals or something he was… + +**#3** — abudawud 4923 · score: 0.5977 +>

Narrated Anas ibn Malik:

When the Messenger of Allah (saws) came to Medina, the Abyssinians played for his coming out of joy; they played with spears.

+ +**#4** — bukhari 1591 · score: 0.597 +>

Narrated Abu Huraira:

The Prophet;; said, "Dhus-Suwaiqa-tain (literally: One with two lean legs) from Ethiopia will demolish the Ka`ba." + +**#5** — abudawud 652 · score: 0.5956 +>

Narrated Aws ibn Thabit al-Ansari:

The Messenger of Allah (saws) said: Act differently from the Jews, for they do not pray in their sandals or their shoes.

+ +**#6** — bukhari 2628 · score: 0.5948 +>

Narrated Aiman:

I went to `Aisha and she was wearing a coarse dress costing five Dirhams. `Aisha said, "Look up and see my slave-girl who refuses to wear it in the house though during the… + +**#7** — mishkat 765 · score: 0.5945 +> Shaddad b. Aus reported God’s Messenger as saying, “Act differently from the Jews, for they do not pray in their sandals or their shoes.”* * Khuff (pl. khifaf), an article of footwear… + +**#8** — ibnmajah 2939 · score: 0.594 +> It was narrated that ‘Abdullah bin ‘Abbas said: “The Prophets used to enter the Haram walking barefoot. They would circumambulate the House and complete all the rituals barefoot and walking.” + +**#9** — forty 33 · score: 0.5939 +> Actions are through intentions. + +**#10** — forty 18 · score: 0.5936 +> The felicitous person takes lessons from (the actions of) others. + + +### nomic + +**#1** — tirmidhi 40 · score: 0.7981 +> Al-Mustawrid bin Shaddad Al-Fihri said : "I saw the Prophet when he was performing Wudu doing that to the toes on his feet with his pinky." + +**#2** — tirmidhi 3734 · score: 0.7957 +> Narrated Ibn 'Abbas: "The first to perform Salat was 'Ali." + +**#3** — tirmidhi 39 · score: 0.7927 +> Ibn Abbas narrated that : Allah's Messenger said: "When performing Wudu go between the fingers of your hands and (toes of) your feet." + +**#4** — bulugh 55 · score: 0.7924 +> Narrated Anas (rad): The Prophet (saw) saw a man on whose foot appeared a portion like the size of a nail which was not touched by water. He then said, “Go back and perform your Wudu properly.”… + +**#5** — bukhari 6702 · score: 0.7916 +>

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf around the Ka`ba, tied with a rope or something else (while another person was holding him). The Prophet cut that rope off. + +**#6** — bukhari 5910 · score: 0.7911 +>

Narrated Anas: The Prophet had big feet and hands. + +**#7** — abudawud 1986 · score: 0.791 +> Narrated Ibn 'Umar: The Messenger of Allah (saws) performed 'Umrah before performing Hajj. + +**#8** — nasai 50 · score: 0.789 +> It was narrated from Abu Hurairah that the Prophet (PBUH) performed Wudu', and when he had performed Istinja' he rubbed his hand on the ground. + +**#9** — bulugh 1443 · score: 0.7884 +> In a version by Muslim, “And the one who is riding should salute the one who is walking.” + +**#10** — bulugh 45 · score: 0.7884 +> Narrated Abu Huraira (rad): Allah’s Messenger (rad) said, “When you perform ablution, begin with your right limbs”. [Reported by Al-Arba’a and garded Sahih by Ibn Khuzaima]. + + +### mxbai + +**#1** — muslim 819 a · score: 0.7711 +>

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached… + +**#2** — abudawud 727 · score: 0.7646 +> The above tradition has been transmitted by ‘Asim b. Kulaib through a different chain of narrators and to the same effect. This version has: “He then placed his right hand on the back of his left… + +**#3** — abudawud 942 · score: 0.76 +> ‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. + +**#4** — tirmidhi 3418 · score: 0.7595 +> `Abdullah bin `Abbas [may Allah be pleased with them] narrated, : that when the Messenger of Allah (saws) would stand for prayer during the middle of the night, he would say: “O Allah, to You is the… + +**#5** — malik 75 · score: 0.7591 +>

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, "I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his… + +**#6** — abudawud 958 · score: 0.7588 +> 'Abdullah bin 'Umar said: "A Sunnah of the prayer is that you should raise your right foot, and make your left foot lie (on the ground)." + +**#7** — mishkat 4416 · score: 0.7583 +> Al-Qasim b. Muhammad quoted ‘A’isha as saying the Prophet often walked wearing one sandal. A version says she walked wearing one sandal. Tirmidhi transmitted it, saying this is sounder + +**#8** — muslim 2099 d · score: 0.7576 +>

Jabir. b. Abdullah reported Allah's Messenger (may peace be upon him) as saying: Do not walk in one sandal and do not wrap the lower garment round your knees and do not eat with your left hand… + +**#9** — muslim 2097 a · score: 0.7554 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: "When one of you puts on sandals, he should first put in the right foot, and when he takes off he should take off the… + +**#10** — abudawud 859 · score: 0.7548 +> This tradition has also been transmitted through a different chain of narrators by Rifa’ah b. Rafi. This version goes: When you get up and face the qiblah, what Allah wishes you to recite. And when… + + diff --git a/test results & reports/lexical vs semantic/test1/batch_results.csv b/test results & reports/lexical vs semantic/test1/batch_results.csv new file mode 100644 index 0000000..d59e675 --- /dev/null +++ b/test results & reports/lexical vs semantic/test1/batch_results.csv @@ -0,0 +1,391 @@ +query,model,rank,collection,hadithNumber,urn,score,text_snippet +comparing yourself to others,openai-small-en,1,adab,328,2203280,0.6896,"Ibn 'Abbas said, ""When you want to mention your companion's faults, remember your own faults.""" +comparing yourself to others,openai-small-en,2,bukhari,6490,61050,0.6896,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " +comparing yourself to others,openai-small-en,3,riyadussalihin,466,1604630,0.6851,"Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, ""Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.""
This is the wording in Sahih Muslim.

[Al-…" +comparing yourself to others,openai-small-en,4,ahmad,111,5001110,0.6775,"It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be…" +comparing yourself to others,openai-small-en,5,forty,18,1430180,0.6753,The felicitous person takes lessons from (the actions of) others. +comparing yourself to others,openai-small-en,6,muslim,2963 c,270700,0.6708,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.

In the chain narrated by Abu…" +comparing yourself to others,openai-small-en,7,adab,592,2205770,0.6669,"Abu Hurayra said, ""One of you looks at the mote in his brother's eye while forgetting the stump in his own eye.""" +comparing yourself to others,openai-small-en,8,muslim,2963 a,270680,0.6666,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a… +comparing yourself to others,openai-small-en,9,abudawud,4084,840730,0.6659,"

Narrated AbuJurayy Jabir ibn Salim al-Hujaymi:

I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say…" +comparing yourself to others,openai-small-en,10,bulugh,1471,2054330,0.664,"Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." +comparing yourself to others,nomic,1,bukhari,6490,61050,0.8354,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " +comparing yourself to others,nomic,2,bukhari,6061,56910,0.8165,"

Narrated Abu Bakra:

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, ""May Allah's Mercy be on you ! You have cut the neck of your friend."" The Prophet repeated this sentence many times and said, ""If it is indispensable for anyone of you to praise…" +comparing yourself to others,nomic,3,bulugh,1471,2054330,0.8111,"Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." +comparing yourself to others,nomic,4,bukhari,6530,61450,0.8109,"

Narrated Abu Sa`id:

The Prophet said, ""Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam…" +comparing yourself to others,nomic,5,muslim,2963 a,270680,0.8103,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a… +comparing yourself to others,nomic,6,tirmidhi,2513,678190,0.809,"Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: ""Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.""" +comparing yourself to others,nomic,7,bukhari,6162,57880,0.8085,"

Narrated Abu Bakra:

A man praised another man in front of the Prophet. The Prophet said thrice, ""Wailaka (Woe on you) ! You have cut the neck of your brother!"" The Prophet added, ""If it is indispensable for anyone of you to praise a person, then he should say, ""I think that such-and-such…" +comparing yourself to others,nomic,8,nasai,3947,1039620,0.8077,"It was narrated from Abu Musa that the Prophet said: ""The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.""" +comparing yourself to others,nomic,9,abudawud,4627,846100,0.8051,Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other. +comparing yourself to others,nomic,10,adab,1146,2211010,0.8041,"Ibn 'Abbas said, ""The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me.""" +comparing yourself to others,mxbai,1,forty,18,1430180,0.8147,The felicitous person takes lessons from (the actions of) others. +comparing yourself to others,mxbai,2,bukhari,6490,61050,0.8022,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " +comparing yourself to others,mxbai,3,forty,3,1430030,0.7969,A Muslim is a mirror of the Muslim. +comparing yourself to others,mxbai,4,muslim,2963 a,270680,0.794,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a… +comparing yourself to others,mxbai,5,ibnmajah,4336,1294390,0.792,"Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace there?” He said: “Yes. The Messenger of Allah (saw) told me that when the people of Paradise enter it,…" +comparing yourself to others,mxbai,6,adab,159,2201600,0.7897,"Abu'd-Darda' used to say to people. ""We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is…" +comparing yourself to others,mxbai,7,riyadussalihin,466,1604630,0.7864,"Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, ""Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.""
This is the wording in Sahih Muslim.

[Al-…" +comparing yourself to others,mxbai,8,muslim,2536,261590,0.7854,"

'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the…" +comparing yourself to others,mxbai,9,tirmidhi,2513,678190,0.7821,"Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: ""Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.""" +comparing yourself to others,mxbai,10,abudawud,4092,840810,0.7821,"

Narrated AbuHurayrah:

A man who was beautiful came to the Prophet (saws). He said: Messenger of Allah, I am a man who likes beauty, and I have been given some of it, as you see. And I do not like that anyone excels me (in respect of beauty). Perhaps he said: ""even to the extent of…" +aisha six years,openai-small-en,1,bukhari,5134,48040,0.7911,

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). +aisha six years,openai-small-en,2,bukhari,5133,48030,0.7872,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." +aisha six years,openai-small-en,3,muslim,1422 d,233115,0.7823,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" +aisha six years,openai-small-en,4,muslim,1422 b,233100,0.7807,"

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old." +aisha six years,openai-small-en,5,muslim,1422 c,233110,0.78,"

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old." +aisha six years,openai-small-en,6,mishkat,3129,5830500,0.7723,"‘A’isha said that the Prophet married her when she was seven, she was brought to live with him when she was nine bringing her toys with her, and he died when she was eighteen. Muslim transmitted it." +aisha six years,openai-small-en,7,muslim,334 d,206570,0.7658,"

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years,"" and the rest of the hadith is the same (as mentioned above)." +aisha six years,openai-small-en,8,nasai,3378,1033890,0.7618,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls.""" +aisha six years,openai-small-en,9,ibnmajah,1877,1261950,0.7572,"It was narrated that: Abdullah said: “The Prophet married Aishah when she was seven years old, and consummated the marriage with her when she was nine, and he passed away when she was eighteen.”" +aisha six years,openai-small-en,10,nasai,3379,1033900,0.7566,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine.""" +aisha six years,nomic,1,muslim,1422 d,233115,0.7981,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" +aisha six years,nomic,2,bukhari,3948,36900,0.7872,

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. +aisha six years,nomic,3,muslim,334 d,206570,0.7823,"

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years,"" and the rest of the hadith is the same (as mentioned above)." +aisha six years,nomic,4,muslim,1422 b,233100,0.7789,"

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old." +aisha six years,nomic,5,bulugh,228,2002780,0.7779,"It is mentioned in al-Bazzar through another chain with the addition: ""forty years.""" +aisha six years,nomic,6,abudawud,2240,822320,0.7756,"

Narrated Abdullah ibn Abbas:

The Messenger of Allah (saws) restored his daughter Zaynab to Abul'As on the basis of the previous marriage, and he did not do anything afresh.

Muhammad b. 'Amr said in his version: After six years. Al-Hasan b. 'Ali said: After two years.

" +aisha six years,nomic,7,shamail,380,1803620,0.7728,"Mu'awiya said in a sermon: ""The Prophet died (Allah bless him and give him peace) when he was sixty-three years of age, as did Abu Bakr and 'Umar, and I am now sixty-three years of age.”" +aisha six years,nomic,8,muslim,1422 c,233110,0.771,"

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old." +aisha six years,nomic,9,mishkat,5489,5961160,0.7701,"Asma' daughter of Yazid b. as-Sakan reported the Prophet a saying, ""The dajjal will remain in the earth forty years, a year being like a month, a month like a week, a week like a day, and a day like the time it takes to burn a palm-branch."" It is transmitted in Sharh as sunna." +aisha six years,nomic,10,bukhari,5133,48030,0.7689,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." +aisha six years,mxbai,1,bukhari,3894,36400,0.8627,"

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on my hair grew (again) and my mother, Um Ruman, came to me while I was playing in a swing with some of…" +aisha six years,mxbai,2,nasai,3255,1032660,0.8612,"It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine." +aisha six years,mxbai,3,bukhari,5133,48030,0.86,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." +aisha six years,mxbai,4,ibnmajah,1876,1261940,0.8522,"It was narrated that: Aishah said: “The Messenger of Allah married me when I was six years old. Then we came to Al-Madinah and settled among Banu Harith bin Khazraj. I became ill and my hair fell out, then it grew back and became abundant. My mother Umm Ruman came to me while I was on an Urjuhah…" +aisha six years,mxbai,5,bukhari,5134,48040,0.8507,

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). +aisha six years,mxbai,6,bukhari,5158,48270,0.849,

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him for nine years (i.e. till his death). +aisha six years,mxbai,7,nasai,3378,1033890,0.8465,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls.""" +aisha six years,mxbai,8,nasai,3379,1033900,0.8449,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine.""" +aisha six years,mxbai,9,muslim,1422 d,233115,0.8446,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" +aisha six years,mxbai,10,nasai,3258,1032690,0.8426,It was narrated from 'Aishah that the Messenger of Allah married her when she was nine and he died when she was eighteen years old. +music,openai-small-en,1,mishkat,3153,5830700,0.6246,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." +music,openai-small-en,2,malik,1748,418052,0.6187,"

Yahya related to me from Malik from Abu Hazim ibn Dinar that Abu Idris al-Khawlani said, ""I entered the Damascus mosque and there was a young man with a beautiful mouth and white teeth sitting with some people. When they disagreed about something, they referred it to him and proceeded from his…" +music,openai-small-en,3,abudawud,1468,814630,0.617,

Narrated Al-Bara' ibn Azib:

The Prophet (saws) said: Beautify the Qur'an with your voices.

+music,openai-small-en,4,adab,786,2207420,0.6146,"Ibn 'Abbas said about ""There are some people who trade in distracting tales"" (31:5) that it means singing and things like it." +music,openai-small-en,5,bukhari,439,4320,0.6132,"

Narrated `Aisha:

There was a black slave girl belonging to an 'Arab tribe and they manumitted her but she remained with them. The slave girl said, ""Once one of their girls (of that tribe) came out wearing a red leather scarf decorated with precious stones. It fell from her or she placed it…" +music,openai-small-en,6,muslim,2114,252790,0.6126,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. +music,openai-small-en,7,adab,1265,2212210,0.6111,"Ibn 'Abbas said that the words of Allah in Luqman (35:6), ""There are people who trade in distracting tales"" mean ""singing and things like it.""" +music,openai-small-en,8,muslim,793 d,217340,0.6071,

Buraida reported on the authority of his father that the Messenger of Allah (may peace be upon him) had said: 'Abdullah b. Qais or al-Ash'ari has been gifted with a sweet melodious voice out of the voices of the family of David. +music,openai-small-en,9,forty,19,1430190,0.6067,"Indeed, in poetry there is wisdom and in eloquence there is magic." +music,openai-small-en,10,forty,25,1400250,0.606,"

Also on the authority of Abu Dharr (may Allah be pleased with him): Some people from amongst the Companions of the Messenger of Allah (peace and blessings of Allah be upon him) said to the Prophet (peace and blessings of Allah be upon him), ""O Messenger of Allah, the affluent have made off with…" +music,nomic,1,muslim,2114,252790,0.8074,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. +music,nomic,2,mishkat,3153,5830700,0.8052,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." +music,nomic,3,tirmidhi,3728,636080,0.7873,"Narrated Anas bin Malik: ""The advent of the Prophet (SAW) was on Monday and 'Ali performed Salat on Tuesday.""" +music,nomic,4,muslim,892 a,219380,0.7864,"

'A'isha reported: Abu Bakr came to see me and I had two girls with me from among the girls of the Ansar and they were singing what the Ansar recited to one another at the Battle of Bu'ath. They were not, however, singing girls. Upon this Abu Bakr said: What I (the playing of) this wind…" +music,nomic,5,tirmidhi,3734,636130,0.7863,"Narrated Ibn 'Abbas: ""The first to perform Salat was 'Ali.""" +music,nomic,6,nasai,342,1003440,0.7859,"It was narrated that Ibn 'Umar said: ""Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH).""" +music,nomic,7,bukhari,952,9070,0.7855,"

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said protestingly, ""Musical instruments of Satan in the house of Allah's Apostle !"" It happened on the `Id…" +music,nomic,8,nasai,71,1000710,0.7854,"It was narrated that Ibn 'Umar said: ""Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH).""" +music,nomic,9,bukhari,1621,15270,0.7853,

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf of the Ka`ba tied with a string or something else. So the Prophet cut that string. +music,nomic,10,ibnmajah,1898,1262170,0.7842,"It was narrated that 'Aishah said: “Abu Bakr entered upon me, and there were two girls from the Ansar with me, singing about the Day of Bu'ath.” She said: “And they were not really singers. Abu Bakr said: 'The wind instruments of Satan in the house of the Prophet ?' That was on the day of 'Eid(Al-…" +music,mxbai,1,muslim,892 b,219390,0.7705,"

This hadith has been narrated by Hisham with the same chain of transmitters, but there the words are:"" Two girls were playing upon a tambourine.""" +music,mxbai,2,tirmidhi,2780b,630011,0.7596,Another chain with a similar narration +music,mxbai,3,tirmidhi,2783b,630051,0.7578,(Another chain) with a similar narration +music,mxbai,4,tirmidhi,1599,616910,0.7559,Another chain with similar narration. +music,mxbai,5,mishkat,2214,5780970,0.752,"Ibn ‘Abbās reported God’s messenger as saying, “Gabriel taught me to recite in one mode, and when I replied to him and kept asking him to give me more he did so till he reached seven modes."" Ibn Shihāb said he had heard that those seven modes are essentially one, not differing about what is…" +music,mxbai,6,mishkat,3153,5830700,0.7513,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." +music,mxbai,7,hisn,94,1420950,0.7495,"Subḥānallāhi wa biḥamdih: `adada khalqih, wa riḍā nafsih, wa zinata `arshih, wa midāda kalimātih. Glory is to Allah and praise is to Him, by the multitude of His creation, by His Pleasure, by the weight of His Throne, and by the extent…" +music,mxbai,8,abudawud,942,809420,0.7494,‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. +music,mxbai,9,hisn,181,1421820,0.7488,"Alhamdu lillāhi ḥamdan kathīran tayyiban mubārakan fīh, ghayra makfiyyin wa lā muwadda`in, wa lā mustaghnan `anhu Rabbanā. All praise is to Allah, praise in abundance, good and blessed. It cannot [be compensated for, nor can it] be…" +music,mxbai,10,bukhari,5944b,55780,0.7477,

Narrated `Abdullah:

(As above 827). +actions are by intentions,openai-small-en,1,forty,33,1430330,0.9241,Actions are through intentions. +actions are by intentions,openai-small-en,2,nasai,75,1000750,0.7223,"It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: ""The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger,…" +actions are by intentions,openai-small-en,3,nasai,3794,1038080,0.7109,"It was narrated from 'Umar bin Al-Khattab that the Prophet said: ""Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose…" +actions are by intentions,openai-small-en,4,ibnmajah,4229,1293320,0.7081,It was narrated from Abu Hurairah that the Messenger of Allah (saw) said: “People will be resurrected (and judged) according to their intentions.” +actions are by intentions,openai-small-en,5,ahmad,168,5001680,0.7077,"Umar said: I heard the Messenger of Allah ﷺ say: `Deeds are but by intentions and each man will have but that which he intended. If a man's migration was for the sake of Allah, then his migration was for that for which he migrated, but if his migration was to achieve some worldly aim or to take…" +actions are by intentions,openai-small-en,6,abudawud,2201,821950,0.6958,"‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His Apostle, his emigration is to Allaah and His Apostle but his emigration is to a worldly end at which…" +actions are by intentions,openai-small-en,7,nasai,3437,1034480,0.6949,"It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: ""Actions are but by intentions, and each man will have but that which he intended. Whoever emigrated for the sake of Allah and His Messenger, his emigration was for the sake of Allah and…" +actions are by intentions,openai-small-en,8,tirmidhi,1647,617430,0.6894,"Narrated 'Umar bin Al-Khattab:

That the Messenger of Allah (saws) said: ""Deeds are but with intentions, and for the man is only what he intended. So one whose emigration was to Allah and His Messenger, then his emigration was to Allah and His Messenger. And one whose emigration was to the…" +actions are by intentions,openai-small-en,9,muslim,130,202360,0.6872,"

It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him) observed: He who intended to do good, but did not do it, one good was recorded for him, and he who intended to do good and also did it, ten to seven hundred good deeds were recorded for him. And…" +actions are by intentions,openai-small-en,10,ibnmajah,4230,1293330,0.6857,It was narrated from Jabir that the Messenger of Allah (saw) said: “People will be gathered (on the Day of Resurrection) according to their intentions.” +actions are by intentions,nomic,1,bukhari,6607,62130,0.826,"

Narrated Sahl bin Sa`d:

There was a man who fought most bravely of all the Muslims on behalf of the Muslims in a battle (Ghazwa) in the company of the Prophet. The Prophet looked at him and said. ""If anyone would like to see a man from the people of the Fire, let him look at this (brave…" +actions are by intentions,nomic,2,abudawud,1368,813630,0.8197,"Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he…" +actions are by intentions,nomic,3,ahmad,184,5001840,0.8165,"It was narrated that Yahya bin Ya'mar and Humaid bin ‘Abdur­-Rahman al­-Himyari said: We met 'Abdullah bin 'Umar and discussed the divine decree (al qadar) and what others said concerning it. He said: When you go back to them, say; Ibn ‘Umar has nothing to do with you and you have nothing to do…" +actions are by intentions,nomic,4,bukhari,1559,14690,0.8164,"

Narrated Abu Musa:

The Prophet sent me to some people in Yemen and when I returned, I found him at Al-Batha. He asked me, ""With what intention have you assumed Ihram (i.e. for Hajj or for Umra or for both?"") I replied, ""I have assumed Ihram with an intention like that of the Prophet."" He…" +actions are by intentions,nomic,5,mishkat,3444,5840551,0.8156,"‘Imran b. Husain told that he heard God’s Messenger say, “Vows are of two kinds, so if anyone vows to do an act of obedience, that is for God and must be fulfilled; but if anyone vows, to do an act of disobedience, that is for the devil and must not be fulfilled, but he must make atonement for it…" +actions are by intentions,nomic,6,bulugh,918,2011240,0.8098,"Narrated [Ibn 'Abbas (RA)]: Allah's Messenger (SAW) said, ""There should neither be harming (of others without cause), nor reciprocating harm (between two parties)."" [Reported by Ahmad and Ibn Majah]." +actions are by intentions,nomic,7,ibnmajah,2120,1264390,0.8093,"It was narrated from Abu Hurairah that the Messenger of Allah (SAW) said: ""The oath is only according to the intention of the one who requests the oath to be taken.""'" +actions are by intentions,nomic,8,bukhari,7551,71000,0.8077,"

Narrated `Imran:

I said, ""O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, ""Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.'" +actions are by intentions,nomic,9,adab,490,2204900,0.8071,"Abu Dharr reported that the Prophet, may Allah bless him and grant him peace, reported that Allah, the Blessed and Exalted, said: ""My slaves! I have forbidden injustice for Myself and I have made it forbidden among you, so do not wrong one another. ""My slaves! You err by night and day and I forgive…" +actions are by intentions,nomic,10,tirmidhi,2007,673100,0.807,"Hudhaifah narrated that the Messenger of Allah said: “Do not be a people without a will of your own, saying: 'If people treat us well, we will treat them well; and if they do wrong, we will do wrong,' but accustom yourselves to do good if people do good, and do not behave unjustly if they do evil.”" +actions are by intentions,mxbai,1,forty,33,1430330,0.988,Actions are through intentions. +actions are by intentions,mxbai,2,forty,5,1430050,0.864,"The person guiding (someone) to do a good deed, is like the one performing the good deed." +actions are by intentions,mxbai,3,forty,18,1430180,0.8358,The felicitous person takes lessons from (the actions of) others. +actions are by intentions,mxbai,4,abudawud,1368,813630,0.8291,"Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he…" +actions are by intentions,mxbai,5,nasai,3794,1038080,0.8226,"It was narrated from 'Umar bin Al-Khattab that the Prophet said: ""Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose…" +actions are by intentions,mxbai,6,nasai,75,1000750,0.8221,"It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: ""The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger,…" +actions are by intentions,mxbai,7,muslim,2648 b,264030,0.8211,"

This hadith has been transmitted on the authority of Jabir b. Abdullah with the same wording (and includes these words):"" Allah's Messenger (may peace be upon him) said: Every doer of deed is facilitated in his action.""" +actions are by intentions,mxbai,8,bukhari,7551,71000,0.8187,"

Narrated `Imran:

I said, ""O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, ""Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.'" +actions are by intentions,mxbai,9,forty,1,1400010,0.8183,"

It is narrated on the authority of Amirul Mu'minin, Abu Hafs 'Umar bin al-Khattab (ra) who said: I heard the Messenger of Allah (saws) say: ""Actions are (judged) by motives (niyyah), so each man will have what he intended. Thus, he whose migration (hijrah) was to Allah and His Messenger, his…" +actions are by intentions,mxbai,10,nasai,4484,1085075,0.8169,"It was narrated from Ibn 'Umar that: a man told the Messenger of Allah that he was always being cheated. The Messenger of Allah said to him: ""When you make a deal, say: There is no intention of cheating"" So, whenever the man engages in a deal he says, 'There is no intention of cheating."" ""(Sahih )" +ramadan,openai-small-en,1,mishkat,1962,5770060,0.7704,"Abu Huraira reported God’s messenger as saying, “Ramadan, a blessed month, has come to you during which God has made it obligatory for you to fast. In it the gates of heaven are opened, the gates of al-Jahim are locked, and the rebellious devils are chained. In it God has a night which is better…" +ramadan,openai-small-en,2,muslim,1081 a,223780,0.7665,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days." +ramadan,openai-small-en,3,muslim,1079 c,223620,0.7643,"

This hadith is reported by Abu Huraira (with a slight alteration of words) that the Messenger of Allah (may peace be upon him) said:"" When (the month of) Ramadan begins.""" +ramadan,openai-small-en,4,riyadussalihin,1194,1622380,0.7628,'Aishah (May Allah be pleased with her) reported: The Messenger of Allah (PBUH) used to strive more in worship during Ramadan than he strove in any other time of the year; and he would devote himself more (in the worship of Allah) in the last ten nights of Ramadan than he strove in earlier part of… +ramadan,openai-small-en,5,muslim,1163 a,226110,0.7614,"

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night." +ramadan,openai-small-en,6,muslim,1145 b,225480,0.7592,"

Salama b. Akwa' reported: We, during the lifetime of the Messenger of Allah (may peace be upon him), in one month of Ramadan (observed fast according to our liking). He who wished to fast lasted and he who wished to break broke it and fed a needy person as an expiation 1544 till this verse was…" +ramadan,openai-small-en,7,muslim,1080 b,223640,0.7579,"

Ibn Umar reported that Allah's Messenger (may peace be upon him) made a mention of Ramadan and he with the gesture of his hand said: The month is thus and thus. (He then withdrew his thumb at the third time). He then said: Fast when you see it, and break your fast when you see it, and if the…" +ramadan,openai-small-en,8,muslim,1080 e,223670,0.7564,"

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and…" +ramadan,openai-small-en,9,abudawud,2429,824230,0.7543,"Narrated Abu Hurairah: The Messenger of Allah (saws) as saying: The most excellent fast after Ramadan is Allah's month al-Muharram, and the most excellent prayer after the prescribed prayer is the prayer during night." +ramadan,openai-small-en,10,ibnmajah,3925,1290230,0.7539,"It was narrated from Talhah bin ‘Ubaidullah that two men from Bali came to the Messenger of Allah (saw). They had become Muslim together, but one of them used to strive harder than the other. The one who used to strive harder went out to fight and was martyred. The other one stayed for a year…" +ramadan,nomic,1,muslim,1157 a,225830,0.8212,"

Ibn Abbas (Allah be pleased with both of them) reported: The Messenger of Allah (may peace be upon him) did not fast throughout any month except during ramadan. And when he observed fast (he fasted so continuously) that one would say that he would not break (them) and when he Abandoned, he…" +ramadan,nomic,2,bulugh,163,2001950,0.819,"Narrated Abu Sa'id al-Khudri (RA): I heard Allah's Messenger (SAW) saying: ""No Salat (prayer) is to be offered after the morning prayer until the sun rises, or after the afternoon prayer until the sun sets."" [Agreed upon]." +ramadan,nomic,3,abudawud,1611,816070,0.8174,"Ibn ‘Umar said : The Messenger of Allah(may peace be upon him) prescribed as zakat payable by slave and freeman, male and female, among the muslims on closing the fast of Ramadan one sa of dried dates or one sa’ of barley. (This tradition was read out byu ‘Abd Allah b. Maslamah to Malik)" +ramadan,nomic,4,ahmad,163,5001630,0.813,"Abu ‘Ubaid said: I was present at Eid with ‘Umar, and he started with the prayer before the khutbah. He said: The Messenger of Allah ﷺ forbade fasting on these two days. The day of al-Fitr is the day when you break your fast, and on the day of al-Adha, eat the meat of your sacrifices." +ramadan,nomic,5,malik,629,406310,0.8107,"

Yahya related to me from Malik from Nafi from Abdullah ibn Umar that the Messenger of Allah, may Allah bless him and grant him peace, made the zakat of breaking the fast at the end of Ramadan obligatory on every muslim, whether freeman or slave, male or female, and stipulated it as a sa' of…" +ramadan,nomic,6,abudawud,1357,813520,0.8107,"Narrated Ibn 'Abbas: I spent a night in the house of my maternal aunt Maimunah, daughter of al-Harith. The Prophet (saws) offered the night prayer. He then came and prayed four rak'ahs and slept. He then stood up and prayed. I stood at his left side. He made me go round and made me stand at his…" +ramadan,nomic,7,mishkat,2048,5770910,0.8106,Abu Sa'id al-Khudri said God’s messenger forbade fasting on the day of breaking the fast of Ramadan and on the day of sacrifice. (Bukhari and Muslim.) +ramadan,nomic,8,muslim,979 a,221340,0.81,"

Abu Sa'id al-Khudri reported Allah's Messenger (way peace be upon him) as saying: No sadaqa (zakat) is payable on less than five wasqs of (dates or grains), on less than five camel-heads and on less than five uqiyas (of silver)." +ramadan,nomic,9,malik,,407060,0.8099,"

Malik said, ""There is no harm in someone who is in itikaf entering into a marriage contract as long as there is no physical relationship. A woman in itikaf may also be betrothed as long as there is no physical relationship. What is haram for someone in itikaf in relation to his womenfolk during…" +ramadan,nomic,10,muslim,1167 a,226250,0.8096,"

Abu Sa'id al-Khudri (Allah be pleased with him) reported that Allah's Messenger (may peace be upon him) spent in devotion (in i'tikaf) the middle ten nights of the month of Ramadan, and when twenty nights were over and it was the twenty-first night, he went back to his residence and those who…" +ramadan,mxbai,1,muslim,1080 e,223670,0.8869,"

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and…" +ramadan,mxbai,2,muslim,1080 f,223680,0.882,

'Abdullah b. 'Umar (Allah be pleased with both of them) reported Allah's Messenger (may peace be upon him) as saying: The month (of Ramadan) may consist of twenty nine days; so when you see the new moon observe fast and when you see (the new moon again at the commencement of the month of… +ramadan,mxbai,3,muslim,1163 a,226110,0.8815,"

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night." +ramadan,mxbai,4,bukhari,1900,17860,0.8801,"

Narrated Ibn `Umar:

I heard Allah's Apostle saying, ""When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting; and if the sky is overcast (and you can't see it) then regard the month of Ramadan as of 30 days.""" +ramadan,mxbai,5,mishkat,2047,5770900,0.8797,"Abu Ayyub al-Ansari told that God’s messenger said, “If anyone fasts during Ramadan, then follows it with six days in Shawwal, it will be like a perpetual fast.” Muslim transmitted it." +ramadan,mxbai,6,mishkat,1817,5760460,0.8785,"Ibn 'Abbas said, “At the end of Ramadan bring forth the sadaqa relating to your fast. God's messenger prescribed this sadaqa as a sa' of dried dates or barley, or half a sa' of wheat payable by every free¬man or slave, male or female, young or old."" Abu Dawud and Nasa’i transmitted it." +ramadan,mxbai,7,riyadussalihin,1167,1622110,0.8784,"Abu Hurairah (May Allah be pleased with him) reported: The Messenger of Allah (PBUH) said, ""The best month for observing Saum (fasting) after Ramadan is Muharram, and the best Salat after the prescribed Salat is Salat at night.""

[Muslim].

" +ramadan,mxbai,8,muslim,1116 a,224770,0.8783,"

Abu Sa'id al-Khudri (Allah be pleased with him) reported: We went out on an expedition with Allah's Messenger (may peace be upon him) on the 16th of Ramadan. Some of us fasted and some of us broke the fast. But neither the observer of the fast found fault with one who broke it, nor the breaker…" +ramadan,mxbai,9,muslim,1081 a,223780,0.878,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days." +ramadan,mxbai,10,riyadussalihin,1225,1622690,0.876,"Ibn 'Abbas (May Allah be pleased with them) reported: The Messenger of Allah (PBUH) said, ""Do not observe Saum (fasting) before the advent of Ramadan. Observe Saum at sighting of the crescent of Ramadan and terminate it at sighting the crescent (of Shawwal). If the sky is overcast, complete (the…" +jesus,openai-small-en,1,bukhari,3444,32170,0.6949,"

Narrated Abu Huraira:

The Prophet said, ""Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus said, 'I believe in Allah and suspect my eyes.""" +jesus,openai-small-en,2,muslim,2937 a,270150,0.6918,

An-Nawwas b. Sam`an reported that Allah's Messenger (may peace be upon him) made a mention of the Dajjal one day in the morning. He (saws) sometimes described him to be insignificant and sometimes described (his turmoil) as very significant (and we felt) as if he were in the cluster of the… +jesus,openai-small-en,3,mishkat,5716,5972920,0.6859,"Abu Huraira reported God's messenger as saying, ""On the night when I was taken up to heaven, I met Moses who may be described as a lanky man with somewhat curly hair who resembled one of the men of Shanu'a; I met Jesus who was of medium height and red as though he had come out of a dimas…" +jesus,openai-small-en,4,bukhari,3448,32210,0.6841,"

Narrated Abu Huraira:

Allah's Apostle said, ""By Him in Whose Hands my soul is, surely (Jesus,) the son of Mary will soon descend amongst you and will judge mankind justly (as a Just Ruler); he will break the Cross and kill the pigs and there will be no Jizya (i.e. taxation taken from non…" +jesus,openai-small-en,5,muslim,2897,269240,0.6785,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The Last Hour would not come until the Romans would land at al-A'maq or in Dabiq. An army consisting of the best (soldiers) of the people of the earth at that time will come from Medina (to counteract them). When they… +jesus,openai-small-en,6,muslim,2365 c,258360,0.6774,"

Abu Huraira reported many ahadith from Allah's Messenger (may peace be upon him) and one is that Allah's Messenger (may peace be upon him) said: I am most close to Jesus, son of Mary, among the whole of mankind in this worldly life and the next life. They said: Allah's Messenger how is it?…" +jesus,openai-small-en,7,muslim,2365 b,258350,0.6765,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to one religion and no Prophet was raised between me and Jesus." +jesus,openai-small-en,8,abudawud,4324,843100,0.6757,"

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down…" +jesus,openai-small-en,9,mishkat,2288,5790640,0.6753,"Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the…" +jesus,openai-small-en,10,mishkat,5608,5971830,0.6739,"Hudhaifa and Abu Huraira reported God's messenger as saying, ""God who is blessed and exalted will collect mankind and the believers will stand till paradise is brought near them. They will then go to Adam and say, `Ask, father, that paradise may be opened for us,' but he will reply, `Has anything…" +jesus,nomic,1,mishkat,1214,5746270,0.7989,"‘A’isha told how God’s Messenger said when he awoke during the night, “There is no god but Thee. Glory be to Thee, O God, and praise be to Thee. I ask for Thy forgiveness of my sin, and I ask for Thy mercy. O God, increase me in knowledge, and do not let my heart swerve after Thou hast guided me.…" +jesus,nomic,2,bukhari,1209,11380,0.7957,"

Narrated Aisha:

I used to stretch my legs towards the Qibla of the Prophet while he was praying; whenever he prostrated he touched me, and I would withdraw my legs, and whenever he stood up, I would restretch my legs." +jesus,nomic,3,bukhari,3392,31690,0.7952,"

Narrated `Aisha:

The Prophet returned to Khadija while his heart was beating rapidly. She took him to Waraqa bin Naufal who was a Christian convert and used to read the Gospels in Arabic Waraqa asked (the Prophet), ""What do you see?"" When he told him, Waraqa said, ""That is the same angel…" +jesus,nomic,4,muslim,196 c,203830,0.792,

Anas b. Malik said: The Apostle of Allah (may peace be upon him) said: I would be the first intercessor in the Paradise and no apostle amongst the apostles has been testified (by such a large number of people) as I have been testified. And verily there woald be an apostle among the apostles who… +jesus,nomic,5,muslim,201,203960,0.7917,"

Abu Zubair heard Jabir b. Abdullah reporting it from the Apostle of Allah (may peace be upon him): For every apostle was a prayer with which he prayed (to his Lord) for his Ummah, but I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection." +jesus,nomic,6,bukhari,516,4980,0.7907,"

Narrated Abu Qatada Al-Ansari:

Allah's Apostle was praying and he was carrying Umama the daughters of Zainab, the daughter of Allah's Apostle and she was the daughter of 'As bin Rabi`a bin `Abd Shams. When he prostrated, he put her down and when he stood, he carried her (on his neck)." +jesus,nomic,7,bulugh,226,2002740,0.7903,"Narrated Abu Qatada (RA): Allah's Messenger (SAW) was (one time) offering prayer while he was carrying Umama, daughter of Zainab, when he prostrated he put her down and when he stood up he lifted her up. [Agreed upon]." +jesus,nomic,8,mishkat,936,5743580,0.7895,"Ruwaih' reported God’s Messenger as saying, “If anyone invokes a blessing on Muhammad saying, ‘O God, cause him to occupy the place near Thee on the day of resurrection’, he will be guaranteed my intercession.” Ahmad transmitted it." +jesus,nomic,9,mishkat,5572,5971500,0.7893,"Anas reported the Prophet as saying, ""The believers will be restrained on the day of resurrection so that they will be concerned about that and express a desire to find an intercessor with their Lord that He may relieve them from the position in which they are placed. They will go to Adam and say,…" +jesus,nomic,10,muslim,200 a,203920,0.789,

Anas b. Malik reported: Verily the Apostle of Allah (may peace be upon him) said: There is for every apostle a prayer with which he prays (to Allah) for his Ummah. I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection. +jesus,mxbai,1,abudawud,4324,843100,0.826,"

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down…" +jesus,mxbai,2,mishkat,2288,5790640,0.8246,"Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the…" +jesus,mxbai,3,bukhari,3438,32120,0.8234,"

Narrated Ibn `Abbas:

The Prophet said, ""I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of brown complexion, straight hair and tall stature as if he was from the people of Az-Zutt.""" +jesus,mxbai,4,muslim,194 a,203780,0.8198,"

Abu Huraira reported: Meat was one day brought to the Messenger of Allah (may peace be upon him) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of it and said: I shall be the leader of mankind on the Day of Resurrection. Do you know why? Allah…" +jesus,mxbai,5,mishkat,1897,5761250,0.8186,"‘A’isha reported God’s messenger as saying, “Everyone of the children of Adam has been created with three hundred and sixty joints, so he who declares God’s greatness, praises God, declares that He is the only God, glorifies God, asks forgiveness of God, removes a stone, a thorn, or a bone from…" +jesus,mxbai,6,abudawud,4641,846240,0.8183,‘Awf said: I heard al-Hajjaj addressing the people say: The similitude of ‘Uthman with Allah is like the similitude of Jesus son of Mary. He then recited the following verse and explained it: “Behold! Allah said: O Jesus! I will take thee and raise thee to Myself and clear thee (of the falsehood)… +jesus,mxbai,7,muslim,2368,258400,0.8175,

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person committing theft; thereupon Jesus said to him: You committed theft. He said: Nay. By Him besides Whom there… +jesus,mxbai,8,bukhari,7510,70600,0.8169,"

Narrated Ma`bad bin Hilal Al-`Anzi:

We, i.e., some people from Basra gathered and went to Anas bin Malik, and we went in company with Thabit Al-Bunnani so that he might ask him about the Hadith of Intercession on our behalf. Behold, Anas was in his palace, and our arrival coincided with his…" +jesus,mxbai,9,bukhari,3441,32140,0.816,"

Narrated Salim from his father:

No, By Allah, the Prophet did not tell that Jesus was of red complexion but said, ""While I was asleep circumambulating the Ka`ba (in my dream), suddenly I saw a man of brown complexion and lank hair walking between two men, and water was dropping from his…" +jesus,mxbai,10,bukhari,3443,32160,0.8156,"

Narrated Abu Huraira:

Allah's Apostle said, ""Both in this world and in the Hereafter, I am the nearest of all the people to Jesus, the son of Mary. The prophets are paternal brothers; their mothers are different, but their religion is one.""" +sex,openai-small-en,1,bukhari,1545,14560,0.6616,

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they… +sex,openai-small-en,2,malik,1824,418780,0.6498,"

Malik related to me from Zayd ibn Aslam from Ata ibn Yasar that the Messenger of Allah, may Allah bless him and grant him peace, said, ""Whomever Allah protects from the evil of two things will enter the Garden."" A man said, ""Messenger of Allah, do not tell us!"" The Messenger of Allah, may Allah…" +sex,openai-small-en,3,bulugh,1012,2012600,0.6451,"Sa'id (bin Mansur) also reported something similar from 'Ali (RA) and added: ""And (if) she has something like a horn (Qarn) (coming out of her vagina), her husband then has the right to divorce her or keep her. And if he had intercourse with her, she gets her dowry for the intercourse her husband…" +sex,openai-small-en,4,mishkat,3190,5831050,0.6449,"Abu Sa'id al-Khudri reported God's Messenger as saying, “The most serious breach of trust in God’s sight on the day of resurrection ...” A version has, “Among those who will have the worst position in God’s sight on the day of resurrection is the man who has intercourse with his wife, and she with…" +sex,openai-small-en,5,mishkat,3341,5832530,0.6443,"Ibn ‘Umar said that when a girl with whom intercourse might be had was given as a present, or sold, or set free, it was necessary to wait till she had had a menstrual period, but that this was unnecessary in the case of a virgin. Razin transmitted." +sex,openai-small-en,6,muslim,1435 a,233630,0.6418,"

Jabir (Allah be pleased with him) declared that the Jews used to say: When a man has intercourse with his wife through the vagina but being on her back. the child will have squint, so the verse came down:"" Your wives are your tilth; go then unto your tilth as you may desire"" (ii. 223)" +sex,openai-small-en,7,mishkat,86,5710800,0.6409,"Abu Huraira reported God's messenger as saying, “God has decreed for man his portion of fornication which he will inevitably commit. The fornication of the eye consists in looking, and of the tongue in speech. The soul wishes and desires, and the private parts accord with that or reject it.”…" +sex,openai-small-en,8,malik,1135,411670,0.6395,"

Yahya related to me from Malik from Ibn Shihab, and he had heard from al-Qasim ibn Muhammad that they said, ""When a free man marries a slave-girl and consummates the marriage, she makes him muhsan.""

Malik said, ""All (of the people of knowledge) I have seen said that a slave-girl makes…" +sex,openai-small-en,9,muslim,1438 a,233710,0.6379,"

Abu Sirma said to Abu Sa'id al Khadri (Allah he pleased with him): 0 Abu Sa'id, did you hear Allah's Messenger (may peace be upon him) mentioning al-'azl? He said: Yes, and added: We went out with Allah's Messenger (may peace be upon him) on the expedition to the Bi'l-Mustaliq and took captive…" +sex,openai-small-en,10,bukhari,6818,64180,0.6361,"

Narrated Abu Huraira:

The Prophet said, ""The boy is for (the owner of) the bed and the stone is for the person who commits illegal sexual intercourse.'" +sex,nomic,1,mishkat,3143,5830620,0.8485,"‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful."" (Bukhari and Muslim.)" +sex,nomic,2,muslim,348 a,206820,0.8351,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." +sex,nomic,3,bulugh,995,2012380,0.8327,"Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, ""The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)."" [Agreed upon]." +sex,nomic,4,bulugh,119,2001460,0.8325,"Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through…" +sex,nomic,5,bulugh,110,2001320,0.8277,"Narrated Abu Huraira (rad): Allah’s Messenger (saw) said that, “If one of you sits between her legs (of a woman) and penetrates her, Ghusl (bath) is obligatory.” [Agreed upon]." +sex,nomic,6,muslim,1418,233020,0.8261,"

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word"" condition"" ) it is""…" +sex,nomic,7,abudawud,265,802650,0.826,"Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given)" +sex,nomic,8,muslim,346 b,206780,0.8254,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." +sex,nomic,9,bulugh,117,2001430,0.8218,"Narrated Abu Sa’id Al-Khudri (rad): Allah’s Messenger (saw) said, “If one of you has sexual intercourse with his wife and wishes to repeat he should perform ablution between them” [Reported by Muslim]." +sex,nomic,10,muslim,321 c,206290,0.8205,

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. +sex,mxbai,1,bulugh,117,2001440,0.8391,A-Hakim added: “Ablution makes one active for repeating (the sexual act).” +sex,mxbai,2,muslim,321 c,206290,0.8145,

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. +sex,mxbai,3,muslim,348 a,206820,0.8112,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." +sex,mxbai,4,bukhari,1545,14560,0.8087,

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they… +sex,mxbai,5,mishkat,3143,5830620,0.8082,"‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful."" (Bukhari and Muslim.)" +sex,mxbai,6,abudawud,265,802650,0.8081,"Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given)" +sex,mxbai,7,mishkat,330,5730430,0.8072,"Ibn ‘Umar used to say, “A man’s kiss to his wife and his touching her with his hand are connected with sexual intercourse, and anyone who kisses his wife or touches her with his hand must perform ablution.” Malik and Shafi‘i transmitted it." +sex,mxbai,8,muslim,1418,233020,0.8048,"

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word"" condition"" ) it is""…" +sex,mxbai,9,bukhari,293,2930,0.804,"

Narrated Ubai bin Ka`b:

I asked Allah's Apostle about a man who engages in sexual intercourse with his wife but does not discharge. He replied, ""He should wash the parts which comes in contact with the private parts of the woman, perform ablution and then pray."" (Abu `Abdullah said, ""Taking…" +sex,mxbai,10,muslim,346 b,206780,0.8031,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." +marriage,openai-small-en,1,ibnmajah,1847,1261640,0.7042,"It was narrated from Ibn Abbas that: the Messenger of Allah said: “There is nothing like marriage, for two who love one another.”" +marriage,openai-small-en,2,abudawud,2272,822650,0.7,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was… +marriage,openai-small-en,3,bukhari,5127,47975,0.6987,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for…" +marriage,openai-small-en,4,malik,,414990,0.6956,"

Yahya said that he heard Malik say, ""The way of doing things in our community about which there is no dispute, is that if a man gives sadaqa to his son - sadaqa which the son takes possession of or which is in the father's keeping and the father has had his sadaqa witnessed, he cannot take back…" +marriage,openai-small-en,5,abudawud,2130,821250,0.689,"

Narrated AbuHurayrah:

When the Prophet (saws) congratulated a man on his marriage, he said: May Allah bless for you, and may He bless on you, and combine both of you in good (works).

" +marriage,openai-small-en,6,tirmidhi,1101,671000,0.6872,"Abu Musa narrated that : the Messenger of Allah said: ""There is no marriage except with a Wali.""" +marriage,openai-small-en,7,ibnmajah,1846,1261630,0.687,"It was narrated from Aishah that: the Messenger of Allah said: “Marriage is part of my sunnah, and whoever does not follow my sunnah has nothing to do with me. Get married, for I will boast of your great numbers before the nations. Whoever has the means, let him get married, and whoever does not,…" +marriage,openai-small-en,8,mishkat,3093,5830140,0.6862,"Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted." +marriage,openai-small-en,9,muslim,1405 d,232490,0.6861,

Jabir b. 'Abdullah reported: We contracted temporary marriage giving a handful of (tales or flour as a dower during the lifetime of Allah's Messenger (may peace be upon him) and durnig the time of Abu Bakr until 'Umar forbade it in the case of 'Amr b. Huraith. +marriage,openai-small-en,10,bukhari,5150,48190,0.6859,"

Narrated Sahl bin Sa`d:

The Prophet said to a man, ""Marry, even with (a Mahr equal to) an iron ring.""" +marriage,nomic,1,bulugh,993,2012360,0.8659,Narrated Ibn 'Abbas (RA): The Prophet (SAW) married Maimunah (RA) when he was in the state of Ihram (during pilgrimage). [Agreed upon]. +marriage,nomic,2,mishkat,2682,5815560,0.8642,Ibn ‘Abbas said that the Prophet married Maimuna when he was on pilgrimage. Bukhari and Muslim. +marriage,nomic,3,bukhari,1837,17250,0.8626,"

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held)." +marriage,nomic,4,bukhari,5114,47880,0.8606,

Narrated Ibn `Abbas:

The Prophet got married while he was in the state of Ihram. +marriage,nomic,5,mishkat,3093,5830140,0.8564,"Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted." +marriage,nomic,6,abudawud,2272,822650,0.8557,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was… +marriage,nomic,7,bukhari,5127,47975,0.8551,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for…" +marriage,nomic,8,bukhari,5261,49270,0.8543,"

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, ""No, she cannot marry the first husband…" +marriage,nomic,9,ibnmajah,1991,1263100,0.8543,"It was narrated from 'Abdul-Malik bin Harith bin Hisham, from his father, that: the Prophet married Umm Salamah in Shawwal, and consummated the marriage with her in Shawwal." +marriage,nomic,10,abudawud,2047,820430,0.8542,"Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).”" +marriage,mxbai,1,forty,21,1430210,0.8446,A man will be with whom he loves. +marriage,mxbai,2,abudawud,2047,820430,0.8333,"Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).”" +marriage,mxbai,3,bulugh,967,2011910,0.8322,"Narrated 'Abdullah bin Mas'ud (RA): Allah's Messenger (SAW) said to us, ""O young men, those of you who can support a wife should marry, for it (marriage) controls the gaze and preserves one from immorality. And whoever cannot (marry) should fast, for it is a means of reducing the sexual desire.""…" +marriage,mxbai,4,bukhari,2721,25460,0.831,"

Narrated `Uqba bin Amir:

Allah's Apostle said, ""From among all the conditions which you have to fulfill, the conditions which make it legal for you to have sexual relations (i.e. the marriage contract) have the greatest right to be fulfilled.""" +marriage,mxbai,5,bulugh,1127,2014020,0.829,"Narrated 'Aishah (RA): Allah's Messenger (SAW) said, ""One or two sucks do not make (marriage) unlawful."" [Muslim reported it]." +marriage,mxbai,6,bukhari,5090,47660,0.8282,"

Narrated Abu Huraira:

The Prophet said, ""A woman is married for four things, i.e., her wealth, her family status, her beauty and her religion. So you should marry the religious woman (otherwise) you will be a losers." +marriage,mxbai,7,bulugh,995,2012380,0.8278,"Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, ""The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)."" [Agreed upon]." +marriage,mxbai,8,bukhari,5119,47912,0.8278,"Salama bin Al-Akwa` said: Allah's Apostle's said, ""If a man and a woman agree (to marry temporarily), their marriage should last for three nights, and if they like to continue, they can do so; and if they want to separate, they can do so."" I do not know whether that was only for us or for all the…" +marriage,mxbai,9,tirmidhi,1084,670830,0.8271,"Abu Hurairah narrated that: The Messenger of Allah said: ""When someone whose religion and character you are pleased with proposes to (someone under the care) of one of you, then marry to him. If you do not do so, then there will be turmoil (Fitnah) in the land and abounding discord (Fasad).""" +marriage,mxbai,10,bulugh,1034,2012880,0.827,It is a portion of the long Hadith preceding in the beginning of the Book of Marriage. +masturbation,openai-small-en,1,muslim,348 a,206820,0.678,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." +masturbation,openai-small-en,2,ibnmajah,480,1254790,0.6764,"It was narrated that Jabir bin 'Abdullah said: ""The Messenger of Allah said: 'If anyone of you touches his penis, then he has to perform ablution.'""" +masturbation,openai-small-en,3,abudawud,206,802060,0.6756,"‘Ali said: My prostatic fluid flowed excessively. I used to take a bath until my back cracked (because of frequent washing). I mentioned it to the prophet (May peace be upon him), or the fact was mentioned to him (by someone else). The Messenger of Allah (May peace be upon him) said; Do not do so.…" +masturbation,openai-small-en,4,muslim,346 b,206780,0.6744,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." +masturbation,openai-small-en,5,bulugh,72,2000870,0.6734,"Narrated Talq bin ‘Ali (rad): A man said: “I touched my penis” or he said, “Does a man who touch his penis during the prayer should perform Wudu (ablution)?” The Prophet (saw) replied, “No, it is only a part of your body”. [Reported by Al-Khamsa. Ibn Hibban graded it Sahih (sound)." +masturbation,openai-small-en,6,abudawud,211,802110,0.6726,

Narrated Abdullah ibn Sa'd al-Ansari:

I asked the Messenger of Allah (saws) as to what makes it necessary to take a bath and about the (prostatic) fluid that flows after taking a bath. He replied: that is called madhi (prostatic fluid). It flows from every male. You should wash your… +masturbation,openai-small-en,7,ibnmajah,479,1254780,0.6693,"It was narrated that Busrah bint Safwan said: ""The Messenger of Allah said: 'If anyone of you touches his penis, let him perform ablution.'""" +masturbation,openai-small-en,8,tirmidhi,82,660820,0.669,"Busrah bint Safwan narrated that : the Prophet said: ""Whoever touches his penis, then he is not to pray until he performs Wudu""" +masturbation,openai-small-en,9,muslim,303 c,205950,0.6682,

Ibn 'Abbas reported it from 'Ali: We sent al-Miqdad b. al-Aswad to the Messenger of Allah (may peace be upon him) to ask him what must be done about prostatic fluid which flows from (the private part of) a person. The Messenger of Allah (may peace be upon him) said: Perform ablution and wash… +masturbation,openai-small-en,10,bukhari,260,2610,0.6676,"

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his…" +masturbation,nomic,1,bulugh,119,2001460,0.8129,"Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through…" +masturbation,nomic,2,bukhari,464,4560,0.8127,"

Narrated Um Salama:

I complained to Allah's Apostle that I was sick. He told me to perform the Tawaf behind the people while riding. So I did so and Allah's Apostle was praying beside the Ka`ba and reciting the Sura starting with ""Wat-tur wa kitabin mastur.""" +masturbation,nomic,3,ahmad,847,5008470,0.8107,"It was narrated that ‘Ali (رضي الله عنه) said: I was a man who emitted a great deal of madhi. I asked the Prophet (ﷺ) and he said: “If you ejaculate, then do ghusl for janabah, and if you do not ejaculate, then do not do ghusl.”" +masturbation,nomic,4,bulugh,111,2001350,0.8105,"Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon]" +masturbation,nomic,5,bukhari,260,2610,0.8079,"

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his…" +masturbation,nomic,6,muslim,316 d,206190,0.807,"

'Urwa has narrated it on the authority of 'A'isha that when Allah's Messenger (may peace be upon him) took a bath because of sexual intercourse, he first washed his hands before dipping one of them into the basin, and then performed ablu- tion as is done for prayer." +masturbation,nomic,7,mishkat,340,5730520,0.8065,"Abu Qatada reported God’s messenger as saying, ""When one of you drinks he must not breathe into the vessel, and when he goes to relieve himself he must not touch his penis with his right hand, or wipe himself with his right hand.” (Bukhari and Muslim.)" +masturbation,nomic,8,bukhari,258,2590,0.8061,"

Narrated `Aisha:

Whenever the Prophet took the bath of Janaba (sexual relation or wet dream) he asked for the Hilab or some other scent. He used to take it in his hand, rub it first over the right side of his head and then over the left and then rub the middle of his head with both hands." +masturbation,nomic,9,nasai,387,1003890,0.8043,"It was narrated that 'Aishah said: ""The Prophet (PBUH) would put his head out while he was performing I'tikaf and I would wash it, while I was menstruating.""" +masturbation,nomic,10,muslim,346 b,206780,0.804,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." +masturbation,mxbai,1,bulugh,117,2001440,0.8507,A-Hakim added: “Ablution makes one active for repeating (the sexual act).” +masturbation,mxbai,2,bulugh,64,2000760,0.82,"Narrated ‘Umar (rad), in a Mawquf (untraceable) and Anas in a Marfu (traceable) Hadith: “If one of you performs ablution and puts on his two leather socks, let him perform Mash (wipe) over them and pray in them and he may not take them off he so wishes except after ejaculation or sexual impurity.…" +masturbation,mxbai,3,bulugh,110,2001330,0.8168,And Muslim added: “Even if he does not ejaculate”. +masturbation,mxbai,4,bulugh,73,2000890,0.8162,"Narrated Busra bint Safwan (rad): Allah’s Messenger (saw) said, “He who touches his penis should perform ablution”. [Reported by Al-Khamsa, and At-Tirmidhi and Ibn Hibban graded it Sahih (sound)." +masturbation,mxbai,5,bulugh,28,2000350,0.8143,In yet another version of Muslim: Verily! I (‘Aisha) used to scrape it (the semen) off his garment with my nails while it was dry. +masturbation,mxbai,6,mishkat,287,5730060,0.8135,"‘Uthman performed ablution, pouring water over his hands three times, then rinsing his mouth and snuffing up water, then washing his face three times, then washing his right arm up to the elbow three times, then washing his left arm up to the elbow three times, then wiping his head, then washing…" +masturbation,mxbai,7,bulugh,111,2001350,0.8128,"Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon]" +masturbation,mxbai,8,bulugh,109,2001300,0.812,Narrated Abu Sa’id Al-Khudri (rad): Allah’s Mesenger (saw) said: “The water (of the ghusl) is due to the water (of sexual emission)”. [Reported by Muslim] +masturbation,mxbai,9,tirmidhi,3415,681260,0.8118,Maslamah bin `Amr said: “`Umair bin Hani used to perform a thousand prostrations every day and recite a hundred thousand Tasbīḥs every day.” +masturbation,mxbai,10,shamail,32,1800310,0.8108,A’isha said: “I used to comb the hair of Allah’s Messenger (Allah bless him and give him peace) while I was menstruating.” +racism,openai-small-en,1,ahmad,614,5006140,0.6237,It was narrated that `Ali (رضي الله عنه)said: The Messenger of Allah (ﷺ) said: “No one hates the Arabs except a hypocrite.” +racism,openai-small-en,2,ibnmajah,69,1250690,0.6207,"It was narrated that 'Abdullah said: ""The Messenger of Allah (SAW) said: 'Verbally abusing a Muslim is immorality and fighting him is Kufr (disbelief).'""" +racism,openai-small-en,3,malik,1831,418850,0.6196,"

Malik related to me that he heard that Abdullah ibn Masud used to say, ""The slave continues to lie and a black spot grows in his heart until all his heart becomes black. Then he is written, in Allah's sight, among the liars.""

" +racism,openai-small-en,4,abudawud,4877,848590,0.6188,"

Narrated AbuHurayrah:

The Prophet (saws) said: The gravest sin is going to lengths in talking unjustly against a Muslim's honour, and it is a major sin to abuse twice for abusing once.

" +racism,openai-small-en,5,malik,1600,416570,0.6177,"

Yahya said that Malik said, ""The way of doing things in our community about which there is no dispute is that women do not swear in the swearing for the intentional act. If the murdered man only has female relatives, the women have no right to swear for blood and no pardon in murder.""

…" +racism,openai-small-en,6,ahmad,467,5004670,0.6177,"It was narrated that Rabah said: My masters married me to a Roman slave girl of theirs and she bore me a black boy. Then she fell in love with a Roman slave whose name was Yuhannas, and he spoke to her in their language. Then she got pregnant. She had borne me a child who was black like me, then…" +racism,openai-small-en,7,malik,1521,415930,0.6169,"

Malik related to me from Hisham ibn Urwa that his father said that there was only one hadd against a man who slandered a group of people.

Malik said, ""If they are on separate occasions there is still only one hadd against him.""

Malik related to me from Abu'r-Rijal Muhammad ibn…" +racism,openai-small-en,8,riyadussalihin,338,1603350,0.6141,"'Abdullah bin 'Amr bin Al-'as (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said, ""It is one of the gravest sins to abuse one's parents."" It was asked (by the people): ""O Messenger of Allah, can a man abuse his own parents?"" Messenger of Allah (PBUH) said, ""He abuses the…" +racism,openai-small-en,9,mishkat,3311,5832220,0.614,"He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there…" +racism,openai-small-en,10,nasai,4105,1083195,0.6118,"It was narrated that 'Abdullah said: ""Defaming a Muslim is evildoing and fighting him is Kufr."" (Sahih Mawquf)" +racism,nomic,1,bukhari,6847,64410,0.7889,"

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, ""My wife has delivered a black child."" The Prophet said to him, ""Have you camels?"" He replied, ""Yes."" The Prophet said, ""What color are they?"" He replied, ""They are red."" The Prophet further asked, ""Are any of them gray in…" +racism,nomic,2,bukhari,5305,49670,0.7871,"

Narrated Abu Huraira:

A man came to the Prophet and said, ""O Allah's Apostle! A black child has been born for me."" The Prophet asked him, ""Have you got camels?"" The man said, ""Yes."" The Prophet asked him, ""What color are they?"" The man replied, ""Red."" The Prophet said, ""Is there a grey one…" +racism,nomic,3,bukhari,7314,68730,0.7846,"

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, ""My wife has delivered a black boy, and I suspect that he is not my child."" Allah's Apostle said to him, ""Have you got camels?"" The bedouin said, ""Yes."" The Prophet said, ""What color are they?"" The bedouin said, ""They are…" +racism,nomic,4,nasai,1594,1067220,0.7836,"It was narrated that 'Aishah said: ""The black people came and played in front of the Prophet (SAW) on the day of 'Eid. He called me and I watched them from over his shoulder, and I continued to watch them until I was the one who moved away.""" +racism,nomic,5,abudawud,2253,822450,0.7781,"‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep…" +racism,nomic,6,ibnmajah,2003,1263220,0.7776,"It was narrated from Ibn 'Umar that: a man frorn the desert people came to the Prophet and said: ""O Messenger of Allah, my wife has given birth on my bed to a black boy, and there are no black people among my family."" He said: ""Do you have camels?"" He said: ""Yes."" He said: ""What color are they?"" He…" +racism,nomic,7,abudawud,2260,822530,0.7772,Abu Hurairah said A man from Banu Fazarah came to the Prophet (saws) and said “My wife has given birth to a black son”. He said “Have you any camels?” He said “They are red”. He asked “Is there a dusky one among them?” He replied “Some of them are dusky”. He asked “How do you think they have come… +racism,nomic,8,bulugh,1102,2013700,0.7765,"Narrated Abu Hurairah (RA): A man said, ""O Allah's Messenger, my wife has given birth to a black son."" He asked, ""Have you any camels?"" He replied, ""Yes."" He asked, ""What is their color?"" He replied, ""They are red."" He asked, ""Is there a dusky (dark) one among them?"" He replied, ""Yes."" He asked,…" +racism,nomic,9,nasai,3479,1034900,0.7759,"It was narrated that Abu Hurairah said: ""A man from Banu Fazarah came to the Prophet and said: 'My wife has given birth to a black boy' -and he wanted to disown him. He said: 'Do you have camels?' He said: 'Yes.' He said: 'What color are they?' He said: 'Red.' He said: 'Are there any gray ones…" +racism,nomic,10,mishkat,3311,5832220,0.7753,"He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there…" +racism,mxbai,1,mishkat,4327,5910210,0.7839,"‘Abdallah b. ‘Amr b. al-‘As told that when God's messenger saw him wearing two garments dyed with saffron he said, “These are the garments worn by infidels ; do not wear them.” A version says that when he suggested washing them he replied, “No, burn them.” Muslim transmitted it." +racism,mxbai,2,abudawud,2253,822450,0.7826,"‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep…" +racism,mxbai,3,bulugh,1518,2054800,0.7821,"'A’ishah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “The most despicable amongst people in the sight of Allah is the ruthless argumentative (person).” Related by Muslim." +racism,mxbai,4,bukhari,30,290,0.7805,"

Narrated Al-Ma'rur:

At Ar-Rabadha I met Abu Dhar who was wearing a cloak, and his slave, too, was wearing a similar one. I asked about the reason for it. He replied, ""I abused a person by calling his mother with bad names."" The Prophet said to me, 'O Abu Dhar! Did you abuse him by calling…" +racism,mxbai,5,mishkat,3688,5870230,0.7792,"‘A’idh b. ‘Amr told that he heard God’s Messenger say, “The worst shepherds are those who are ungentle.” Muslim transmitted it." +racism,mxbai,6,bukhari,5940,55730,0.7787,"

Narrated Ibn `Umar:

The Prophet has cursed the lady who lengthens her hair artificially and the one who gets her hair lengthened, and also the lady who tattoos (herself or others) and the one who gets herself tattooed." +racism,mxbai,7,mishkat,1874,5761010,0.778,"Abu Huraira reported God’s messenger as saying, “The worst things in a man are anxious niggardliness and unrestrained cowardice.” Abd Dawud transmitted it." +racism,mxbai,8,bulugh,1201,2053310,0.7779,"Sahl bin Abi Khaithamah (RAA) narrated on the authority of some honored men from his people that 'Abdullah bin Sahl and Muhaiysah bin Mas'ud, went out to Khaibar because of a hardship they were undergoing. Muhaiysah came and told them that 'Abdullah bin Sahl had been killed and thrown into a well.…" +racism,mxbai,9,ibnmajah,1859,1261770,0.7776,"It was narrated from Abdullah bin Amr that: the Prophet said: “Do not marry women for their beauty for it may lead to their doom. Do not marry them for their wealth, for it may lead them to fall into sin. Rather, marry them for their religion. A black slave woman with piercings who is religious is…" +racism,mxbai,10,bulugh,1500,2054620,0.7772,"Abu Hurairah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “When two men insult one another, what they say is mainly the fault of the one who began it, so long as the one who is oppressed does not transgress.” Related by Muslim." +polygamy,openai-small-en,1,bukhari,5127,47975,0.7243,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for…" +polygamy,openai-small-en,2,muslim,1451 a,234150,0.7217,"

Umm al-Fadl reported: A bedouin came to Allah's Apostle (may peace be upon him) when he was in my house and said: Allah's Apostle, I have had a wife and I married another besides her, and my first wife claimed that she had suckled once or twice my newly married wife, thereupon Allah's Apostle…" +polygamy,openai-small-en,3,bukhari,5068,47440,0.7182,"

Narrated Anas:

The Prophet used to go round (have sexual relations with) all his wives in one night, and he had nine wives." +polygamy,openai-small-en,4,malik,1238,412620,0.7156,"

Yahya related to me from Malik that Ibn Shihab said, ""I have heard that the Messenger of Allah, may Allah bless him and grant him peace, said to a man from Thaqif who had ten wives when he became muslim, 'Take four and separate from the rest.' ""

" +polygamy,openai-small-en,5,abudawud,2243,822350,0.7142,"

Al-Dahhak b. Firuz reported on the authority of his father: I said: Messenger of Allah, I have embraced Islam and two sisters are my wives. He said: Divorce any one of them you wish.

" +polygamy,openai-small-en,6,muslim,1408 b,232690,0.7136,"

Abu Huraira (Allah be pleased with him) reported: that Allah's Messenger (may peace be upon him) forbade combining of four women in marriage: a woman with her father's sister, and a woman with her mother's sister." +polygamy,openai-small-en,7,ibnmajah,1953,1262720,0.7113,It was narrated that Ibn 'Umar said: “Ghailan bin Salamah became Muslim and he had ten wives. The Prophet said to him: 'Choose four of them.' ” +polygamy,openai-small-en,8,mishkat,3091,5830120,0.7109,"Ma'qil b. Yasar reported God’s Messenger as saying, “Marry women who are loving and very prolific, for I shall outnumber the peoples by you."" Abu Dawud and Nasa’i transmitted it." +polygamy,openai-small-en,9,bukhari,5215,48820,0.7104,"

Narrated Anas bin Malik:

The Prophet used to pass by (have sexual relation with) all his wives in one night, and at that time he had nine wives." +polygamy,openai-small-en,10,malik,1149,411810,0.7087,"

Yahya related to me from Malik from Rabia ibn Abi Abd ar-Rahman that al-Qasim ibn Muhammad and Urwa ibn az-Zubayr said that a man who had four wives and then divorced one of them irrevocably, could marry straightaway if he wished, and he did not have to wait for the completion of her idda.

" +polygamy,nomic,1,mishkat,3170,5830850,0.8259,"Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the…" +polygamy,nomic,2,muslim,1456 a,234320,0.8245,"

Abu Sa'id al-Khudri (Allah her pleased with him) reported that at the Battle of Hanain Allah's Messenger (may peace be upon him) sent an army to Autas and encountered the enemy and fought with them. Having overcome them and taken them captives, the Companions of Allah's Messenger (may peace te…" +polygamy,nomic,3,mishkat,2554,5810490,0.8172,"Ibn ‘Abbas said that the polytheists used to say, “Labbaik, Thou hast no partner,"" whereupon God’s messenger would say, “Woe to you ! Enough, enough; [do not add] ‘except a partner who is Thine whom Thou possessest', when He possesses none.” They used to say this when they were going round…" +polygamy,nomic,4,bukhari,5127,47975,0.8167,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for…" +polygamy,nomic,5,abudawud,2272,822650,0.8164,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was… +polygamy,nomic,6,muslim,122,202210,0.8163,

It is narrated on the authority of Ibn 'Abbas that some persons amongst the polytheist had committed a large number of murders and had excessively indulged in fornication. Then they came to Muhammad (may peace be upon him) and said: Whatever you assert and whatever you call to is indeed good.… +polygamy,nomic,7,nasai,3415,1034260,0.8123,"It was narrated that Ibn 'Umar said: ""The Prophet was asked about a man who divorced his wife three times, then another man married her and he closed the door and drew the curtain, then divorced her before consummating the marriage with her. He said: ""She is not permissible for the first one (to…" +polygamy,nomic,8,mishkat,3419,5840330,0.8112,"Ibn Umar told that he heard God’s Messenger say, “He who swears by anyone but God is a polytheist.” Tirmidhi transmitted it." +polygamy,nomic,9,bulugh,1287,2056160,0.811,"Samurah (RAA) narrated that The Messenger of Allah (P.B.U.H.) said, “Kill the mature men of the polytheists but spare their children.” Related by Abu Dawud and At-Tirmidhi graded it as Sahih." +polygamy,nomic,10,bukhari,5105,47805,0.81,"Ibn 'Abbas further said, ""Seven types of marriages are unlawful because of blood relations, and seven because of marriage relations."" Then Ibn 'Abbas recited the Verse: ""Forbidden for you (for marriages) are your mothers..."" (4:23). 'Abdullah bin Ja'far married the daughter and wife of 'Ali at the…" +polygamy,mxbai,1,abudawud,2088,820830,0.8486,

Narrated Samurah:

The Prophet (saws) said: Any woman who is married by two guardians (to two different men) belongs to the first woman who is married by two guardians (to two different men) belongs to the first of them and anything sold by a man to two persons belongs to the first of… +polygamy,mxbai,2,abudawud,2133,821280,0.8341,"

Narrated AbuHurayrah:

The Prophet (saws) said: When a man has two wives and he is inclined to one of them, he will come on the Day of resurrection with a side hanging down.

" +polygamy,mxbai,3,abudawud,2067,820620,0.8335,

Narrated Abdullah ibn Abbas:

The Prophet (saws) abominated the combination of paternal and maternal aunts and the combination of two maternal aunts and two paternal aunts in marriage.

+polygamy,mxbai,4,bulugh,1001,2012440,0.8334,"Narrated 'Aishah (RA): A man divorced his wife by three pronouncements and another man married her and divorced her before cohabiting with her. Then, her first husband intended to remarry her and asked Allah's Messenger (SAW) about that. He said, ""No, until the other one (second husband) has…" +polygamy,mxbai,5,bukhari,5127,47975,0.8334,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for…" +polygamy,mxbai,6,mishkat,3170,5830850,0.8306,"Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the…" +polygamy,mxbai,7,bukhari,4528,42060,0.8297,"

Narrated Jabir:

Jews used to say: ""If one has sexual intercourse with his wife from the back, then she will deliver a squint-eyed child."" So this Verse was revealed:-- ""Your wives are a tilth unto you; so go to your tilth when or how you will."" (2.223)" +polygamy,mxbai,8,bukhari,5261,49270,0.8295,"

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, ""No, she cannot marry the first husband…" +polygamy,mxbai,9,abudawud,2272,822650,0.8286,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was… +polygamy,mxbai,10,bukhari,5104,47800,0.8278,"

Narrated `Uqba bin Al-Harith:

I married a woman and then a black lady came to us and said, ""I have suckled you both (you and your wife)."" So I came to the Prophet and said, ""I married so-and-so and then a black lady came to us and said to me, 'I have suckled both of you.' But I think she is…" +pork,openai-small-en,1,abudawud,3489,834820,0.6549,

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

+pork,openai-small-en,2,bukhari,5506,51590,0.6408,"

Narrated Rafi` bin Khadij:

The Prophet said, ""Eat what is slaughtered (with any instrument) that makes blood flow out, except what is slaughtered with a tooth or a nail.'" +pork,openai-small-en,3,bukhari,1824,17120,0.6392,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all…" +pork,openai-small-en,4,shamail,170,1801610,0.6351,'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” +pork,openai-small-en,5,muslim,1938 c,247720,0.6349,

Bara was heard saying: We were forbidden (to eat) the flesh of the domestic asses. +pork,openai-small-en,6,abudawud,2796,827900,0.6344,"

Narrated AbuSa'id al-Khudri:

The Messenger of Allah (saws) used to sacrifice a choice, horned ram with black round the eyes, the mouth and the feet.

" +pork,openai-small-en,7,malik,621,406230,0.6315,"

Yahya related to me from Malik from Zayd ibn Aslam from his father that he said to Umar ibn al-Khattab, ""There is a blind she- camel behind the house,'' soUmar said, ""Hand it over to a household so that they can make (some) use of it."" He said, ""But she is blind."" Umar replied, ""Then put it in…" +pork,openai-small-en,8,malik,,410940,0.6298,"

Yahya related to me from Malik that the best of what he had heard about a man who is forced by necessity to eat carrion is that he ate it until he was full and then he took provision from it. If he found something which would enable him to dispense with it, he threw it away.

Malik when…" +pork,openai-small-en,9,ibnmajah,3146,1272490,0.6296,"It was narrated that Abu Sa’eed Al-Khudri said: “We bought a ram for sacrifice, then a wolf tore some flesh from its rump and ears. We asked the Prophet (saw) and he told us to offer it as a sacrifice.”" +pork,openai-small-en,10,bukhari,5527,51801,0.6295,

Narrated Abu Tha'alba:

Allah's Apostle prohibited the eating of donkey's meat.

Narrated Az-Zuhri:

The Prophet prohibited the eating of beasts having fangs.

+pork,nomic,1,bukhari,1495,14100,0.795,"

Narrated Anas:

Some meat was presented to the Prophet (p.b.u.h) and it had been given to Barira (the freed slave-girl of Aisha) in charity. He said, ""This meat is a thing of charity for Barira but it is a gift for us.""" +pork,nomic,2,tirmidhi,1509,615860,0.7935,"Narrated Ibn 'Umar: That the Prophet (saws) said: ""None of you should eat from the meat of his sacrificial animal beyond three days.""" +pork,nomic,3,bukhari,1824,17120,0.7908,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all…" +pork,nomic,4,shamail,169,1801600,0.7896,"'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.”" +pork,nomic,5,abudawud,2814,828080,0.7892,"Narrated Thawban: The Messenger of Allah (saws) sacrificed during a journey and then said: Thawban, mend the meat of this goat. I then kept on supplying its meat until we reached Medina." +pork,nomic,6,bulugh,15,2000210,0.7864,"Narrated Abu Waqid Al-Laithi: Narrated Abu Waqid Al-Laithi (rad): Allah’s Messenger (saw) said, “Whatever (portion) is cut off from an animal when it is alive is dead (meat). [Reported by Abu Da’ud and At-Tirmidhi who graded it Hasan (fair) and this version is of Tirmidhi]." +pork,nomic,7,adab,1276,2212320,0.7855,"Ya'la ibn Murra reported that he heard Abu Hurayra speaking about someone who plays backgammon and bets on it, saying that he is like someone who eats pig meat and that the person who plays it without betting on it is like someone who washes his hands in pig's blood. The person who sits looking at…" +pork,nomic,8,shamail,166,1801570,0.7843,"Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.”" +pork,nomic,9,ibnmajah,3216,1273220,0.783,"It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).”" +pork,nomic,10,muslim,1975 a,248630,0.7829,"

Thauban reported that Allah's Messenger (way peace be upon him) slaughtered his sacrificial animal and then said: Thauban, make his meat usable (for journey), and I continuously served him that until he arrived in Medina." +pork,mxbai,1,shamail,170,1801610,0.7987,'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” +pork,mxbai,2,ibnmajah,3216,1273220,0.7976,"It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).”" +pork,mxbai,3,shamail,169,1801600,0.7928,"'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.”" +pork,mxbai,4,ibnmajah,3314,1274220,0.7917,"It was narrated from ‘Abdullah bin ‘Umar that the Messenger of Allah (saw) said: “Two kinds of dead meat and two kinds of blood have been permitted to us. The two kinds of dead meat are fish and locusts, and the two kinds of blood are the liver and spleen.”" +pork,mxbai,5,mishkat,4215,5900530,0.7913,"‘A’isha reported God’s messenger as saying, “Do not cut meat with a knife, for it is a foreign practice, but bite it, for that is more beneficial and wholesome.” Abu Dawud and Baihaqi, in Shu'ab al-iman, transmitted it, both saying it is not strong." +pork,mxbai,6,shamail,166,1801570,0.7905,"Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.”" +pork,mxbai,7,abudawud,3489,834820,0.7894,

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

+pork,mxbai,8,nasai,4425,1084785,0.7879,"'Ali bin Abi Talib Said: ""The Messenger of Allah has forbidden you from eating the meat of your sacrificaial animals for more than three day."" (Sahih )" +pork,mxbai,9,bukhari,1492,14070,0.7863,"

Narrated Ibn `Abbas:

The Prophet saw a dead sheep which had been given in charity to a freed slave-girl of Maimuna, the wife of the Prophet . The Prophet said, ""Why don't you get the benefit of its hide?"" They said, ""It is dead."" He replied, ""Only to eat (its meat) is illegal.""" +pork,mxbai,10,bukhari,1824,17120,0.7858,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all…" +dance,openai-small-en,1,malik,75,400750,0.6113,"

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, ""I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the…" +dance,openai-small-en,2,abudawud,4854,848360,0.5992,"

Narrated AbudDarda':

The Messenger of Allah (saws) would sit and we would also sit around him. If he got up intending to return, he would take off his sandals or something he was wearing, and his Companions recognising his purpose (that he would return) would stay where they were.

" +dance,openai-small-en,3,abudawud,4923,849050,0.5977,"

Narrated Anas ibn Malik:

When the Messenger of Allah (saws) came to Medina, the Abyssinians played for his coming out of joy; they played with spears.

" +dance,openai-small-en,4,bukhari,1591,15000,0.597,"

Narrated Abu Huraira:

The Prophet;; said, ""Dhus-Suwaiqa-tain (literally: One with two lean legs) from Ethiopia will demolish the Ka`ba.""" +dance,openai-small-en,5,abudawud,652,806520,0.5956,"

Narrated Aws ibn Thabit al-Ansari:

The Messenger of Allah (saws) said: Act differently from the Jews, for they do not pray in their sandals or their shoes.

" +dance,openai-small-en,6,bukhari,2628,24600,0.5948,"

Narrated Aiman:

I went to `Aisha and she was wearing a coarse dress costing five Dirhams. `Aisha said, ""Look up and see my slave-girl who refuses to wear it in the house though during the lifetime of Allah's Apostle I had a similar dress which no woman desiring to appear elegant (before her…" +dance,openai-small-en,7,mishkat,765,5741920,0.5945,"Shaddad b. Aus reported God’s Messenger as saying, “Act differently from the Jews, for they do not pray in their sandals or their shoes.”* * Khuff (pl. khifaf), an article of footwear which came up above the ankle. Traditions tell that the Prophet allowed pilgrims to wear the…" +dance,openai-small-en,8,ibnmajah,2939,1279690,0.594,It was narrated that ‘Abdullah bin ‘Abbas said: “The Prophets used to enter the Haram walking barefoot. They would circumambulate the House and complete all the rituals barefoot and walking.” +dance,openai-small-en,9,forty,33,1430330,0.5939,Actions are through intentions. +dance,openai-small-en,10,forty,18,1430180,0.5936,The felicitous person takes lessons from (the actions of) others. +dance,nomic,1,tirmidhi,40,660400,0.7981,"Al-Mustawrid bin Shaddad Al-Fihri said : ""I saw the Prophet when he was performing Wudu doing that to the toes on his feet with his pinky.""" +dance,nomic,2,tirmidhi,3734,636130,0.7957,"Narrated Ibn 'Abbas: ""The first to perform Salat was 'Ali.""" +dance,nomic,3,tirmidhi,39,660390,0.7927,"Ibn Abbas narrated that : Allah's Messenger said: ""When performing Wudu go between the fingers of your hands and (toes of) your feet.""" +dance,nomic,4,bulugh,55,2000660,0.7924,"Narrated Anas (rad): The Prophet (saw) saw a man on whose foot appeared a portion like the size of a nail which was not touched by water. He then said, “Go back and perform your Wudu properly.” [Reported by Abu Da’ud and An-Nasa’i]." +dance,nomic,5,bukhari,6702,63020,0.7916,"

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf around the Ka`ba, tied with a rope or something else (while another person was holding him). The Prophet cut that rope off." +dance,nomic,6,bukhari,5910,55443,0.7911,

Narrated Anas: The Prophet had big feet and hands. +dance,nomic,7,abudawud,1986,819810,0.791,Narrated Ibn 'Umar: The Messenger of Allah (saws) performed 'Umrah before performing Hajj. +dance,nomic,8,nasai,50,1000500,0.789,"It was narrated from Abu Hurairah that the Prophet (PBUH) performed Wudu', and when he had performed Istinja' he rubbed his hand on the ground." +dance,nomic,9,bulugh,1443,2054061,0.7884,"In a version by Muslim, “And the one who is riding should salute the one who is walking.”" +dance,nomic,10,bulugh,45,2000550,0.7884,"Narrated Abu Huraira (rad): Allah’s Messenger (rad) said, “When you perform ablution, begin with your right limbs”. [Reported by Al-Arba’a and garded Sahih by Ibn Khuzaima]." +dance,mxbai,1,muslim,819 a,217850,0.7711,"

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached seven modes (of recitation). Ibn Shibab said: It has reached me that these seven styles are essentially…" +dance,mxbai,2,abudawud,727,807260,0.7646,The above tradition has been transmitted by ‘Asim b. Kulaib through a different chain of narrators and to the same effect. This version has: “He then placed his right hand on the back of his left palm and his wrist and forearm.” This also adds: “I then came back afterwards in a season when it was… +dance,mxbai,3,abudawud,942,809420,0.76,‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. +dance,mxbai,4,tirmidhi,3418,681290,0.7595,"`Abdullah bin `Abbas [may Allah be pleased with them] narrated, : that when the Messenger of Allah (saws) would stand for prayer during the middle of the night, he would say: “O Allah, to You is the Praise, You are the Light of the heavens and the earth, and to You is the Praise, You are the…" +dance,mxbai,5,malik,75,400750,0.7591,"

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, ""I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the…" +dance,mxbai,6,abudawud,958,809571,0.7588,"'Abdullah bin 'Umar said: ""A Sunnah of the prayer is that you should raise your right foot, and make your left foot lie (on the ground).""" +dance,mxbai,7,mishkat,4416,5911060,0.7583,"Al-Qasim b. Muhammad quoted ‘A’isha as saying the Prophet often walked wearing one sandal. A version says she walked wearing one sandal. Tirmidhi transmitted it, saying this is sounder" +dance,mxbai,8,muslim,2099 d,252370,0.7576,

Jabir. b. Abdullah reported Allah's Messenger (may peace be upon him) as saying: Do not walk in one sandal and do not wrap the lower garment round your knees and do not eat with your left hand and do not wrap yourself completely leaving no room for the arms (to draw out) and do not place one of… +dance,mxbai,9,muslim,2097 a,252310,0.7554,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: ""When one of you puts on sandals, he should first put in the right foot, and when he takes off he should take off the left one first. And he should wear both of them or take both off.""" +dance,mxbai,10,abudawud,859,808580,0.7548,"This tradition has also been transmitted through a different chain of narrators by Rifa’ah b. Rafi. This version goes: When you get up and face the qiblah, what Allah wishes you to recite. And when you bow, put your palms on your knees and stretch out your back. When you prostrate yourself, do it…" diff --git a/test results & reports/lexical vs semantic/test2/batch_report.md b/test results & reports/lexical vs semantic/test2/batch_report.md new file mode 100644 index 0000000..b0784a2 --- /dev/null +++ b/test results & reports/lexical vs semantic/test2/batch_report.md @@ -0,0 +1,1627 @@ +# Batch Search Report +**Date:** 2026-05-25 +**Models:** lexical, openai-small-en, nomic, mxbai +**Method:** lexical = BM25 + collection boosts; semantic = HNSW `size=100` +**Queries:** 13, report shows top 10 per model + +## Queries +- [comparing yourself to others](#query-comparing-yourself-to-others) +- [aisha six years](#query-aisha-six-years) +- [music](#query-music) +- [actions are by intentions](#query-actions-are-by-intentions) +- [ramadan](#query-ramadan) +- [jesus](#query-jesus) +- [sex](#query-sex) +- [marriage](#query-marriage) +- [masturbation](#query-masturbation) +- [racism](#query-racism) +- [polygamy](#query-polygamy) +- [pork](#query-pork) +- [dance](#query-dance) + +--- + +## Query: "comparing yourself to others" + +### lexical — 3850 total hits + +**#1** — muslim 1776 d · score: 17.9936 +>

This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed. + +**#2** — bukhari 3334 · score: 16.2561 +>

Narrated Anas:

The Prophet said, "Allah will say to that person of the (Hell) Fire who will receive the least punishment, 'If you had everything on the earth, would you give it as a ransom to free yourself (i.e. save yourself from this Fire)?' He will say, 'Yes.' Then Allah will say, 'While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me.' " + +**#3** — muslim 2431 · score: 16.1899 +>

Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods. + +**#4** — bukhari 4816 · score: 14.8959 +>

Narrated Ibn Mas`ud:

(regarding) the Verse: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you..' (41.22) While two persons from Quraish and their brotherin- law from Thaqif (or two persons from Thaqif and their brother-in-law from Quraish) were in a house, they said to each other, "Do you think that Allah hears our talks?" Some said, "He hears a portion thereof" Others said, "If He can hear a portion of it, He can hear all of it." Then the following Verse was revealed: 'And you have not been screening against… + +**#5** — muslim 2939 b · score: 14.8806 +>

Mughira b. Shu'ba reported that none asked Allah's Apostle (may peace be upon him) about Dajjal more than I asked him. I (one of the narrators other than Mughira b. Shu'ba) said: What did you ask? Mughira replied: I said that the people alleged that he would have a mountain load of bread and mutton and rivers of water. Thereupon he said: He would be more insignificant in the eye of Allah compared with all this. + +**#6** — abudawud 4627 · score: 14.877 +> Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other. + +**#7** — bukhari 6557 · score: 14.3848 +>

Narrated Anas bin Malik:

The Prophet said, "Allah will say to the person who will have the minimum punishment in the Fire on the Day of Resurrection, 'If you had things equal to whatever is on the earth, would you ransom yourself (from the punishment) with it?' He will reply, Yes. Allah will say, 'I asked you a much easier thing than this while you were in the backbone of Adam, that is, not to worship others besides Me, but you refused and insisted to worship others besides Me."' + +**#8** — bukhari 2219 · score: 14.3251 +>

Narrated Sa`d that his father said:

`Abdur-Rahman bin `Auf said to Suhaib, 'Fear Allah and do not ascribe yourself to somebody other than your father.' Suhaib replied, 'I would not like to say it even if I were given large amounts of money, but I say I was kidnapped in my childhood.' " + +**#9** — bukhari 3628 · score: 14.191 +>

Narrated Ibn `Abbas:

Allah's Apostle in his fatal illness came out, wrapped with a sheet, and his head was wrapped with an oiled bandage. He sat on the pulpit, and praising and glorifying Allah, he said, "Now then, people will increase but the Ansar will decrease in number, so much so that they, compared with the people, will be just like the salt in the meals. So, if any of you should take over the authority by which he can either benefit some people or harm some others, he should accept the goodness of their good people (i.e. Ansar) and excuse the faults of their wrong-doers." That… + +**#10** — bukhari 3655 · score: 14.0406 +>

Narrated Ibn `Umar:

We used to compare the people as to who was better during the lifetime of Allah's Apostle . We used to regard Abu Bakr as the best, then `Umar, and then `Uthman . + + +### openai-small-en — 150 total hits + +**#1** — adab 328 · score: 0.6896 +> Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults." + +**#2** — bukhari 6490 · score: 0.6896 +>

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. + +**#3** — riyadussalihin 466 · score: 0.6851 +> Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you."
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him".

+ +**#4** — ahmad 111 · score: 0.6775 +> It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about… + +**#5** — forty 18 · score: 0.6753 +> The felicitous person takes lessons from (the actions of) others. + +**#6** — muslim 2963 c · score: 0.6708 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.

In the chain narrated by Abu Mu'awiya's he said: Upon you. + +**#7** — adab 592 · score: 0.6669 +> Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye." + +**#8** — muslim 2963 a · score: 0.6666 +>

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). + +**#9** — abudawud 4084 · score: 0.6659 +>

Narrated AbuJurayy Jabir ibn Salim al-Hujaymi:

I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say "On you be peace," for "On you be peace" is a greeting for the dead, but say "Peace be upon you".

I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought… + +**#10** — bulugh 1471 · score: 0.664 +> Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih. + + +### nomic — 150 total hits + +**#1** — bukhari 6490 · score: 0.8354 +>

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. + +**#2** — bukhari 6061 · score: 0.8165 +>

Narrated Abu Bakra:

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, "May Allah's Mercy be on you ! You have cut the neck of your friend." The Prophet repeated this sentence many times and said, "If it is indispensable for anyone of you to praise someone, then he should say, 'I think that he is so-and-so," if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody before Allah." (Khalid said, "Woe to you," instead of "Allah's Mercy be on you.") + +**#3** — bulugh 1471 · score: 0.8111 +> Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih. + +**#4** — bukhari 6530 · score: 0.8109 +>

Narrated Abu Sa`id:

The Prophet said, "Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) are the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine (persons).' At that time children will become hoary-headed and every pregnant female will drop her load (have an abortion) and you will see the people as if they were… + +**#5** — muslim 2963 a · score: 0.8103 +>

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). + +**#6** — tirmidhi 2513 · score: 0.809 +> Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you." + +**#7** — bukhari 6162 · score: 0.8085 +>

Narrated Abu Bakra:

A man praised another man in front of the Prophet. The Prophet said thrice, "Wailaka (Woe on you) ! You have cut the neck of your brother!" The Prophet added, "If it is indispensable for anyone of you to praise a person, then he should say, "I think that such-and-such person (is so-and-so), and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah (and that only if he knows well about that person.)". + +**#8** — nasai 3947 · score: 0.8077 +> It was narrated from Abu Musa that the Prophet said: "The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food." + +**#9** — abudawud 4627 · score: 0.8051 +> Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other. + +**#10** — adab 1146 · score: 0.8041 +> Ibn 'Abbas said, "The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me." + + +### mxbai — 150 total hits + +**#1** — forty 18 · score: 0.8147 +> The felicitous person takes lessons from (the actions of) others. + +**#2** — bukhari 6490 · score: 0.8022 +>

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. + +**#3** — forty 3 · score: 0.7969 +> A Muslim is a mirror of the Muslim. + +**#4** — muslim 2963 a · score: 0.794 +>

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). + +**#5** — ibnmajah 4336 · score: 0.792 +> Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace there?” He said: “Yes. The Messenger of Allah (saw) told me that when the people of Paradise enter it, they will take their places according to their deeds, and they will be given permission for a length of time equivalent to Friday on earth, when they will visit Allah. His Throne will be shown to them and He will appear to them in one of the gardens of Paradise. Chairs of light and chairs of pearls… + +**#6** — adab 159 · score: 0.7897 +> Abu'd-Darda' used to say to people. "We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves." + +**#7** — riyadussalihin 466 · score: 0.7864 +> Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you."
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him".

+ +**#8** — muslim 2536 · score: 0.7854 +>

'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation). + +**#9** — tirmidhi 2513 · score: 0.7821 +> Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you." + +**#10** — abudawud 4092 · score: 0.7821 +>

Narrated AbuHurayrah:

A man who was beautiful came to the Prophet (saws). He said: Messenger of Allah, I am a man who likes beauty, and I have been given some of it, as you see. And I do not like that anyone excels me (in respect of beauty). Perhaps he said: "even to the extent of thong of my sandal (shirak na'li)", or he he said: "to the extent of strap of my sandal (shis'i na'li)". Is it pride? He replied: No, pride is disdaining what is true and despising people.

+ + +--- + +## Query: "aisha six years" + +### lexical — 5555 total hits + +**#1** — bukhari 5133 · score: 23.3839 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death). + +**#2** — bukhari 3896 · score: 23.3248 +>

Narrated Hisham's father:

Khadija died three years before the Prophet departed to Medina. He stayed there for two years or so and then he married `Aisha when she was a girl of six years of age, and he consumed that marriage when she was nine years old. + +**#3** — bukhari 5158 · score: 23.2301 +>

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him for nine years (i.e. till his death). + +**#4** — bukhari 5134 · score: 23.1431 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). + +**#5** — muslim 1422 b · score: 22.7803 +>

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old. + +**#6** — muslim 1422 d · score: 22.0443 +> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old + +**#7** — abudawud 2121 · score: 21.5411 +> Narrated 'Aishah: The Messenger of Allah (saws) married me when I was seven years old. The narrator Sulaiman said: or Six years. He had intercourse with me when I was nine years old. + +**#8** — nasai 3255 · score: 21.1657 +> It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine. + +**#9** — bukhari 3948 · score: 18.5181 +>

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. + +**#10** — bukhari 3894 · score: 17.7972 +>

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on my hair grew (again) and my mother, Um Ruman, came to me while I was playing in a swing with some of my girl friends. She called me, and I went to her, not knowing what she wanted to do to me. She caught me by the hand and made me stand at the door of the house. I was breathless then, and when my breathing became Allright, she took some water and rubbed my face and head with it. Then she took me… + + +### openai-small-en — 150 total hits + +**#1** — bukhari 5134 · score: 0.7911 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). + +**#2** — bukhari 5133 · score: 0.7872 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death). + +**#3** — muslim 1422 d · score: 0.7823 +> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old + +**#4** — muslim 1422 b · score: 0.7807 +>

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old. + +**#5** — muslim 1422 c · score: 0.78 +>

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old. + +**#6** — mishkat 3129 · score: 0.7723 +> ‘A’isha said that the Prophet married her when she was seven, she was brought to live with him when she was nine bringing her toys with her, and he died when she was eighteen. Muslim transmitted it. + +**#7** — muslim 334 d · score: 0.7658 +>

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years," and the rest of the hadith is the same (as mentioned above). + +**#8** — nasai 3378 · score: 0.7618 +> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls." + +**#9** — ibnmajah 1877 · score: 0.7572 +> It was narrated that: Abdullah said: “The Prophet married Aishah when she was seven years old, and consummated the marriage with her when she was nine, and he passed away when she was eighteen.” + +**#10** — nasai 3379 · score: 0.7566 +> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine." + + +### nomic — 150 total hits + +**#1** — muslim 1422 d · score: 0.7981 +> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old + +**#2** — bukhari 3948 · score: 0.7872 +>

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. + +**#3** — muslim 334 d · score: 0.7823 +>

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years," and the rest of the hadith is the same (as mentioned above). + +**#4** — muslim 1422 b · score: 0.7789 +>

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old. + +**#5** — bulugh 228 · score: 0.7779 +> It is mentioned in al-Bazzar through another chain with the addition: "forty years." + +**#6** — abudawud 2240 · score: 0.7756 +>

Narrated Abdullah ibn Abbas:

The Messenger of Allah (saws) restored his daughter Zaynab to Abul'As on the basis of the previous marriage, and he did not do anything afresh.

Muhammad b. 'Amr said in his version: After six years. Al-Hasan b. 'Ali said: After two years.

+ +**#7** — shamail 380 · score: 0.7728 +> Mu'awiya said in a sermon: "The Prophet died (Allah bless him and give him peace) when he was sixty-three years of age, as did Abu Bakr and 'Umar, and I am now sixty-three years of age.” + +**#8** — muslim 1422 c · score: 0.771 +>

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old. + +**#9** — mishkat 5489 · score: 0.7701 +> Asma' daughter of Yazid b. as-Sakan reported the Prophet a saying, "The dajjal will remain in the earth forty years, a year being like a month, a month like a week, a week like a day, and a day like the time it takes to burn a palm-branch." It is transmitted in Sharh as sunna. + +**#10** — bukhari 5133 · score: 0.7689 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death). + + +### mxbai — 150 total hits + +**#1** — bukhari 3894 · score: 0.8627 +>

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on my hair grew (again) and my mother, Um Ruman, came to me while I was playing in a swing with some of my girl friends. She called me, and I went to her, not knowing what she wanted to do to me. She caught me by the hand and made me stand at the door of the house. I was breathless then, and when my breathing became Allright, she took some water and rubbed my face and head with it. Then she took me… + +**#2** — nasai 3255 · score: 0.8612 +> It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine. + +**#3** — bukhari 5133 · score: 0.86 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death). + +**#4** — ibnmajah 1876 · score: 0.8522 +> It was narrated that: Aishah said: “The Messenger of Allah married me when I was six years old. Then we came to Al-Madinah and settled among Banu Harith bin Khazraj. I became ill and my hair fell out, then it grew back and became abundant. My mother Umm Ruman came to me while I was on an Urjuhah with some of my friends, and called for me. I went to her, and I did not know what she wanted. She took me by the hand and made me stand at the door of the house, and I was panting. When I got my breath back, she took some water and wiped my face and head, and led me into the house. There were some… + +**#5** — bukhari 5134 · score: 0.8507 +>

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). + +**#6** — bukhari 5158 · score: 0.849 +>

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him for nine years (i.e. till his death). + +**#7** — nasai 3378 · score: 0.8465 +> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls." + +**#8** — nasai 3379 · score: 0.8449 +> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine." + +**#9** — muslim 1422 d · score: 0.8446 +> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old + +**#10** — nasai 3258 · score: 0.8426 +> It was narrated from 'Aishah that the Messenger of Allah married her when she was nine and he died when she was eighteen years old. + + +--- + +## Query: "music" + +### lexical — 14 total hits + +**#1** — muslim 2114 · score: 16.9802 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. + +**#2** — abudawud 2556 · score: 15.2798 +> Abu Hurairah reported the Apostle of Allaah(saws) as saying “The bell is a wooden wind musical instrument of Satan.” + +**#3** — bukhari 952 · score: 14.6703 +>

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said protestingly, "Musical instruments of Satan in the house of Allah's Apostle !" It happened on the `Id day and Allah's Apostle said, "O Abu Bakr! There is an `Id for every nation and this is our `Id." + +**#4** — riyadussalihin 1691 · score: 14.4857 +> Abu Hurairah (May Allah be pleased with him) said: The Prophet (PBUH) said, "The bell is one of the musical instruments of Satan."

[Muslim].

+ +**#5** — bukhari 3931 · score: 14.4274 +>

Narrated Aisha:

That once Abu Bakr came to her on the day of `Id-ul-Fitr or `Id ul Adha while the Prophet was with her and there were two girl singers with her, singing songs of the Ansar about the day of Buath. Abu Bakr said twice. "Musical instrument of Satan!" But the Prophet said, "Leave them Abu Bakr, for every nation has an `Id (i.e. festival) and this day is our `Id." + +**#6** — bukhari 5590 · score: 13.4703 +>

Narrated Abu 'Amir or Abu Malik Al-Ash'ari:

that he heard the Prophet saying, "From among my followers there will be some people who will consider illegal sexual intercourse, the wearing of silk, the drinking of alcoholic drinks and the use of musical instruments, as lawful. And there will be some people who will stay near the side of a mountain and in the evening their shepherd will come to them with their sheep and ask them for something, but they will say to him, 'Return to us tomorrow.' Allah will destroy them during the night and will let the mountain fall on them, and He will… + +**#7** — tirmidhi 2212 · score: 13.1285 +> 'Imran bin Husain narrated that the Messenger of Allah(s.a.w) said: "In this Ummah there shall be collapsing of the earth, transformation and Qadhf." A man among the Muslims said: "O Messenger of Allah! When is that?" He said: "When singing slave-girls, music, and drinking intoxicants spread." + +**#8** — ibnmajah 4020 · score: 12.3358 +> It was narrated from Abu Malik Ash’ari that the Messenger of Allah (saw) said: “People among my nation will drink wine, calling it by another name, and musical instruments will be played for them and singing girls (will sing for them). Allah will cause the earth to swallow them up, and will turn them into monkeys and pigs.” + +**#9** — nasai 4135 · score: 11.4333 +> It was narrated that Al-Awza'i said: "Umar bin 'Abdul-'Aziz wrote a letter to 'Umar bin Al-Walid in which he said: 'The share that your father gave to you was the entire Khumus,[1] but the share that your father is entitled to is the same as that of any man among the Muslims, on which is due the rights of Allah and His Messenger, and of relatives, orphans, the poor and wayfarers. How many will dispute with your father on the Day of Resurrection! How can he be saved who has so many disputants? And your openly allowing musical instruments and wind instruments is an innovation in Islam. I was… + +**#10** — muslim 892 e · score: 11.1285 +>

`A'isha reported: The Messenger of Allah (may peace be upon him) came (to my apartment) while there were two girls with me singing the song of the Battle of Bu`ath. He lay down on the bed and turned away his face. Then came Abu Bakr and he scolded me and said: Oh! this musical instrument of the devil in the house of the Messenger of Allah (may peace be upon him)! The Messenger of Allah (may peace be upon him) turned towards him and said: Leave them alone. And when he (the Holy Prophet) became unattentive, I hinted them and they went out, and it was the day of `Id and the black men were… + + +### openai-small-en — 150 total hits + +**#1** — mishkat 3153 · score: 0.6246 +> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it. + +**#2** — malik 1748 · score: 0.6186 +>

Yahya related to me from Malik from Abu Hazim ibn Dinar that Abu Idris al-Khawlani said, "I entered the Damascus mosque and there was a young man with a beautiful mouth and white teeth sitting with some people. When they disagreed about something, they referred it to him and proceeded from his statement. I inquired about him, and it was said, 'This is Muadh ibn Jabal.' The next day I went to the noon-prayer, and I found that he had preceded me to the noon prayer and I found him praying."

Abu Idris continued, "I waited for him until he had finished the prayer. Then I came to him… + +**#3** — abudawud 1468 · score: 0.617 +>

Narrated Al-Bara' ibn Azib:

The Prophet (saws) said: Beautify the Qur'an with your voices.

+ +**#4** — adab 786 · score: 0.6146 +> Ibn 'Abbas said about "There are some people who trade in distracting tales" (31:5) that it means singing and things like it. + +**#5** — bukhari 439 · score: 0.6132 +>

Narrated `Aisha:

There was a black slave girl belonging to an 'Arab tribe and they manumitted her but she remained with them. The slave girl said, "Once one of their girls (of that tribe) came out wearing a red leather scarf decorated with precious stones. It fell from her or she placed it somewhere. A kite passed by that place, saw it Lying there and mistaking it for a piece of meat, flew away with it. Those people searched for it but they did not find it. So they accused me of stealing it and started searching me and even searched my private parts." The slave girl further said, "By… + +**#6** — muslim 2114 · score: 0.6126 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. + +**#7** — adab 1265 · score: 0.6111 +> Ibn 'Abbas said that the words of Allah in Luqman (35:6), "There are people who trade in distracting tales" mean "singing and things like it." + +**#8** — muslim 793 d · score: 0.607 +>

Buraida reported on the authority of his father that the Messenger of Allah (may peace be upon him) had said: 'Abdullah b. Qais or al-Ash'ari has been gifted with a sweet melodious voice out of the voices of the family of David. + +**#9** — forty 19 · score: 0.6066 +> Indeed, in poetry there is wisdom and in eloquence there is magic. + +**#10** — forty 25 · score: 0.6059 +>

Also on the authority of Abu Dharr (may Allah be pleased with him): Some people from amongst the Companions of the Messenger of Allah (peace and blessings of Allah be upon him) said to the Prophet (peace and blessings of Allah be upon him), "O Messenger of Allah, the affluent have made off with the rewards; they pray as we pray, they fast as we fast, and they give [much] in charity by virtue of their wealth." He (peace and blessings of Allah be upon him) said, "Has not Allah made things for you to give in charity? Truly every tasbeehah [saying: 'subhan-Allah'] is a charity, and every… + + +### nomic — 150 total hits + +**#1** — muslim 2114 · score: 0.8074 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. + +**#2** — mishkat 3153 · score: 0.8052 +> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it. + +**#3** — tirmidhi 3728 · score: 0.7873 +> Narrated Anas bin Malik: "The advent of the Prophet (SAW) was on Monday and 'Ali performed Salat on Tuesday." + +**#4** — muslim 892 a · score: 0.7864 +>

'A'isha reported: Abu Bakr came to see me and I had two girls with me from among the girls of the Ansar and they were singing what the Ansar recited to one another at the Battle of Bu'ath. They were not, however, singing girls. Upon this Abu Bakr said: What I (the playing of) this wind instrument of Satan in the house of the Messenger of Allah (may peace be upon him) and this too on 'Id day? Upon this the Messenger of Allah (may peace be upon him) said: Abu Bakr, every people have a festival and it is our festival (so let them play on). + +**#5** — tirmidhi 3734 · score: 0.7863 +> Narrated Ibn 'Abbas: "The first to perform Salat was 'Ali." + +**#6** — nasai 342 · score: 0.7859 +> It was narrated that Ibn 'Umar said: "Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH)." + +**#7** — bukhari 952 · score: 0.7855 +>

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said protestingly, "Musical instruments of Satan in the house of Allah's Apostle !" It happened on the `Id day and Allah's Apostle said, "O Abu Bakr! There is an `Id for every nation and this is our `Id." + +**#8** — nasai 71 · score: 0.7854 +> It was narrated that Ibn 'Umar said: "Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH)." + +**#9** — bukhari 1621 · score: 0.7853 +>

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf of the Ka`ba tied with a string or something else. So the Prophet cut that string. + +**#10** — ibnmajah 1898 · score: 0.7842 +> It was narrated that 'Aishah said: “Abu Bakr entered upon me, and there were two girls from the Ansar with me, singing about the Day of Bu'ath.” She said: “And they were not really singers. Abu Bakr said: 'The wind instruments of Satan in the house of the Prophet ?' That was on the day of 'Eid(Al-Fitr). But the Prophet said: 'O Abu Bakr, every people has its festival and this is our festival.' ” + + +### mxbai — 150 total hits + +**#1** — muslim 892 b · score: 0.7705 +>

This hadith has been narrated by Hisham with the same chain of transmitters, but there the words are:" Two girls were playing upon a tambourine." + +**#2** — muslim 819 a · score: 0.7603 +>

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached seven modes (of recitation). Ibn Shibab said: It has reached me that these seven styles are essentially one, not differing about what is permitted and what is forbidden. + +**#3** — tirmidhi 2780b · score: 0.7596 +> Another chain with a similar narration + +**#4** — tirmidhi 2783b · score: 0.7578 +> (Another chain) with a similar narration + +**#5** — tirmidhi 1599 · score: 0.7559 +> Another chain with similar narration. + +**#6** — mishkat 2214 · score: 0.752 +> Ibn ‘Abbās reported God’s messenger as saying, “Gabriel taught me to recite in one mode, and when I replied to him and kept asking him to give me more he did so till he reached seven modes." Ibn Shihāb said he had heard that those seven modes are essentially one, not differing about what is permitted and what is prohibited. (Bukhārī and Muslim.) + +**#7** — mishkat 3153 · score: 0.7513 +> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it. + +**#8** — hisn 94 · score: 0.7495 +> Subḥānallāhi wa biḥamdih: `adada khalqih, wa riḍā nafsih, wa zinata `arshih, wa midāda kalimātih. Glory is to Allah and praise is to Him, by the multitude of His creation, by His Pleasure, by the weight of His Throne, and by the extent of His Words. (Recite three times in Arabic upon rising in the morning.) Reference: Muslim 4/2090. + +**#9** — abudawud 942 · score: 0.7494 +> ‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. + +**#10** — hisn 181 · score: 0.7488 +> Alhamdu lillāhi ḥamdan kathīran tayyiban mubārakan fīh, ghayra makfiyyin wa lā muwadda`in, wa lā mustaghnan `anhu Rabbanā. All praise is to Allah, praise in abundance, good and blessed. It cannot [be compensated for, nor can it] be left, nor can it be done without, our Lord. Reference: Al-Bukhari 6/214, At-Tirmidhi 5/507. + + +--- + +## Query: "actions are by intentions" + +### lexical — 844 total hits + +**#1** — forty 33 · score: 16.884 +> Actions are through intentions. + +**#2** — muslim 1907 a · score: 15.5908 +>

It has been narrated on the authority of Umar b. al-Khattab that the Messenger of Allah (may peace be upon him) said: (The value of) an action depends on the intention behind it. A man will be rewarded only for what he intended. The emigration of one who emigrates for the sake of Allah and His Messenger (may peace be upon him) is for the sake of Allah and His Messenger (may peace be upon him) ; and the emigration of one who emigrates for gaining a worldly advantage or for marrying a woman is for what he has emigrated. + +**#3** — bukhari 26 · score: 15.5359 +>

Narrated Abu Huraira:

Allah's Apostle was asked, "What is the best deed?" He replied, "To believe in Allah and His Apostle (Muhammad). The questioner then asked, "What is the next (in goodness)? He replied, "To participate in Jihad (religious fighting) in Allah's Cause." The questioner again asked, "What is the next (in goodness)?" He replied, "To perform Hajj (Pilgrim age to Mecca) 'Mubrur, (which is accepted by Allah and is performed with the intention of seeking Allah's pleasure only and not to show off and without committing a sin and in accordance with the traditions of the… + +**#4** — bukhari 2641 · score: 15.0604 +>

Narrated `Umar bin Al-Khattab:

People were (sometimes) judged by the revealing of a Divine Inspiration during the lifetime of Allah's Apostle but now there is no longer any more (new revelation). Now we judge you by the deeds you practice publicly, so we will trust and favor the one who does good deeds in front of us, and we will not call him to account about what he is really doing in secret, for Allah will judge him for that; but we will not trust or believe the one who presents to us with an evil deed even if he claims that his intentions were good. + +**#5** — nasai 3437 · score: 14.9857 +> It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: "Actions are but by intentions, and each man will have but that which he intended. Whoever emigrated for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and whoever emigrated for the sake of some worldly gain or to marry some woman, his emigration was for that for which he emigrated." + +**#6** — nasai 3794 · score: 14.9857 +> It was narrated from 'Umar bin Al-Khattab that the Prophet said: "Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated." + +**#7** — riyadussalihin 11 · score: 14.6416 +> 'Abdullah bin 'Abbas (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said that Allah, the Glorious, said: "Verily, Allah (SWT) has ordered that the good and the bad deeds be written down. Then He explained it clearly how (to write): He who intends to do a good deed but he does not do it, then Allah records it for him as a full good deed, but if he carries out his intention, then Allah the Exalted, writes it down for him as from ten to seven hundred folds, and even more. But if he intends to do an evil act and has not done it, then Allah writes it down with Him as a full… + +**#8** — nasai 75 · score: 14.5584 +> It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: "The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended." + +**#9** — abudawud 2201 · score: 14.4857 +> ‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His Apostle, his emigration is to Allaah and His Apostle but his emigration is to a worldly end at which he aims or to a woman whom he marries , his emigration is to that for which he emigrated. + +**#10** — bukhari 1558 · score: 14.0708 +>

Narrated Anas bin Malik:

`Ali came to the Prophet (p.b.u.h) from Yemen (to Mecca). The Prophet asked `Ali, "With what intention have you assumed Ihram?" `Ali replied, "I have assumed Ihram with the same intention as that of the Prophet." The Prophet said, "If I had not the Hadi with me I would have finished the Ihram." Muhammad bin Bakr narrated extra from Ibn Juraij, "The Prophet said to `Ali, "With what intention have you assumed the Ihram, O `Ali?" He replied, "With the same (intention) as that of the Prophet." The Prophet said, "Have a Hadi and keep your Ihram as it is." + + +### openai-small-en — 150 total hits + +**#1** — forty 33 · score: 0.9241 +> Actions are through intentions. + +**#2** — nasai 75 · score: 0.7223 +> It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: "The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended." + +**#3** — nasai 3794 · score: 0.7109 +> It was narrated from 'Umar bin Al-Khattab that the Prophet said: "Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated." + +**#4** — ibnmajah 4229 · score: 0.7081 +> It was narrated from Abu Hurairah that the Messenger of Allah (saw) said: “People will be resurrected (and judged) according to their intentions.” + +**#5** — ahmad 168 · score: 0.7077 +> Umar said: I heard the Messenger of Allah ﷺ say: `Deeds are but by intentions and each man will have but that which he intended. If a man's migration was for the sake of Allah, then his migration was for that for which he migrated, but if his migration was to achieve some worldly aim or to take some woman in marriage, his migration was for that for which he migrated.` + +**#6** — abudawud 2201 · score: 0.6958 +> ‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His Apostle, his emigration is to Allaah and His Apostle but his emigration is to a worldly end at which he aims or to a woman whom he marries , his emigration is to that for which he emigrated. + +**#7** — nasai 3437 · score: 0.6949 +> It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: "Actions are but by intentions, and each man will have but that which he intended. Whoever emigrated for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and whoever emigrated for the sake of some worldly gain or to marry some woman, his emigration was for that for which he emigrated." + +**#8** — tirmidhi 1647 · score: 0.6894 +> Narrated 'Umar bin Al-Khattab:

That the Messenger of Allah (saws) said: "Deeds are but with intentions, and for the man is only what he intended. So one whose emigration was to Allah and His Messenger, then his emigration was to Allah and His Messenger. And one whose emigration was to the world, to attain some of it, or woman, to marry her, then his emigration was to what he emigrated.

[Abu 'Eisa said:] This Hadith is Hasan Sahih. Malik bin Anas, Sufyan Ath-Thawri and more than one of the A'immah narrated this Hadith from Yahya bin Sa'eed. And we do not know of it except as a… + +**#9** — muslim 130 · score: 0.6872 +>

It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him) observed: He who intended to do good, but did not do it, one good was recorded for him, and he who intended to do good and also did it, ten to seven hundred good deeds were recorded for him. And he who intended evil, but did not commit it, no entry was made against his name, but if he committed that, it was recorded. + +**#10** — ibnmajah 4230 · score: 0.6857 +> It was narrated from Jabir that the Messenger of Allah (saw) said: “People will be gathered (on the Day of Resurrection) according to their intentions.” + + +### nomic — 150 total hits + +**#1** — bukhari 6607 · score: 0.826 +>

Narrated Sahl bin Sa`d:

There was a man who fought most bravely of all the Muslims on behalf of the Muslims in a battle (Ghazwa) in the company of the Prophet. The Prophet looked at him and said. "If anyone would like to see a man from the people of the Fire, let him look at this (brave man)." On that, a man from the People (Muslims) followed him, and he was in that state i.e., fighting fiercely against the pagans till he was wounded, and then he hastened to end his life by placing his sword between his breasts (and pressed it with great force) till it came out between his shoulders.… + +**#2** — abudawud 1368 · score: 0.8197 +> Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he would do it continuously. + +**#3** — ahmad 184 · score: 0.8165 +> It was narrated that Yahya bin Ya'mar and Humaid bin ‘Abdur­-Rahman al­-Himyari said: We met 'Abdullah bin 'Umar and discussed the divine decree (al qadar) and what others said concerning it. He said: When you go back to them, say; Ibn ‘Umar has nothing to do with you and you have nothing to do with him - three times. Then he said: ‘Umar bin al Khattab رضي الله عنه ­­ told me that whilst they were sitting with the Prophet ﷺ ­, a man came to him walking, with a handsome face and hair, wearing white clothes. The people looked at one another (as if to say): We do not know this man and he does… + +**#4** — bukhari 1559 · score: 0.8164 +>

Narrated Abu Musa:

The Prophet sent me to some people in Yemen and when I returned, I found him at Al-Batha. He asked me, "With what intention have you assumed Ihram (i.e. for Hajj or for Umra or for both?") I replied, "I have assumed Ihram with an intention like that of the Prophet." He asked, "Have you a Hadi with you?" I replied in the negative. He ordered me to perform Tawaf round the Ka`ba and between Safa and Marwa and then to finish my Ihram. I did so and went to a woman from my tribe who combed my hair or washed my head. Then, when `Umar came (i.e. became Caliph) he said, "If… + +**#5** — mishkat 3444 · score: 0.8156 +> ‘Imran b. Husain told that he heard God’s Messenger say, “Vows are of two kinds, so if anyone vows to do an act of obedience, that is for God and must be fulfilled; but if anyone vows, to do an act of disobedience, that is for the devil and must not be fulfilled, but he must make atonement for it to the extent he would do in the case of an oath.” + +**#6** — bulugh 918 · score: 0.8098 +> Narrated [Ibn 'Abbas (RA)]: Allah's Messenger (SAW) said, "There should neither be harming (of others without cause), nor reciprocating harm (between two parties)." [Reported by Ahmad and Ibn Majah]. + +**#7** — ibnmajah 2120 · score: 0.8093 +> It was narrated from Abu Hurairah that the Messenger of Allah (SAW) said: "The oath is only according to the intention of the one who requests the oath to be taken."' + +**#8** — bukhari 7551 · score: 0.8077 +>

Narrated `Imran:

I said, "O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, "Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.' + +**#9** — adab 490 · score: 0.8071 +> Abu Dharr reported that the Prophet, may Allah bless him and grant him peace, reported that Allah, the Blessed and Exalted, said: "My slaves! I have forbidden injustice for Myself and I have made it forbidden among you, so do not wrong one another. "My slaves! You err by night and day and I forgive wrong actions and do not care. Ask me for forgiveness and I will forgive you. "My slaves! All of you are hungry unless I have fed you, so ask Me to feed you, and I will feed you. All of you are naked unless I have clothed you, so ask Me to clothe you and I will clothe you. "My slaves! If all of… + +**#10** — tirmidhi 2007 · score: 0.807 +> Hudhaifah narrated that the Messenger of Allah said: “Do not be a people without a will of your own, saying: 'If people treat us well, we will treat them well; and if they do wrong, we will do wrong,' but accustom yourselves to do good if people do good, and do not behave unjustly if they do evil.” + + +### mxbai — 150 total hits + +**#1** — forty 33 · score: 0.988 +> Actions are through intentions. + +**#2** — forty 5 · score: 0.864 +> The person guiding (someone) to do a good deed, is like the one performing the good deed. + +**#3** — forty 18 · score: 0.8358 +> The felicitous person takes lessons from (the actions of) others. + +**#4** — abudawud 1368 · score: 0.8291 +> Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he would do it continuously. + +**#5** — nasai 3794 · score: 0.8226 +> It was narrated from 'Umar bin Al-Khattab that the Prophet said: "Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated." + +**#6** — nasai 75 · score: 0.8221 +> It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: "The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended." + +**#7** — muslim 2648 b · score: 0.8211 +>

This hadith has been transmitted on the authority of Jabir b. Abdullah with the same wording (and includes these words):" Allah's Messenger (may peace be upon him) said: Every doer of deed is facilitated in his action." + +**#8** — bukhari 7551 · score: 0.8187 +>

Narrated `Imran:

I said, "O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, "Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.' + +**#9** — forty 1 · score: 0.8183 +>

It is narrated on the authority of Amirul Mu'minin, Abu Hafs 'Umar bin al-Khattab (ra) who said: I heard the Messenger of Allah (saws) say: "Actions are (judged) by motives (niyyah), so each man will have what he intended. Thus, he whose migration (hijrah) was to Allah and His Messenger, his migration is to Allah and His Messenger; but he whose migration was for some worldly thing he might gain, or for a wife he might marry, his migration is to that for which he migrated." [Bukhari & Muslim]

+ +**#10** — nasai 4484 · score: 0.8169 +> It was narrated from Ibn 'Umar that: a man told the Messenger of Allah that he was always being cheated. The Messenger of Allah said to him: "When you make a deal, say: There is no intention of cheating" So, whenever the man engages in a deal he says, 'There is no intention of cheating." "(Sahih ) + + +--- + +## Query: "ramadan" + +### lexical — 728 total hits + +**#1** — bukhari 2022 · score: 13.9314 +>

Narrated Ibn `Abbas:

Allah's Apostle said, "The Night of Qadr is in the last ten nights of the month (Ramadan), either on the first nine or in the last (remaining) seven nights (of Ramadan)." Ibn `Abbas added, "Search for it on the twenty-fourth (of Ramadan). + +**#2** — bukhari 2020 · score: 13.8321 +>

Narrated `Aisha:

Allah's Apostle used to practice I`tikaf in the last ten nights of Ramadan and used to say, "Look for the Night of Qadr in the last ten nights of the month of Ramadan." + +**#3** — bukhari 4502 · score: 13.8321 +>

Narrated `Aisha:

The people used to fast on the day of 'Ashura' before fasting in Ramadan was prescribed but when (the order of compulsory fasting in) Ramadan was revealed, it was up to one to fast on it (i.e. 'Ashura') or not. + +**#4** — bukhari 6991 · score: 13.8321 +>

Narrated Ibn `Umar:

Some people were shown the Night of Qadr as being in the last seven days (of the month of Ramadan). The Prophet said, "Seek it in the last seven days (of Ramadan). + +**#5** — bukhari 2008 · score: 13.7905 +>

Narrated Abu Huraira:

I heard Allah's Apostle saying regarding Ramadan, "Whoever prayed at night in it (the month of Ramadan) out of sincere Faith and hoping for a reward from Allah, then all his previous sins will be forgiven." + +**#6** — bukhari 2021 · score: 13.774 +>

Narrated Ibn `Abbas:

The Prophet said, "Look for the Night of Qadr in the last ten nights of Ramadan ,' on the night when nine or seven or five nights remain out of the last ten nights of Ramadan (i.e. 21, 23, 25, respectively). + +**#7** — bukhari 1900 · score: 13.7329 +>

Narrated Ibn `Umar:

I heard Allah's Apostle saying, "When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting; and if the sky is overcast (and you can't see it) then regard the month of Ramadan as of 30 days." + +**#8** — bukhari 1906 · score: 13.7084 +>

Narrated `Abdullah bin `Umar:

Allah's Apostle mentioned Ramadan and said, "Do not fast unless you see the crescent (of Ramadan), and do not give up fasting till you see the crescent (of Shawwal), but if the sky is overcast (if you cannot see it), then act on estimation (i.e. count Sha'ban as 30 days). + +**#9** — bukhari 3554 · score: 13.7084 +>

Narrated Ibn `Abbas:

The Prophet was the most generous of all the people, and he used to become more generous in Ramadan when Gabriel met him. Gabriel used to meet him every night during Ramadan to revise the Qur'an with him. Allah's Apostle then used to be more generous than the fast wind. + +**#10** — bukhari 4503 · score: 13.6841 +>

Narrated `Abdullah:

That Al-Ash'ath entered upon him while he was eating. Al-Ash'ath said, "Today is 'Ashura." I said (to him), "Fasting had been observed (on such a day) before (the order of compulsory fasting in) Ramadan was revealed. But when (the order of fasting in) Ramadan was revealed, fasting (on 'Ashura') was given up, so come and eat." + + +### openai-small-en — 150 total hits + +**#1** — mishkat 1962 · score: 0.7704 +> Abu Huraira reported God’s messenger as saying, “Ramadan, a blessed month, has come to you during which God has made it obligatory for you to fast. In it the gates of heaven are opened, the gates of al-Jahim are locked, and the rebellious devils are chained. In it God has a night which is better than a thousand months. He who is deprived of its good has indeed suffered deprivation." Ahmad and Nasa’i transmitted it. + +**#2** — muslim 1081 a · score: 0.7665 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days. + +**#3** — muslim 1079 c · score: 0.7643 +>

This hadith is reported by Abu Huraira (with a slight alteration of words) that the Messenger of Allah (may peace be upon him) said:" When (the month of) Ramadan begins." + +**#4** — riyadussalihin 1194 · score: 0.7628 +> 'Aishah (May Allah be pleased with her) reported: The Messenger of Allah (PBUH) used to strive more in worship during Ramadan than he strove in any other time of the year; and he would devote himself more (in the worship of Allah) in the last ten nights of Ramadan than he strove in earlier part of the month.

[Muslim].

+ +**#5** — muslim 1163 a · score: 0.7614 +>

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night. + +**#6** — muslim 1145 b · score: 0.7592 +>

Salama b. Akwa' reported: We, during the lifetime of the Messenger of Allah (may peace be upon him), in one month of Ramadan (observed fast according to our liking). He who wished to fast lasted and he who wished to break broke it and fed a needy person as an expiation 1544 till this verse was revealed:" He who witnesses among you the month (of Ramadan) he should observe fast during it" (ii. 184). + +**#7** — muslim 1080 b · score: 0.7579 +>

Ibn Umar reported that Allah's Messenger (may peace be upon him) made a mention of Ramadan and he with the gesture of his hand said: The month is thus and thus. (He then withdrew his thumb at the third time). He then said: Fast when you see it, and break your fast when you see it, and if the weather is cloudy calculate it (the months of Sha'ban and Shawwal) as thirty days. + +**#8** — muslim 1080 e · score: 0.7564 +>

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and if the sky is cloudy for you, then calculate. + +**#9** — abudawud 2429 · score: 0.7543 +> Narrated Abu Hurairah: The Messenger of Allah (saws) as saying: The most excellent fast after Ramadan is Allah's month al-Muharram, and the most excellent prayer after the prescribed prayer is the prayer during night. + +**#10** — ibnmajah 3925 · score: 0.7539 +> It was narrated from Talhah bin ‘Ubaidullah that two men from Bali came to the Messenger of Allah (saw). They had become Muslim together, but one of them used to strive harder than the other. The one who used to strive harder went out to fight and was martyred. The other one stayed for a year longer, then he passed away. Talhah said: “I saw in a dream that I was at the gate of Paradise and I saw them (those two men). Someone came out of Paradise and admitted the one who had died last, then he came out and admitted the one who had been martyred. Then he came back to me and said: ‘Go back, for… + + +### nomic — 150 total hits + +**#1** — muslim 1157 a · score: 0.8212 +>

Ibn Abbas (Allah be pleased with both of them) reported: The Messenger of Allah (may peace be upon him) did not fast throughout any month except during ramadan. And when he observed fast (he fasted so continuously) that one would say that he would not break (them) and when he Abandoned, he abandoned (so continuously) that one would say: By Allah, perhaps he would never fast. + +**#2** — bulugh 163 · score: 0.819 +> Narrated Abu Sa'id al-Khudri (RA): I heard Allah's Messenger (SAW) saying: "No Salat (prayer) is to be offered after the morning prayer until the sun rises, or after the afternoon prayer until the sun sets." [Agreed upon]. + +**#3** — abudawud 1611 · score: 0.8174 +> Ibn ‘Umar said : The Messenger of Allah(may peace be upon him) prescribed as zakat payable by slave and freeman, male and female, among the muslims on closing the fast of Ramadan one sa of dried dates or one sa’ of barley. (This tradition was read out byu ‘Abd Allah b. Maslamah to Malik) + +**#4** — ahmad 163 · score: 0.813 +> Abu ‘Ubaid said: I was present at Eid with ‘Umar, and he started with the prayer before the khutbah. He said: The Messenger of Allah ﷺ forbade fasting on these two days. The day of al-Fitr is the day when you break your fast, and on the day of al-Adha, eat the meat of your sacrifices. + +**#5** — malik 629 · score: 0.8107 +>

Yahya related to me from Malik from Nafi from Abdullah ibn Umar that the Messenger of Allah, may Allah bless him and grant him peace, made the zakat of breaking the fast at the end of Ramadan obligatory on every muslim, whether freeman or slave, male or female, and stipulated it as a sa' of dates or a sa' of barley.

+ +**#6** — abudawud 1357 · score: 0.8107 +> Narrated Ibn 'Abbas: I spent a night in the house of my maternal aunt Maimunah, daughter of al-Harith. The Prophet (saws) offered the night prayer. He then came and prayed four rak'ahs and slept. He then stood up and prayed. I stood at his left side. He made me go round and made me stand at his right side. He then prayed five rak'ahs and slept, and I heard his snoring. He then got up and prayed two rak'ahs. Afterwards he came out and offered the dawn prayer. + +**#7** — mishkat 2048 · score: 0.8106 +> Abu Sa'id al-Khudri said God’s messenger forbade fasting on the day of breaking the fast of Ramadan and on the day of sacrifice. (Bukhari and Muslim.) + +**#8** — muslim 979 a · score: 0.81 +>

Abu Sa'id al-Khudri reported Allah's Messenger (way peace be upon him) as saying: No sadaqa (zakat) is payable on less than five wasqs of (dates or grains), on less than five camel-heads and on less than five uqiyas (of silver). + +**#9** — malik · score: 0.8099 +>

Malik said, "There is no harm in someone who is in itikaf entering into a marriage contract as long as there is no physical relationship. A woman in itikaf may also be betrothed as long as there is no physical relationship. What is haram for someone in itikaf in relation to his womenfolk during the day is haram for him during the night."

Yahya said that Ziyad said that Malik said, "It is not halal for a man to have intercourse with his wife while he is in itikaf, nor for him to take pleasure in her by kissing her, or whatever. However, I have not heard anyone disapproving of a… + +**#10** — muslim 1167 a · score: 0.8096 +>

Abu Sa'id al-Khudri (Allah be pleased with him) reported that Allah's Messenger (may peace be upon him) spent in devotion (in i'tikaf) the middle ten nights of the month of Ramadan, and when twenty nights were over and it was the twenty-first night, he went back to his residence and those who were along with him also returned (to their respective residences). He spent one month in devotion. Then he addressed the people on the night he came back (to his residence) and commanded them as Allah desired (him to command) and then said: I used to devote myself (observe i'tikaf) during these ten… + + +### mxbai — 150 total hits + +**#1** — muslim 1080 e · score: 0.8869 +>

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and if the sky is cloudy for you, then calculate. + +**#2** — muslim 1080 f · score: 0.882 +>

'Abdullah b. 'Umar (Allah be pleased with both of them) reported Allah's Messenger (may peace be upon him) as saying: The month (of Ramadan) may consist of twenty nine days; so when you see the new moon observe fast and when you see (the new moon again at the commencement of the month of Shawwal) then break It, and if the sky is cloudy for you, then calculate it (and complete thirty days). + +**#3** — muslim 1163 a · score: 0.8815 +>

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night. + +**#4** — bukhari 1900 · score: 0.8801 +>

Narrated Ibn `Umar:

I heard Allah's Apostle saying, "When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting; and if the sky is overcast (and you can't see it) then regard the month of Ramadan as of 30 days." + +**#5** — mishkat 2047 · score: 0.8797 +> Abu Ayyub al-Ansari told that God’s messenger said, “If anyone fasts during Ramadan, then follows it with six days in Shawwal, it will be like a perpetual fast.” Muslim transmitted it. + +**#6** — mishkat 1817 · score: 0.8785 +> Ibn 'Abbas said, “At the end of Ramadan bring forth the sadaqa relating to your fast. God's messenger prescribed this sadaqa as a sa' of dried dates or barley, or half a sa' of wheat payable by every free¬man or slave, male or female, young or old." Abu Dawud and Nasa’i transmitted it. + +**#7** — riyadussalihin 1167 · score: 0.8784 +> Abu Hurairah (May Allah be pleased with him) reported: The Messenger of Allah (PBUH) said, "The best month for observing Saum (fasting) after Ramadan is Muharram, and the best Salat after the prescribed Salat is Salat at night."

[Muslim].

+ +**#8** — muslim 1116 a · score: 0.8783 +>

Abu Sa'id al-Khudri (Allah be pleased with him) reported: We went out on an expedition with Allah's Messenger (may peace be upon him) on the 16th of Ramadan. Some of us fasted and some of us broke the fast. But neither the observer of the fast found fault with one who broke it, nor the breaker of the fast found fault with one who observed it. + +**#9** — muslim 1081 a · score: 0.878 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days. + +**#10** — riyadussalihin 1225 · score: 0.876 +> Ibn 'Abbas (May Allah be pleased with them) reported: The Messenger of Allah (PBUH) said, "Do not observe Saum (fasting) before the advent of Ramadan. Observe Saum at sighting of the crescent of Ramadan and terminate it at sighting the crescent (of Shawwal). If the sky is overcast, complete (the month as) thirty (days)."

[At- Tirmidhi].

+ + +--- + +## Query: "jesus" + +### lexical — 468 total hits + +**#1** — bukhari 5731 · score: 14.4796 +>

Narrated Abu Huraira:

Allah's Apostle said, "Neither Messiah (Ad-Dajjal) nor plague will enter Medina." + +**#2** — bukhari 3444 · score: 14.4156 +>

Narrated Abu Huraira:

The Prophet said, "Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus said, 'I believe in Allah and suspect my eyes." + +**#3** — bukhari 3438 · score: 14.4027 +>

Narrated Ibn `Abbas:

The Prophet said, "I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of brown complexion, straight hair and tall stature as if he was from the people of Az-Zutt." + +**#4** — bukhari 3948 · score: 14.2731 +>

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. + +**#5** — muslim 2368 · score: 14.2555 +>

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person committing theft; thereupon Jesus said to him: You committed theft. He said: Nay. By Him besides Whom there is no god (I have not committed theft). Thereupon Jesus said: I affirm my faith in Allah It is my ownself that deceived me. + +**#6** — muslim 2365 b · score: 14.2286 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to one religion and no Prophet was raised between me and Jesus. + +**#7** — bukhari 1882 · score: 14.0567 +>

Narrated Abu Sa`id Al-Khudri:

Allah's Apostle told us a long narrative about Ad-Dajjal, and among the many things he mentioned, was his saying, "Ad-Dajjal will come and it will be forbidden for him to pass through the entrances of Medina. He will land in some of the salty barren areas (outside) Medina; on that day the best man or one of the best men will come up to him and say, 'I testify that you are the same Dajjal whose description was given to us by Allah's Apostle .' Ad-Dajjal will say to the people, 'If I kill this man and bring him back to life again, will you doubt my claim?'… + +**#8** — bukhari 7132 · score: 14.0567 +>

Narrated Abu Sa`id:

One day Allah's Apostle narrated to us a long narration about Ad-Dajjal and among the things he narrated to us, was: "Ad-Dajjal will come, and he will be forbidden to enter the mountain passes of Medina. He will encamp in one of the salt areas neighboring Medina and there will appear to him a man who will be the best or one of the best of the people. He will say 'I testify that you are Ad-Dajjal whose story Allah's Apostle has told us.' Ad-Dajjal will say (to his audience), 'Look, if I kill this man and then give him life, will you have any doubt about my claim?'… + +**#9** — bukhari 3449 · score: 14.0057 +>

Narrated Abu Huraira:

Allah's Apostle said "How will you be when the son of Mary (i.e. Jesus) descends amongst you and your imam is among you." + +**#10** — muslim 1677 b · score: 13.9986 +>

This hadith has been narrated on the authority of Jarir and 'Isa b. Yunus with a slight variation of words. + + +### openai-small-en — 150 total hits + +**#1** — bukhari 3444 · score: 0.6949 +>

Narrated Abu Huraira:

The Prophet said, "Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus said, 'I believe in Allah and suspect my eyes." + +**#2** — muslim 2937 a · score: 0.6918 +>

An-Nawwas b. Sam`an reported that Allah's Messenger (may peace be upon him) made a mention of the Dajjal one day in the morning. He (saws) sometimes described him to be insignificant and sometimes described (his turmoil) as very significant (and we felt) as if he were in the cluster of the date-palm trees. When we went to him (to the Holy Prophet) in the evening and he read (the signs of fear) in our faces, he (saws) said: What is the matter with you? We said: Allah's Messenger, you made a mention of the Dajjal in the morning (sometimes describing him) to be insignificant and sometimes… + +**#3** — mishkat 5716 · score: 0.6859 +> Abu Huraira reported God's messenger as saying, "On the night when I was taken up to heaven, I met Moses who may be described as a lanky man with somewhat curly hair who resembled one of the men of Shanu'a; I met Jesus who was of medium height and red as though he had come out of a dimas (i.e., a hot bath); and I saw Abraham to whom I am the one among his descendants who bears the closest resemblance. I was brought two vessels, one containing milk and the other wine, and was told to take whichever oi them I wished. I took the milk and drank it and was told I had been guided to the true… + +**#4** — bukhari 3448 · score: 0.6841 +>

Narrated Abu Huraira:

Allah's Apostle said, "By Him in Whose Hands my soul is, surely (Jesus,) the son of Mary will soon descend amongst you and will judge mankind justly (as a Just Ruler); he will break the Cross and kill the pigs and there will be no Jizya (i.e. taxation taken from non Muslims). Money will be in abundance so that nobody will accept it, and a single prostration to Allah (in prayer) will be better than the whole world and whatever is in it." Abu Huraira added "If you wish, you can recite (this verse of the Holy Book): -- 'And there is none Of the people of the… + +**#5** — muslim 2897 · score: 0.6785 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The Last Hour would not come until the Romans would land at al-A'maq or in Dabiq. An army consisting of the best (soldiers) of the people of the earth at that time will come from Medina (to counteract them). When they will arrange themselves in ranks, the Romans would say: Do not stand between us and those (Muslims) who took prisoners from amongst us. Let us fight with them; and the Muslims would say: Nay, by Allah, we would never get aside from you and from our brethren that you may fight them. They will then fight… + +**#6** — muslim 2365 c · score: 0.6774 +>

Abu Huraira reported many ahadith from Allah's Messenger (may peace be upon him) and one is that Allah's Messenger (may peace be upon him) said: I am most close to Jesus, son of Mary, among the whole of mankind in this worldly life and the next life. They said: Allah's Messenger how is it? Thereupon he said: Prophets are brothers in faith, having different mothers. Their religion is, however, one and there is no Apostle between us (between I and Jesus Christ). + +**#7** — muslim 2365 b · score: 0.6765 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to one religion and no Prophet was raised between me and Jesus. + +**#8** — abudawud 4324 · score: 0.6757 +>

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down from his head though it will not be wet. He will fight the people for the cause of Islam. He will break the cross, kill swine, and abolish jizyah. Allah will perish all religions except Islam. He will destroy the Antichrist and will live on the earth for forty years and then he will die. The… + +**#9** — mishkat 2288 · score: 0.6753 +> Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the Mighty, the Overpowering, the Great in Majesty, the Creator, the Maker, the Fashioner, the Forgiver, the Dominant, the Bestower, the Provider, the Decider, the Knower, the Withholder, the Plentiful Giver, the Abaser, the Exalter, the Honourer, the Humiliator, the Hearer, the Seer, the Judge, the… + +**#10** — mishkat 5608 · score: 0.6739 +> Hudhaifa and Abu Huraira reported God's messenger as saying, "God who is blessed and exalted will collect mankind and the believers will stand till paradise is brought near them. They will then go to Adam and say, `Ask, father, that paradise may be opened for us,' but he will reply, `Has anything but your father's sin put you out of paradise? I am not the one to do that; go to my son Abraham, God's friend.' Then Abraham will say, `I am not the one to do that, for I was only a friend long, long ago; but apply to Moses to whom God spoke.' They will then go to Moses, but he will say, `I am not… + + +### nomic — 150 total hits + +**#1** — mishkat 1214 · score: 0.7989 +> ‘A’isha told how God’s Messenger said when he awoke during the night, “There is no god but Thee. Glory be to Thee, O God, and praise be to Thee. I ask for Thy forgiveness of my sin, and I ask for Thy mercy. O God, increase me in knowledge, and do not let my heart swerve after Thou hast guided me. Grant me mercy from Thyself. Thou art indeed the munificent One.” Abu Dawud transmitted it. + +**#2** — bukhari 1209 · score: 0.7957 +>

Narrated Aisha:

I used to stretch my legs towards the Qibla of the Prophet while he was praying; whenever he prostrated he touched me, and I would withdraw my legs, and whenever he stood up, I would restretch my legs. + +**#3** — bukhari 3392 · score: 0.7952 +>

Narrated `Aisha:

The Prophet returned to Khadija while his heart was beating rapidly. She took him to Waraqa bin Naufal who was a Christian convert and used to read the Gospels in Arabic Waraqa asked (the Prophet), "What do you see?" When he told him, Waraqa said, "That is the same angel whom Allah sent to the Prophet) Moses. Should I live till you receive the Divine Message, I will support you strongly." + +**#4** — muslim 196 c · score: 0.792 +>

Anas b. Malik said: The Apostle of Allah (may peace be upon him) said: I would be the first intercessor in the Paradise and no apostle amongst the apostles has been testified (by such a large number of people) as I have been testified. And verily there woald be an apostle among the apostles who would be testified to by only one man from his people. + +**#5** — muslim 201 · score: 0.7917 +>

Abu Zubair heard Jabir b. Abdullah reporting it from the Apostle of Allah (may peace be upon him): For every apostle was a prayer with which he prayed (to his Lord) for his Ummah, but I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection. + +**#6** — bukhari 516 · score: 0.7907 +>

Narrated Abu Qatada Al-Ansari:

Allah's Apostle was praying and he was carrying Umama the daughters of Zainab, the daughter of Allah's Apostle and she was the daughter of 'As bin Rabi`a bin `Abd Shams. When he prostrated, he put her down and when he stood, he carried her (on his neck). + +**#7** — bulugh 226 · score: 0.7903 +> Narrated Abu Qatada (RA): Allah's Messenger (SAW) was (one time) offering prayer while he was carrying Umama, daughter of Zainab, when he prostrated he put her down and when he stood up he lifted her up. [Agreed upon]. + +**#8** — mishkat 936 · score: 0.7895 +> Ruwaih' reported God’s Messenger as saying, “If anyone invokes a blessing on Muhammad saying, ‘O God, cause him to occupy the place near Thee on the day of resurrection’, he will be guaranteed my intercession.” Ahmad transmitted it. + +**#9** — mishkat 5572 · score: 0.7893 +> Anas reported the Prophet as saying, "The believers will be restrained on the day of resurrection so that they will be concerned about that and express a desire to find an intercessor with their Lord that He may relieve them from the position in which they are placed. They will go to Adam and say, `You are Adam, the father of mankind, whom God created by His hand, whom He caused to dwell in His garden, to whom He made the angels do obeisance, and whom He taught the names of everything. Intercede for us with your Lord so that He may relieve us from this position in which we are placed.' But… + +**#10** — muslim 200 a · score: 0.789 +>

Anas b. Malik reported: Verily the Apostle of Allah (may peace be upon him) said: There is for every apostle a prayer with which he prays (to Allah) for his Ummah. I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection. + + +### mxbai — 150 total hits + +**#1** — abudawud 4324 · score: 0.826 +>

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down from his head though it will not be wet. He will fight the people for the cause of Islam. He will break the cross, kill swine, and abolish jizyah. Allah will perish all religions except Islam. He will destroy the Antichrist and will live on the earth for forty years and then he will die. The… + +**#2** — mishkat 2288 · score: 0.8246 +> Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the Mighty, the Overpowering, the Great in Majesty, the Creator, the Maker, the Fashioner, the Forgiver, the Dominant, the Bestower, the Provider, the Decider, the Knower, the Withholder, the Plentiful Giver, the Abaser, the Exalter, the Honourer, the Humiliator, the Hearer, the Seer, the Judge, the… + +**#3** — bukhari 3438 · score: 0.8234 +>

Narrated Ibn `Abbas:

The Prophet said, "I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of brown complexion, straight hair and tall stature as if he was from the people of Az-Zutt." + +**#4** — muslim 194 a · score: 0.8198 +>

Abu Huraira reported: Meat was one day brought to the Messenger of Allah (may peace be upon him) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of it and said: I shall be the leader of mankind on the Day of Resurrection. Do you know why? Allah would gather in one plain the earlier and the later (of the human race) on the Day of Resurrection. Then the voice of the proclaimer would be heard by all of them and the eyesight would penetrate through all of them and the sun would come near. People would then experience a degree of anguish, anxiety… + +**#5** — riyadussalihin 1866 · score: 0.8194 +> Abu Huraira reported: Meat was one day brought to the Messenger of Allah (ﷺ) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of it and said: I shall be the leader of mankind on the Day of Resurrection. Do you know why? Allah would gather in one plain the earlier and the later (of the human race) on the Day of Resurrection. Then the voice of the proclaimer would be heard by all of them and the eyesight would penetrate through all of them and the sun would come near. People would then experience a degree of anguish, anxiety and agony which they… + +**#6** — mishkat 1897 · score: 0.8186 +> ‘A’isha reported God’s messenger as saying, “Everyone of the children of Adam has been created with three hundred and sixty joints, so he who declares God’s greatness, praises God, declares that He is the only God, glorifies God, asks forgiveness of God, removes a stone, a thorn, or a bone from people’s path, enjoins what is reputable, or forbids what is objectionable to the number of those three hundred and sixty, will walk that day having removed himself from hell.” Muslim transmitted it. + +**#7** — abudawud 4641 · score: 0.8183 +> ‘Awf said: I heard al-Hajjaj addressing the people say: The similitude of ‘Uthman with Allah is like the similitude of Jesus son of Mary. He then recited the following verse and explained it: “Behold! Allah said: O Jesus! I will take thee and raise thee to Myself and clear thee (of the falsehood) of those who blaspheme.” He was making a sign with his hand to us and to the people of Syria. + +**#8** — muslim 2368 · score: 0.8175 +>

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person committing theft; thereupon Jesus said to him: You committed theft. He said: Nay. By Him besides Whom there is no god (I have not committed theft). Thereupon Jesus said: I affirm my faith in Allah It is my ownself that deceived me. + +**#9** — bukhari 7510 · score: 0.8169 +>

Narrated Ma`bad bin Hilal Al-`Anzi:

We, i.e., some people from Basra gathered and went to Anas bin Malik, and we went in company with Thabit Al-Bunnani so that he might ask him about the Hadith of Intercession on our behalf. Behold, Anas was in his palace, and our arrival coincided with his Duha prayer. We asked permission to enter and he admitted us while he was sitting on his bed. We said to Thabit, "Do not ask him about anything else first but the Hadith of Intercession." He said, "O Abu Hamza! There are your brethren from Basra coming to ask you about the Hadith of Intercession."… + +**#10** — bukhari 3441 · score: 0.816 +>

Narrated Salim from his father:

No, By Allah, the Prophet did not tell that Jesus was of red complexion but said, "While I was asleep circumambulating the Ka`ba (in my dream), suddenly I saw a man of brown complexion and lank hair walking between two men, and water was dropping from his head. I asked, 'Who is this?' The people said, 'He is the son of Mary.' Then I looked behind and I saw a red-complexioned, fat, curly-haired man, blind in the right eye which looked like a bulging out grape. I asked, 'Who is this?' They replied, 'He is Ad-Dajjal.' The one who resembled to him among the… + + +--- + +## Query: "sex" + +### lexical — 5 total hits + +**#1** — bukhari 7379 · score: 15.8248 +>

Narrated Ibn `Umar:

The Prophet said, "The keys of the unseen are five and none knows them but Allah: (1) None knows (the sex) what is in the womb, but Allah: (2) None knows what will happen tomorrow, but Allah; (3) None knows when it will rain, but Allah; (4) None knows where he will die, but Allah (knows that); (5) and none knows when the Hour will be established, but Allah." + +**#2** — ibnmajah 4045 · score: 12.553 +> It was narrated that Anas bin Malik said: “Shall I not tell you a Hadith that I heard from the Messenger of Allah (saw), which no one will tell you after me? I heard it from him (saying): ‘Among the portents of the Hour are that knowledge will be taken away and ignorance will prevail, illegal sex will become widespread and wine will be drunk, and men will disappear and women will be left, until there is one man in charge of fifty women.” + +**#3** — muslim 1453 c · score: 12.3963 +>

Ibn Abu Mulaika reported that al-Qasim b. Muhammad b. Abu Bakr had narrated to him that 'A'isha (Allah be pleased with her) reported that Sahla bint Suhail b. 'Amr came to Allah's Apostle (may peace be upon him) and said: Messenger of Allah, Salim (the freed slave of Abu Hudhaifa) is living with us in our house, and he has attained (puberty) as men attain it and has acquired knowledge (of the sex problems) as men acquire, whereupon he said: Suckle him so that he may become unlawful (in regard to marriage) for you He (Ibn Abu Mulaika) said: I refrained from (narrating this hadith) for a… + +**#4** — ibnmajah 2694 · score: 12.2945 +> Mu'adh bin Jabal, Abu Ubaidah bin Jararah, Ubadah bin Samit and Shaddad bin Aws narrated that the Messenger of Allah (SAW) said: “If a woman kills someone deliberately, she should not be killed until she delivers what is in her womb, if she is pregnant, and until the child's sponsorship is guaranteed. And if a woman commits illegal sex, she should not be stoned until she delivers what is in her womb and until her child's sponsorship is guaranteed.” + +**#5** — ibnmajah 2574 · score: 11.0722 +> It was narrated that Sa'eed bin Sa'd bin `Ubadah said: “There was a man living among our dwellings who had a physical defect, and to our astonishment he was seen with one of the slave women of the dwellings, committing illegal sex with her. Sa'd bin 'Ubadah referred his case to the Messenger of Allah (SAW), who said: 'Give him one hundred lashes.' They said: 'O Prophet (SAW) of Allah (SAW), he is too weak to bear that. If we give him one hundred lashes he will die.' He said: “Then take a branch with a hundred twigs and hit him once.”

Another chain reports a similar hadith. + + +### openai-small-en — 150 total hits + +**#1** — bukhari 1545 · score: 0.6616 +>

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they may leave the scent on the skin. And so in the early morning, the Prophet mounted his Mount while in Dhul-Hulaifa and set out till they reached Baida', where he and his companions recited Talbiya, and then they did the ceremony of Taqlid (which means to put the colored garlands around the necks of the… + +**#2** — malik 1824 · score: 0.6498 +>

Malik related to me from Zayd ibn Aslam from Ata ibn Yasar that the Messenger of Allah, may Allah bless him and grant him peace, said, "Whomever Allah protects from the evil of two things will enter the Garden." A man said, "Messenger of Allah, do not tell us!" The Messenger of Allah, may Allah bless him and grant him peace, was silent. Then the Messenger of Allah, may Allah bless him and grant him peace, repeated what he had said the first time. The man said to him, "Do not tell us, Messenger of Allah!" The Messenger of Allah, may Allah bless him and grant him peace, was silent. Then the… + +**#3** — bulugh 1012 · score: 0.6451 +> Sa'id (bin Mansur) also reported something similar from 'Ali (RA) and added: "And (if) she has something like a horn (Qarn) (coming out of her vagina), her husband then has the right to divorce her or keep her. And if he had intercourse with her, she gets her dowry for the intercourse her husband has had." + +**#4** — mishkat 3190 · score: 0.6449 +> Abu Sa'id al-Khudri reported God's Messenger as saying, “The most serious breach of trust in God’s sight on the day of resurrection ...” A version has, “Among those who will have the worst position in God’s sight on the day of resurrection is the man who has intercourse with his wife, and she with him, and then spreads her secret.”* * i.e. talks about the subject to others, or tells people about defects or beauties he has found in her. Muslim transmitted it. + +**#5** — mishkat 3341 · score: 0.6443 +> Ibn ‘Umar said that when a girl with whom intercourse might be had was given as a present, or sold, or set free, it was necessary to wait till she had had a menstrual period, but that this was unnecessary in the case of a virgin. Razin transmitted. + +**#6** — muslim 1435 a · score: 0.6418 +>

Jabir (Allah be pleased with him) declared that the Jews used to say: When a man has intercourse with his wife through the vagina but being on her back. the child will have squint, so the verse came down:" Your wives are your tilth; go then unto your tilth as you may desire" (ii. 223) + +**#7** — mishkat 86 · score: 0.6409 +> Abu Huraira reported God's messenger as saying, “God has decreed for man his portion of fornication which he will inevitably commit. The fornication of the eye consists in looking, and of the tongue in speech. The soul wishes and desires, and the private parts accord with that or reject it.” (Bukhari and Muslim.) In a version by Muslim he said, “Man’s share of fornication which he will inevitably commit is decreed for him. The fornication of the eyes consists in looking, of the ears in hearing, of the tongue in speech, of the hand in violence, and of the foot in walking. The heart lusts and… + +**#8** — malik 1135 · score: 0.6395 +>

Yahya related to me from Malik from Ibn Shihab, and he had heard from al-Qasim ibn Muhammad that they said, "When a free man marries a slave-girl and consummates the marriage, she makes him muhsan."

Malik said, "All (of the people of knowledge) I have seen said that a slave-girl makes a free man muhsan when he marries her and consummates the marriage."

Malik said, "A slave makes a free woman muhsana when he consummates a marriage with her and a free woman only makes a slave muhsan when he is freed and he is her husband and has had sexual relations with her after he has… + +**#9** — muslim 1438 a · score: 0.6379 +>

Abu Sirma said to Abu Sa'id al Khadri (Allah he pleased with him): 0 Abu Sa'id, did you hear Allah's Messenger (may peace be upon him) mentioning al-'azl? He said: Yes, and added: We went out with Allah's Messenger (may peace be upon him) on the expedition to the Bi'l-Mustaliq and took captive some excellent Arab women; and we desired them, for we were suffering from the absence of our wives, (but at the same time) we also desired ransom for them. So we decided to have sexual intercourse with them but by observing 'azl (Withdrawing the male sexual organ before emission of semen to avoid-… + +**#10** — bukhari 6818 · score: 0.6361 +>

Narrated Abu Huraira:

The Prophet said, "The boy is for (the owner of) the bed and the stone is for the person who commits illegal sexual intercourse.' + + +### nomic — 150 total hits + +**#1** — mishkat 3143 · score: 0.8485 +> ‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful." (Bukhari and Muslim.) + +**#2** — muslim 348 a · score: 0.8351 +>

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words. + +**#3** — bulugh 995 · score: 0.8327 +> Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, "The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)." [Agreed upon]. + +**#4** — bulugh 119 · score: 0.8325 +> Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through the roots of the hair. Then he would pour three handfuls on his head, then pour water over the rest of his body and subsequently wash his feet. [Agreed upon and this version is of Muslim] + +**#5** — bulugh 110 · score: 0.8277 +> Narrated Abu Huraira (rad): Allah’s Messenger (saw) said that, “If one of you sits between her legs (of a woman) and penetrates her, Ghusl (bath) is obligatory.” [Agreed upon]. + +**#6** — muslim 1418 · score: 0.8261 +>

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word" condition" ) it is" conditions". + +**#7** — abudawud 265 · score: 0.826 +> Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given) + +**#8** — muslim 346 b · score: 0.8254 +>

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution. + +**#9** — bulugh 117 · score: 0.8218 +> Narrated Abu Sa’id Al-Khudri (rad): Allah’s Messenger (saw) said, “If one of you has sexual intercourse with his wife and wishes to repeat he should perform ablution between them” [Reported by Muslim]. + +**#10** — muslim 321 c · score: 0.8205 +>

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. + + +### mxbai — 150 total hits + +**#1** — bulugh 117 · score: 0.8391 +> A-Hakim added: “Ablution makes one active for repeating (the sexual act).” + +**#2** — muslim 321 c · score: 0.8145 +>

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. + +**#3** — muslim 348 a · score: 0.8112 +>

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words. + +**#4** — bukhari 1545 · score: 0.8087 +>

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they may leave the scent on the skin. And so in the early morning, the Prophet mounted his Mount while in Dhul-Hulaifa and set out till they reached Baida', where he and his companions recited Talbiya, and then they did the ceremony of Taqlid (which means to put the colored garlands around the necks of the… + +**#5** — mishkat 3143 · score: 0.8082 +> ‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful." (Bukhari and Muslim.) + +**#6** — abudawud 265 · score: 0.8081 +> Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given) + +**#7** — mishkat 330 · score: 0.8072 +> Ibn ‘Umar used to say, “A man’s kiss to his wife and his touching her with his hand are connected with sexual intercourse, and anyone who kisses his wife or touches her with his hand must perform ablution.” Malik and Shafi‘i transmitted it. + +**#8** — muslim 1418 · score: 0.8048 +>

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word" condition" ) it is" conditions". + +**#9** — bukhari 293 · score: 0.804 +>

Narrated Ubai bin Ka`b:

I asked Allah's Apostle about a man who engages in sexual intercourse with his wife but does not discharge. He replied, "He should wash the parts which comes in contact with the private parts of the woman, perform ablution and then pray." (Abu `Abdullah said, "Taking a bath is safer and is the last order.") + +**#10** — muslim 346 b · score: 0.8031 +>

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution. + + +--- + +## Query: "marriage" + +### lexical — 1454 total hits + +**#1** — bukhari 6968 · score: 19.7524 +>

Narrated Abu Huraira:

The Prophet said, "A virgin should not be married till she is asked for her consent; and the matron should not be married till she is asked whether she agrees to marry or not." It was asked, "O Allah's Apostle! How will she (the virgin) express her consent?" He said, "By keeping silent." Some people said that if a virgin is not asked for her consent and she is not married, and then a man, by playing a trick presents two false witnesses that he has married her with her consent and the judge confirms his marriage as a true one, and the husband knows that the… + +**#2** — bukhari 6970 · score: 19.6176 +>

Narrated Abu Haraira:

Allah's Apostle said, "A lady slave should not be given in marriage until she is consulted, and a virgin should not be given in marriage until her permission is granted." The people said, "How will she express her permission?" The Prophet said, "By keeping silent (when asked her consent)." Some people said, "If a man, by playing a trick, presents two false witnesses before the judge to testify that he has married a matron with her consent and the judge confirms his marriage, and the husband is sure that he has never married her (before), then such a marriage will… + +**#3** — bukhari 5138 · score: 19.6031 +>

Narrated Khansa bint Khidam Al-Ansariya:

that her father gave her in marriage when she was a matron and she disliked that marriage. So she went to Allah's Apostle and he declared that marriage invalid. + +**#4** — bukhari 6961 · score: 19.5531 +>

Narrated Muhammad bin `Ali:

`Ali was told that Ibn `Abbas did not see any harm in the Mut'a marriage. `Ali said, "Allah's Apostle forbade the Mut'a marriage on the Day of the battle of Khaibar and he forbade the eating of donkey's meat." Some people said, "If one, by a tricky way, marries temporarily, his marriage is illegal." Others said, "The marriage is valid but its condition is illegal." + +**#5** — bukhari 6945 · score: 19.4861 +>

Narrated Khansa' bint Khidam Al-Ansariya:

That her father gave her in marriage when she was a matron and she disliked that marriage. So she came and (complained) to the Prophets and he declared that marriage invalid. (See Hadith No. 69, Vol. 7) + +**#6** — bukhari 1837 · score: 19.3925 +>

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held). + +**#7** — bukhari 5148 · score: 19.2407 +>

Narrated Anas:

`Abdur Rahman bin `Auf married a woman and gave her gold equal to the weight of a date stone (as Mahr). When the Prophet noticed the signs of cheerfulness of the marriage (on his face) and asked him about it, he said, "I have married a woman and gave (her) gold equal to a date stone in weight (as Mahr). + +**#8** — muslim 1406 j · score: 19.2056 +>

This hadith has been narrated on the authority of Rabi' b. Sabra that Allah's Messenger (may peace be upon him) forbade to contract temporary marriage with women at the time of Victory, and that his father had contracted the marriage for two red cloaks. + +**#9** — bukhari 5109 · score: 19.132 +>

Narrated Abu Huraira:

Allah's Apostle said, "A woman and her paternal aunt should not be married to the same man; and similarly, a woman and her maternal aunt should not be married to the same man." + +**#10** — bukhari 4258 · score: 19.132 +>

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of lhram but he consummated that marriage after finishing that state. Maimuna died at Saraf (i.e. a place near Mecca). + + +### openai-small-en — 150 total hits + +**#1** — ibnmajah 1847 · score: 0.7042 +> It was narrated from Ibn Abbas that: the Messenger of Allah said: “There is nothing like marriage, for two who love one another.” + +**#2** — abudawud 2272 · score: 0.7 +> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till It became apparent that she was pregnant from the man who had intercourse with her. When it was… + +**#3** — bukhari 5127 · score: 0.6987 +> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. "Send for so-and-so and have sexual intercourse with him." Her husband would then keep away from her and would never sleep with her till she… + +**#4** — malik · score: 0.6956 +>

Yahya said that he heard Malik say, "The way of doing things in our community about which there is no dispute, is that if a man gives sadaqa to his son - sadaqa which the son takes possession of or which is in the father's keeping and the father has had his sadaqa witnessed, he cannot take back any of it because he cannot reclaim any sadaqa."

Yahya said that he heard Malik say, "The generally agreed-on way of doing things in our community in the case of someone who gives his son a gift or grants him a gift which is not sadaqa is that he can take it back as long as the child does… + +**#5** — abudawud 2130 · score: 0.689 +>

Narrated AbuHurayrah:

When the Prophet (saws) congratulated a man on his marriage, he said: May Allah bless for you, and may He bless on you, and combine both of you in good (works).

+ +**#6** — tirmidhi 1101 · score: 0.6872 +> Abu Musa narrated that : the Messenger of Allah said: "There is no marriage except with a Wali." + +**#7** — ibnmajah 1846 · score: 0.687 +> It was narrated from Aishah that: the Messenger of Allah said: “Marriage is part of my sunnah, and whoever does not follow my sunnah has nothing to do with me. Get married, for I will boast of your great numbers before the nations. Whoever has the means, let him get married, and whoever does not, then he should fast for it will diminish his desire.” + +**#8** — mishkat 3093 · score: 0.6862 +> Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted. + +**#9** — muslim 1405 d · score: 0.6861 +>

Jabir b. 'Abdullah reported: We contracted temporary marriage giving a handful of (tales or flour as a dower during the lifetime of Allah's Messenger (may peace be upon him) and durnig the time of Abu Bakr until 'Umar forbade it in the case of 'Amr b. Huraith. + +**#10** — bukhari 5150 · score: 0.6859 +>

Narrated Sahl bin Sa`d:

The Prophet said to a man, "Marry, even with (a Mahr equal to) an iron ring." + + +### nomic — 150 total hits + +**#1** — bulugh 993 · score: 0.8659 +> Narrated Ibn 'Abbas (RA): The Prophet (SAW) married Maimunah (RA) when he was in the state of Ihram (during pilgrimage). [Agreed upon]. + +**#2** — mishkat 2682 · score: 0.8642 +> Ibn ‘Abbas said that the Prophet married Maimuna when he was on pilgrimage. Bukhari and Muslim. + +**#3** — bukhari 1837 · score: 0.8626 +>

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held). + +**#4** — bukhari 5114 · score: 0.8606 +>

Narrated Ibn `Abbas:

The Prophet got married while he was in the state of Ihram. + +**#5** — mishkat 3093 · score: 0.8564 +> Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted. + +**#6** — abudawud 2272 · score: 0.8557 +> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till It became apparent that she was pregnant from the man who had intercourse with her. When it was… + +**#7** — bukhari 5127 · score: 0.8551 +> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. "Send for so-and-so and have sexual intercourse with him." Her husband would then keep away from her and would never sleep with her till she… + +**#8** — bukhari 5261 · score: 0.8543 +>

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, "No, she cannot marry the first husband unless the second husband consummates his marriage with her, just as the first husband had done." + +**#9** — ibnmajah 1991 · score: 0.8543 +> It was narrated from 'Abdul-Malik bin Harith bin Hisham, from his father, that: the Prophet married Umm Salamah in Shawwal, and consummated the marriage with her in Shawwal. + +**#10** — abudawud 2047 · score: 0.8542 +> Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).” + + +### mxbai — 150 total hits + +**#1** — forty 21 · score: 0.8446 +> A man will be with whom he loves. + +**#2** — abudawud 2047 · score: 0.8333 +> Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).” + +**#3** — bulugh 967 · score: 0.8322 +> Narrated 'Abdullah bin Mas'ud (RA): Allah's Messenger (SAW) said to us, "O young men, those of you who can support a wife should marry, for it (marriage) controls the gaze and preserves one from immorality. And whoever cannot (marry) should fast, for it is a means of reducing the sexual desire." [Agreed upon]. + +**#4** — bukhari 2721 · score: 0.831 +>

Narrated `Uqba bin Amir:

Allah's Apostle said, "From among all the conditions which you have to fulfill, the conditions which make it legal for you to have sexual relations (i.e. the marriage contract) have the greatest right to be fulfilled." + +**#5** — bulugh 1127 · score: 0.829 +> Narrated 'Aishah (RA): Allah's Messenger (SAW) said, "One or two sucks do not make (marriage) unlawful." [Muslim reported it]. + +**#6** — bukhari 5090 · score: 0.8282 +>

Narrated Abu Huraira:

The Prophet said, "A woman is married for four things, i.e., her wealth, her family status, her beauty and her religion. So you should marry the religious woman (otherwise) you will be a losers. + +**#7** — bulugh 995 · score: 0.8278 +> Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, "The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)." [Agreed upon]. + +**#8** — bukhari 5119 · score: 0.8278 +> Salama bin Al-Akwa` said: Allah's Apostle's said, "If a man and a woman agree (to marry temporarily), their marriage should last for three nights, and if they like to continue, they can do so; and if they want to separate, they can do so." I do not know whether that was only for us or for all the people in general. Abu `Abdullah (Al-Bukhari) said: `Ali made it clear that the Prophet said, "The Mut'a marriage has been cancelled (made unlawful). + +**#9** — tirmidhi 1084 · score: 0.8271 +> Abu Hurairah narrated that: The Messenger of Allah said: "When someone whose religion and character you are pleased with proposes to (someone under the care) of one of you, then marry to him. If you do not do so, then there will be turmoil (Fitnah) in the land and abounding discord (Fasad)." + +**#10** — bulugh 1034 · score: 0.827 +> It is a portion of the long Hadith preceding in the beginning of the Book of Marriage. + + +--- + +## Query: "masturbation" + +### lexical — 0 total hits + + +### openai-small-en — 150 total hits + +**#1** — muslim 348 a · score: 0.6782 +>

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words. + +**#2** — ibnmajah 480 · score: 0.6765 +> It was narrated that Jabir bin 'Abdullah said: "The Messenger of Allah said: 'If anyone of you touches his penis, then he has to perform ablution.'" + +**#3** — abudawud 206 · score: 0.6758 +> ‘Ali said: My prostatic fluid flowed excessively. I used to take a bath until my back cracked (because of frequent washing). I mentioned it to the prophet (May peace be upon him), or the fact was mentioned to him (by someone else). The Messenger of Allah (May peace be upon him) said; Do not do so. When you find prostatic fluid, wash your penis and perform ablution as you do for your prayer, but when you have seminal emission, you should take a bath. + +**#4** — muslim 346 b · score: 0.6745 +>

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution. + +**#5** — bulugh 72 · score: 0.6735 +> Narrated Talq bin ‘Ali (rad): A man said: “I touched my penis” or he said, “Does a man who touch his penis during the prayer should perform Wudu (ablution)?” The Prophet (saw) replied, “No, it is only a part of your body”. [Reported by Al-Khamsa. Ibn Hibban graded it Sahih (sound). + +**#6** — abudawud 211 · score: 0.6727 +>

Narrated Abdullah ibn Sa'd al-Ansari:

I asked the Messenger of Allah (saws) as to what makes it necessary to take a bath and about the (prostatic) fluid that flows after taking a bath. He replied: that is called madhi (prostatic fluid). It flows from every male. You should wash your private parts and testicles because of it and perform ablution as you do for prayer.

+ +**#7** — ibnmajah 479 · score: 0.6695 +> It was narrated that Busrah bint Safwan said: "The Messenger of Allah said: 'If anyone of you touches his penis, let him perform ablution.'" + +**#8** — tirmidhi 82 · score: 0.669 +> Busrah bint Safwan narrated that : the Prophet said: "Whoever touches his penis, then he is not to pray until he performs Wudu" + +**#9** — muslim 303 c · score: 0.6684 +>

Ibn 'Abbas reported it from 'Ali: We sent al-Miqdad b. al-Aswad to the Messenger of Allah (may peace be upon him) to ask him what must be done about prostatic fluid which flows from (the private part of) a person. The Messenger of Allah (may peace be upon him) said: Perform ablution and wash your sexual organ. + +**#10** — bukhari 260 · score: 0.6677 +>

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his feet. + + +### nomic — 150 total hits + +**#1** — bulugh 119 · score: 0.8129 +> Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through the roots of the hair. Then he would pour three handfuls on his head, then pour water over the rest of his body and subsequently wash his feet. [Agreed upon and this version is of Muslim] + +**#2** — bukhari 464 · score: 0.8127 +>

Narrated Um Salama:

I complained to Allah's Apostle that I was sick. He told me to perform the Tawaf behind the people while riding. So I did so and Allah's Apostle was praying beside the Ka`ba and reciting the Sura starting with "Wat-tur wa kitabin mastur." + +**#3** — ahmad 847 · score: 0.8107 +> It was narrated that ‘Ali (رضي الله عنه) said: I was a man who emitted a great deal of madhi. I asked the Prophet (ﷺ) and he said: “If you ejaculate, then do ghusl for janabah, and if you do not ejaculate, then do not do ghusl.” + +**#4** — bulugh 111 · score: 0.8105 +> Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon] + +**#5** — bukhari 260 · score: 0.8079 +>

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his feet. + +**#6** — muslim 316 d · score: 0.807 +>

'Urwa has narrated it on the authority of 'A'isha that when Allah's Messenger (may peace be upon him) took a bath because of sexual intercourse, he first washed his hands before dipping one of them into the basin, and then performed ablu- tion as is done for prayer. + +**#7** — mishkat 340 · score: 0.8065 +> Abu Qatada reported God’s messenger as saying, "When one of you drinks he must not breathe into the vessel, and when he goes to relieve himself he must not touch his penis with his right hand, or wipe himself with his right hand.” (Bukhari and Muslim.) + +**#8** — bukhari 258 · score: 0.8061 +>

Narrated `Aisha:

Whenever the Prophet took the bath of Janaba (sexual relation or wet dream) he asked for the Hilab or some other scent. He used to take it in his hand, rub it first over the right side of his head and then over the left and then rub the middle of his head with both hands. + +**#9** — nasai 387 · score: 0.8043 +> It was narrated that 'Aishah said: "The Prophet (PBUH) would put his head out while he was performing I'tikaf and I would wash it, while I was menstruating." + +**#10** — muslim 346 b · score: 0.804 +>

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution. + + +### mxbai — 150 total hits + +**#1** — bulugh 117 · score: 0.8507 +> A-Hakim added: “Ablution makes one active for repeating (the sexual act).” + +**#2** — bulugh 64 · score: 0.82 +> Narrated ‘Umar (rad), in a Mawquf (untraceable) and Anas in a Marfu (traceable) Hadith: “If one of you performs ablution and puts on his two leather socks, let him perform Mash (wipe) over them and pray in them and he may not take them off he so wishes except after ejaculation or sexual impurity. [Reported by Ad-Daraqutni and Al-Hakim and graded Sahih (sound) by him]. + +**#3** — bulugh 110 · score: 0.8168 +> And Muslim added: “Even if he does not ejaculate”. + +**#4** — bulugh 73 · score: 0.8162 +> Narrated Busra bint Safwan (rad): Allah’s Messenger (saw) said, “He who touches his penis should perform ablution”. [Reported by Al-Khamsa, and At-Tirmidhi and Ibn Hibban graded it Sahih (sound). + +**#5** — bulugh 28 · score: 0.8143 +> In yet another version of Muslim: Verily! I (‘Aisha) used to scrape it (the semen) off his garment with my nails while it was dry. + +**#6** — mishkat 287 · score: 0.8135 +> ‘Uthman performed ablution, pouring water over his hands three times, then rinsing his mouth and snuffing up water, then washing his face three times, then washing his right arm up to the elbow three times, then washing his left arm up to the elbow three times, then wiping his head, then washing his right foot three times, then the left three times. He then said, “I have seen God’s messenger performing ablution as I have done it just now,” adding, “If anyone performs ablution as I have done, then prays two rak'as* without allowing his thoughts to be distracted, his past offences will… + +**#7** — bulugh 111 · score: 0.8128 +> Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon] + +**#8** — bulugh 109 · score: 0.812 +> Narrated Abu Sa’id Al-Khudri (rad): Allah’s Mesenger (saw) said: “The water (of the ghusl) is due to the water (of sexual emission)”. [Reported by Muslim] + +**#9** — tirmidhi 3415 · score: 0.8118 +> Maslamah bin `Amr said: “`Umair bin Hani used to perform a thousand prostrations every day and recite a hundred thousand Tasbīḥs every day.” + +**#10** — shamail 32 · score: 0.8108 +> A’isha said: “I used to comb the hair of Allah’s Messenger (Allah bless him and give him peace) while I was menstruating.” + + +--- + +## Query: "racism" + +### lexical — 0 total hits + + +### openai-small-en — 150 total hits + +**#1** — ahmad 614 · score: 0.6237 +> It was narrated that `Ali (رضي الله عنه)said: The Messenger of Allah (ﷺ) said: “No one hates the Arabs except a hypocrite.” + +**#2** — ibnmajah 69 · score: 0.6207 +> It was narrated that 'Abdullah said: "The Messenger of Allah (SAW) said: 'Verbally abusing a Muslim is immorality and fighting him is Kufr (disbelief).'" + +**#3** — malik 1831 · score: 0.6196 +>

Malik related to me that he heard that Abdullah ibn Masud used to say, "The slave continues to lie and a black spot grows in his heart until all his heart becomes black. Then he is written, in Allah's sight, among the liars."

+ +**#4** — abudawud 4877 · score: 0.6188 +>

Narrated AbuHurayrah:

The Prophet (saws) said: The gravest sin is going to lengths in talking unjustly against a Muslim's honour, and it is a major sin to abuse twice for abusing once.

+ +**#5** — malik 1600 · score: 0.6177 +>

Yahya said that Malik said, "The way of doing things in our community about which there is no dispute is that women do not swear in the swearing for the intentional act. If the murdered man only has female relatives, the women have no right to swear for blood and no pardon in murder."

Yahya said that Malik said about a man who is murdered, "If the paternal relatives of the murdered man or his mawali say, 'We swear and we demand our companion's blood,' that is their right."

Malik said, "If the women want to pardon him, they cannot do that. The paternal relatives and… + +**#6** — ahmad 467 · score: 0.6177 +> It was narrated that Rabah said: My masters married me to a Roman slave girl of theirs and she bore me a black boy. Then she fell in love with a Roman slave whose name was Yuhannas, and he spoke to her in their language. Then she got pregnant. She had borne me a child who was black like me, then she gave birth to a boy who looked like a lizard (i.e., was very fair). I said to her: What is this? She said: He is the child of Yuhannas. I asked Yuhannas and he admitted it, I went to ‘Uthman bin ‘Affan (رضي الله عنه) and told him about that. He sent for them and asked them, then he said: I will… + +**#7** — malik 1521 · score: 0.6169 +>

Malik related to me from Hisham ibn Urwa that his father said that there was only one hadd against a man who slandered a group of people.

Malik said, "If they are on separate occasions there is still only one hadd against him."

Malik related to me from Abu'r-Rijal Muhammad ibn Abd ar-Rahman ibn Haritha ibn an-Numan al- Ansari, then from the Banu'n-Najar from his mother Amra bint Abd ar- Rahman that two men cursed each other in the time of Umar ibn al- Khattab. One of them said to the other, " By Allah, my father is not an adulterer and my mother is not an adulteress."… + +**#8** — riyadussalihin 338 · score: 0.6141 +> 'Abdullah bin 'Amr bin Al-'as (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said, "It is one of the gravest sins to abuse one's parents." It was asked (by the people): "O Messenger of Allah, can a man abuse his own parents?" Messenger of Allah (PBUH) said, "He abuses the father of somebody who, in return, abuses the former's father; he then abuses the mother of somebody who, in return, abuses his mother".

[Al-Bukhari and Muslim].

Another narration is: Messenger of Allah (PBUH) said, "One of the major sins is to curse one's parents". It was… + +**#9** — mishkat 3311 · score: 0.614 +> He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there was a dusky one among them, and was told that there were some. He asked how he thought that had come about, and was told that it was a strain to which they had reverted. Then saying that this was perhaps a strain to which the child had reverted, he did not permit him to disown him. (Bukhari and… + +**#10** — nasai 4105 · score: 0.6118 +> It was narrated that 'Abdullah said: "Defaming a Muslim is evildoing and fighting him is Kufr." (Sahih Mawquf) + + +### nomic — 150 total hits + +**#1** — bukhari 6847 · score: 0.7889 +>

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, "My wife has delivered a black child." The Prophet said to him, "Have you camels?" He replied, "Yes." The Prophet said, "What color are they?" He replied, "They are red." The Prophet further asked, "Are any of them gray in color?" He replied, "Yes." The Prophet asked him, "Whence did that grayness come?" He said, "I thing it descended from the camel's ancestors." Then the Prophet said (to him), "Therefore, this child of yours has most probably inherited the color from his ancestors." + +**#2** — bukhari 5305 · score: 0.7871 +>

Narrated Abu Huraira:

A man came to the Prophet and said, "O Allah's Apostle! A black child has been born for me." The Prophet asked him, "Have you got camels?" The man said, "Yes." The Prophet asked him, "What color are they?" The man replied, "Red." The Prophet said, "Is there a grey one among them?' The man replied, "Yes." The Prophet said, "Whence comes that?" He said, "May be it is because of heredity." The Prophet said, "May be your latest son has this color because of heredity." + +**#3** — bukhari 7314 · score: 0.7846 +>

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, "My wife has delivered a black boy, and I suspect that he is not my child." Allah's Apostle said to him, "Have you got camels?" The bedouin said, "Yes." The Prophet said, "What color are they?" The bedouin said, "They are red." The Prophet said, "Are any of them Grey?" He said, "There are Grey ones among them." The Prophet said, "Whence do you think this color came to them?" The bedouin said, "O Allah's Apostle! It resulted from hereditary disposition." The Prophet said, "And this (i.e., your child) has inherited his… + +**#4** — nasai 1594 · score: 0.7836 +> It was narrated that 'Aishah said: "The black people came and played in front of the Prophet (SAW) on the day of 'Eid. He called me and I watched them from over his shoulder, and I continued to watch them until I was the one who moved away." + +**#5** — abudawud 2253 · score: 0.7781 +> ‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep silence in anger. I swear by Allaah, I shall ask the Apostle of Allaah(saws) about it”. On the next day he came to the Apostle of Allaah(saws) and said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps… + +**#6** — ibnmajah 2003 · score: 0.7776 +> It was narrated from Ibn 'Umar that: a man frorn the desert people came to the Prophet and said: "O Messenger of Allah, my wife has given birth on my bed to a black boy, and there are no black people among my family." He said: "Do you have camels?" He said: "Yes." He said: "What color are they?" He said: "Red." He said: are there any black ones among them?" He said, "No." He said: "Are there any grey ones among them?" He said- "Yes." He said "How is that?" He said: "Perhaps it is hereditary." He said: "Perhaps (the color of) this son of yours is also hereditary." + +**#7** — abudawud 2260 · score: 0.7772 +> Abu Hurairah said A man from Banu Fazarah came to the Prophet (saws) and said “My wife has given birth to a black son”. He said “Have you any camels?” He said “They are red”. He asked “Is there a dusky one among them?” He replied “Some of them are dusky”. He asked “How do you think they have come about?” He replied “This may be a strain to which they reverted”. He said “And this is perhaps a strain to which the child has reverted.” + +**#8** — bulugh 1102 · score: 0.7765 +> Narrated Abu Hurairah (RA): A man said, "O Allah's Messenger, my wife has given birth to a black son." He asked, "Have you any camels?" He replied, "Yes." He asked, "What is their color?" He replied, "They are red." He asked, "Is there a dusky (dark) one among them?" He replied, "Yes." He asked, "How has that come about?" He replied, "It is perhaps a strain to which it has reverted (i.e. heredity)." He said, "It is perhaps a strain to which this son of yours has reverted." [Agreed upon]. + +**#9** — nasai 3479 · score: 0.7759 +> It was narrated that Abu Hurairah said: "A man from Banu Fazarah came to the Prophet and said: 'My wife has given birth to a black boy' -and he wanted to disown him. He said: 'Do you have camels?' He said: 'Yes.' He said: 'What color are they?' He said: 'Red.' He said: 'Are there any gray ones among them?' He said: 'There are some gray camels among them.' He said: 'Why is that do you think?' He said: 'Perhaps it is hereditary.' He said: 'Perhaps this is hereditary.' And he did not permit him to disown him." + +**#10** — mishkat 3311 · score: 0.7753 +> He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there was a dusky one among them, and was told that there were some. He asked how he thought that had come about, and was told that it was a strain to which they had reverted. Then saying that this was perhaps a strain to which the child had reverted, he did not permit him to disown him. (Bukhari and… + + +### mxbai — 150 total hits + +**#1** — mishkat 4327 · score: 0.7839 +> ‘Abdallah b. ‘Amr b. al-‘As told that when God's messenger saw him wearing two garments dyed with saffron he said, “These are the garments worn by infidels ; do not wear them.” A version says that when he suggested washing them he replied, “No, burn them.” Muslim transmitted it. + +**#2** — abudawud 2253 · score: 0.7826 +> ‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep silence in anger. I swear by Allaah, I shall ask the Apostle of Allaah(saws) about it”. On the next day he came to the Apostle of Allaah(saws) and said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps… + +**#3** — bulugh 1518 · score: 0.7821 +> 'A’ishah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “The most despicable amongst people in the sight of Allah is the ruthless argumentative (person).” Related by Muslim. + +**#4** — bukhari 30 · score: 0.7805 +>

Narrated Al-Ma'rur:

At Ar-Rabadha I met Abu Dhar who was wearing a cloak, and his slave, too, was wearing a similar one. I asked about the reason for it. He replied, "I abused a person by calling his mother with bad names." The Prophet said to me, 'O Abu Dhar! Did you abuse him by calling his mother with bad names You still have some characteristics of ignorance. Your slaves are your brothers and Allah has put them under your command. So whoever has a brother under his command should feed him of what he eats and dress him of what he wears. Do not ask them (slaves) to do things beyond… + +**#5** — mishkat 3688 · score: 0.7792 +> ‘A’idh b. ‘Amr told that he heard God’s Messenger say, “The worst shepherds are those who are ungentle.” Muslim transmitted it. + +**#6** — bukhari 5940 · score: 0.7787 +>

Narrated Ibn `Umar:

The Prophet has cursed the lady who lengthens her hair artificially and the one who gets her hair lengthened, and also the lady who tattoos (herself or others) and the one who gets herself tattooed. + +**#7** — mishkat 1874 · score: 0.778 +> Abu Huraira reported God’s messenger as saying, “The worst things in a man are anxious niggardliness and unrestrained cowardice.” Abd Dawud transmitted it. + +**#8** — bulugh 1201 · score: 0.7779 +> Sahl bin Abi Khaithamah (RAA) narrated on the authority of some honored men from his people that 'Abdullah bin Sahl and Muhaiysah bin Mas'ud, went out to Khaibar because of a hardship they were undergoing. Muhaiysah came and told them that 'Abdullah bin Sahl had been killed and thrown into a well. He came to the Jews and said to them, ‘I swear by Allah that you have killed him.’ They replied, ‘We swear by Allah that we have not killed him.' Then Muhaiysah came along with his brother Huwaiysah and 'Abdur Rahman bin Sahl to the Prophet (P.B.U.H.) and Muhaiysah started to talk. The Messenger of… + +**#9** — ibnmajah 1859 · score: 0.7776 +> It was narrated from Abdullah bin Amr that: the Prophet said: “Do not marry women for their beauty for it may lead to their doom. Do not marry them for their wealth, for it may lead them to fall into sin. Rather, marry them for their religion. A black slave woman with piercings who is religious is better.” + +**#10** — bulugh 1500 · score: 0.7772 +> Abu Hurairah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “When two men insult one another, what they say is mainly the fault of the one who began it, so long as the one who is oppressed does not transgress.” Related by Muslim. + + +--- + +## Query: "polygamy" + +### lexical — 0 total hits + + +### openai-small-en — 150 total hits + +**#1** — bukhari 5127 · score: 0.7243 +> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. "Send for so-and-so and have sexual intercourse with him." Her husband would then keep away from her and would never sleep with her till she… + +**#2** — muslim 1451 a · score: 0.7217 +>

Umm al-Fadl reported: A bedouin came to Allah's Apostle (may peace be upon him) when he was in my house and said: Allah's Apostle, I have had a wife and I married another besides her, and my first wife claimed that she had suckled once or twice my newly married wife, thereupon Allah's Apostle (may peace be upon him) said: One suckling or two do not make the (marriage) unlawful. + +**#3** — bukhari 5068 · score: 0.7182 +>

Narrated Anas:

The Prophet used to go round (have sexual relations with) all his wives in one night, and he had nine wives. + +**#4** — malik 1238 · score: 0.7156 +>

Yahya related to me from Malik that Ibn Shihab said, "I have heard that the Messenger of Allah, may Allah bless him and grant him peace, said to a man from Thaqif who had ten wives when he became muslim, 'Take four and separate from the rest.' "

+ +**#5** — abudawud 2243 · score: 0.7142 +>

Al-Dahhak b. Firuz reported on the authority of his father: I said: Messenger of Allah, I have embraced Islam and two sisters are my wives. He said: Divorce any one of them you wish.

+ +**#6** — muslim 1408 b · score: 0.7136 +>

Abu Huraira (Allah be pleased with him) reported: that Allah's Messenger (may peace be upon him) forbade combining of four women in marriage: a woman with her father's sister, and a woman with her mother's sister. + +**#7** — ibnmajah 1953 · score: 0.7113 +> It was narrated that Ibn 'Umar said: “Ghailan bin Salamah became Muslim and he had ten wives. The Prophet said to him: 'Choose four of them.' ” + +**#8** — mishkat 3091 · score: 0.7109 +> Ma'qil b. Yasar reported God’s Messenger as saying, “Marry women who are loving and very prolific, for I shall outnumber the peoples by you." Abu Dawud and Nasa’i transmitted it. + +**#9** — bukhari 5215 · score: 0.7104 +>

Narrated Anas bin Malik:

The Prophet used to pass by (have sexual relation with) all his wives in one night, and at that time he had nine wives. + +**#10** — malik 1149 · score: 0.7087 +>

Yahya related to me from Malik from Rabia ibn Abi Abd ar-Rahman that al-Qasim ibn Muhammad and Urwa ibn az-Zubayr said that a man who had four wives and then divorced one of them irrevocably, could marry straightaway if he wished, and he did not have to wait for the completion of her idda.

+ + +### nomic — 150 total hits + +**#1** — mishkat 3170 · score: 0.8259 +> Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the polytheists. Then God most high sent down regarding that, “And women already married, except those whom your right hands possess” (Al-Qur’an 4:24). That means that they were lawful for them when their ‘idda* period came to an end. * The period which a widow or divorced woman must observe before… + +**#2** — muslim 1456 a · score: 0.8245 +>

Abu Sa'id al-Khudri (Allah her pleased with him) reported that at the Battle of Hanain Allah's Messenger (may peace be upon him) sent an army to Autas and encountered the enemy and fought with them. Having overcome them and taken them captives, the Companions of Allah's Messenger (may peace te upon him) seemed to refrain from having intercourse with captive women because of their husbands being polytheists. Then Allah, Most High, sent down regarding that:" And women already married, except those whom your right hands possess (iv. 24)" (i. e. they were lawful for them when their 'Idda… + +**#3** — mishkat 2554 · score: 0.8172 +> Ibn ‘Abbas said that the polytheists used to say, “Labbaik, Thou hast no partner," whereupon God’s messenger would say, “Woe to you ! Enough, enough; [do not add] ‘except a partner who is Thine whom Thou possessest', when He possesses none.” They used to say this when they were going round the House. Muslim transmitted it. + +**#4** — bukhari 5127 · score: 0.8167 +> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. "Send for so-and-so and have sexual intercourse with him." Her husband would then keep away from her and would never sleep with her till she… + +**#5** — abudawud 2272 · score: 0.8164 +> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till It became apparent that she was pregnant from the man who had intercourse with her. When it was… + +**#6** — muslim 122 · score: 0.8163 +>

It is narrated on the authority of Ibn 'Abbas that some persons amongst the polytheist had committed a large number of murders and had excessively indulged in fornication. Then they came to Muhammad (may peace be upon him) and said: Whatever you assert and whatever you call to is indeed good. But if you inform us that there is atonement of our past deeds (then we would embrace Islam). Then it was revealed: And those who call not unto another god along with Allah and slay not any soul which Allah has forbidden except in the cause of justice, nor commit fornication; and he who does this… + +**#7** — nasai 3415 · score: 0.8123 +> It was narrated that Ibn 'Umar said: "The Prophet was asked about a man who divorced his wife three times, then another man married her and he closed the door and drew the curtain, then divorced her before consummating the marriage with her. He said: "She is not permissible for the first one (to remarry her) until the second one has had intercourse with her."" + +**#8** — mishkat 3419 · score: 0.8112 +> Ibn Umar told that he heard God’s Messenger say, “He who swears by anyone but God is a polytheist.” Tirmidhi transmitted it. + +**#9** — bulugh 1287 · score: 0.811 +> Samurah (RAA) narrated that The Messenger of Allah (P.B.U.H.) said, “Kill the mature men of the polytheists but spare their children.” Related by Abu Dawud and At-Tirmidhi graded it as Sahih. + +**#10** — bukhari 5105 · score: 0.81 +> Ibn 'Abbas further said, "Seven types of marriages are unlawful because of blood relations, and seven because of marriage relations." Then Ibn 'Abbas recited the Verse: "Forbidden for you (for marriages) are your mothers..." (4:23). 'Abdullah bin Ja'far married the daughter and wife of 'Ali at the same time (they were step-daughter and mother). Ibn Sirin said, "There is no harm in that." But Al-Hasan Al-Basri disapproved of it at first, but then said that there was no harm in it. Al-Hasan bin Al-Hasan bin 'Ali married two of his cousins in one night. Ja'far bin Zaid disapproved of that… + + +### mxbai — 150 total hits + +**#1** — abudawud 2088 · score: 0.8486 +>

Narrated Samurah:

The Prophet (saws) said: Any woman who is married by two guardians (to two different men) belongs to the first woman who is married by two guardians (to two different men) belongs to the first of them and anything sold by a man to two persons belongs to the first of them.

+ +**#2** — abudawud 2133 · score: 0.8341 +>

Narrated AbuHurayrah:

The Prophet (saws) said: When a man has two wives and he is inclined to one of them, he will come on the Day of resurrection with a side hanging down.

+ +**#3** — abudawud 2067 · score: 0.8335 +>

Narrated Abdullah ibn Abbas:

The Prophet (saws) abominated the combination of paternal and maternal aunts and the combination of two maternal aunts and two paternal aunts in marriage.

+ +**#4** — bulugh 1001 · score: 0.8334 +> Narrated 'Aishah (RA): A man divorced his wife by three pronouncements and another man married her and divorced her before cohabiting with her. Then, her first husband intended to remarry her and asked Allah's Messenger (SAW) about that. He said, "No, until the other one (second husband) has enjoyed sexual intercourse with her as the first (husband) had." [Agreed upon; the wording is Muslim's]. + +**#5** — bukhari 5127 · score: 0.8334 +> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. "Send for so-and-so and have sexual intercourse with him." Her husband would then keep away from her and would never sleep with her till she… + +**#6** — mishkat 3170 · score: 0.8306 +> Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the polytheists. Then God most high sent down regarding that, “And women already married, except those whom your right hands possess” (Al-Qur’an 4:24). That means that they were lawful for them when their ‘idda* period came to an end. * The period which a widow or divorced woman must observe before… + +**#7** — bukhari 4528 · score: 0.8297 +>

Narrated Jabir:

Jews used to say: "If one has sexual intercourse with his wife from the back, then she will deliver a squint-eyed child." So this Verse was revealed:-- "Your wives are a tilth unto you; so go to your tilth when or how you will." (2.223) + +**#8** — bukhari 5261 · score: 0.8295 +>

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, "No, she cannot marry the first husband unless the second husband consummates his marriage with her, just as the first husband had done." + +**#9** — abudawud 2272 · score: 0.8286 +> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till It became apparent that she was pregnant from the man who had intercourse with her. When it was… + +**#10** — bukhari 5104 · score: 0.8278 +>

Narrated `Uqba bin Al-Harith:

I married a woman and then a black lady came to us and said, "I have suckled you both (you and your wife)." So I came to the Prophet and said, "I married so-and-so and then a black lady came to us and said to me, 'I have suckled both of you.' But I think she is a liar." The Prophet turned his face away from me and I moved to face his face, and said, "She is a liar." The Prophet said, "How (can you keep her as your wife) when that lady has said that she has suckled both of you? So abandon (i.e., divorce) her (your wife). + + +--- + +## Query: "pork" + +### lexical — 0 total hits + + +### openai-small-en — 150 total hits + +**#1** — abudawud 3489 · score: 0.6549 +>

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

+ +**#2** — bukhari 5506 · score: 0.6408 +>

Narrated Rafi` bin Khadij:

The Prophet said, "Eat what is slaughtered (with any instrument) that makes blood flow out, except what is slaughtered with a tooth or a nail.' + +**#3** — bukhari 1824 · score: 0.6392 +>

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, "Proceed along the seashore till we meet all together." So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased the onagers and attacked and wounded a sheonager. They got down and ate some of its meat and said to… + +**#4** — shamail 170 · score: 0.6351 +> 'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” + +**#5** — muslim 1938 c · score: 0.6349 +>

Bara was heard saying: We were forbidden (to eat) the flesh of the domestic asses. + +**#6** — abudawud 2796 · score: 0.6344 +>

Narrated AbuSa'id al-Khudri:

The Messenger of Allah (saws) used to sacrifice a choice, horned ram with black round the eyes, the mouth and the feet.

+ +**#7** — malik 621 · score: 0.6315 +>

Yahya related to me from Malik from Zayd ibn Aslam from his father that he said to Umar ibn al-Khattab, "There is a blind she- camel behind the house,'' soUmar said, "Hand it over to a household so that they can make (some) use of it." He said, "But she is blind." Umar replied, "Then put it in a line with other camels." He said, "How will it be able to eat from the ground?" Umar asked, "Is it from the livestock of the jizya or the zakat?" and Aslam replied, "From the livestock of the jizya." Umar said, "By AIIah, you wish to eat it." Aslam said, "It has the brand of the jizya on it." So… + +**#8** — malik · score: 0.6298 +>

Yahya related to me from Malik that the best of what he had heard about a man who is forced by necessity to eat carrion is that he ate it until he was full and then he took provision from it. If he found something which would enable him to dispense with it, he threw it away.

Malik when asked whether or not a man who had been forced by necessity to eat carrion, should eat it when he also found the fruit, crops or sheep of a people in that place, answered, "If he thinks that the owners of the fruit, crops, or sheep will believe his necessity so that he will not be deemed a thief… + +**#9** — ibnmajah 3146 · score: 0.6296 +> It was narrated that Abu Sa’eed Al-Khudri said: “We bought a ram for sacrifice, then a wolf tore some flesh from its rump and ears. We asked the Prophet (saw) and he told us to offer it as a sacrifice.” + +**#10** — bukhari 5527 · score: 0.6295 +>

Narrated Abu Tha'alba:

Allah's Apostle prohibited the eating of donkey's meat.

Narrated Az-Zuhri:

The Prophet prohibited the eating of beasts having fangs.

+ + +### nomic — 150 total hits + +**#1** — bukhari 1495 · score: 0.795 +>

Narrated Anas:

Some meat was presented to the Prophet (p.b.u.h) and it had been given to Barira (the freed slave-girl of Aisha) in charity. He said, "This meat is a thing of charity for Barira but it is a gift for us." + +**#2** — tirmidhi 1509 · score: 0.7935 +> Narrated Ibn 'Umar: That the Prophet (saws) said: "None of you should eat from the meat of his sacrificial animal beyond three days." + +**#3** — bukhari 1824 · score: 0.7908 +>

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, "Proceed along the seashore till we meet all together." So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased the onagers and attacked and wounded a sheonager. They got down and ate some of its meat and said to… + +**#4** — shamail 169 · score: 0.7896 +> 'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.” + +**#5** — abudawud 2814 · score: 0.7892 +> Narrated Thawban: The Messenger of Allah (saws) sacrificed during a journey and then said: Thawban, mend the meat of this goat. I then kept on supplying its meat until we reached Medina. + +**#6** — bulugh 15 · score: 0.7864 +> Narrated Abu Waqid Al-Laithi: Narrated Abu Waqid Al-Laithi (rad): Allah’s Messenger (saw) said, “Whatever (portion) is cut off from an animal when it is alive is dead (meat). [Reported by Abu Da’ud and At-Tirmidhi who graded it Hasan (fair) and this version is of Tirmidhi]. + +**#7** — adab 1276 · score: 0.7855 +> Ya'la ibn Murra reported that he heard Abu Hurayra speaking about someone who plays backgammon and bets on it, saying that he is like someone who eats pig meat and that the person who plays it without betting on it is like someone who washes his hands in pig's blood. The person who sits looking at it is like someone who looks at pig's meat. + +**#8** — shamail 166 · score: 0.7843 +> Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.” + +**#9** — ibnmajah 3216 · score: 0.783 +> It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).” + +**#10** — muslim 1975 a · score: 0.7829 +>

Thauban reported that Allah's Messenger (way peace be upon him) slaughtered his sacrificial animal and then said: Thauban, make his meat usable (for journey), and I continuously served him that until he arrived in Medina. + + +### mxbai — 150 total hits + +**#1** — shamail 170 · score: 0.7987 +> 'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” + +**#2** — ibnmajah 3216 · score: 0.7976 +> It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).” + +**#3** — shamail 169 · score: 0.7928 +> 'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.” + +**#4** — ibnmajah 3314 · score: 0.7917 +> It was narrated from ‘Abdullah bin ‘Umar that the Messenger of Allah (saw) said: “Two kinds of dead meat and two kinds of blood have been permitted to us. The two kinds of dead meat are fish and locusts, and the two kinds of blood are the liver and spleen.” + +**#5** — mishkat 4215 · score: 0.7913 +> ‘A’isha reported God’s messenger as saying, “Do not cut meat with a knife, for it is a foreign practice, but bite it, for that is more beneficial and wholesome.” Abu Dawud and Baihaqi, in Shu'ab al-iman, transmitted it, both saying it is not strong. + +**#6** — shamail 166 · score: 0.7905 +> Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.” + +**#7** — abudawud 3489 · score: 0.7894 +>

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

+ +**#8** — nasai 4425 · score: 0.7879 +> 'Ali bin Abi Talib Said: "The Messenger of Allah has forbidden you from eating the meat of your sacrificaial animals for more than three day." (Sahih ) + +**#9** — bukhari 1492 · score: 0.7863 +>

Narrated Ibn `Abbas:

The Prophet saw a dead sheep which had been given in charity to a freed slave-girl of Maimuna, the wife of the Prophet . The Prophet said, "Why don't you get the benefit of its hide?" They said, "It is dead." He replied, "Only to eat (its meat) is illegal." + +**#10** — bukhari 1824 · score: 0.7858 +>

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, "Proceed along the seashore till we meet all together." So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased the onagers and attacked and wounded a sheonager. They got down and ate some of its meat and said to… + + +--- + +## Query: "dance" + +### lexical — 1 total hits + +**#1** — mishkat 6049 · score: 11.8589 +> `A'isha said: When God's messenger was seated, we heard confused sounds and boys' voices, so he got up and saw an Abyssinian woman dancing with the boys around her. He said, "Come and look, `A'isha," so I went and placed my chin on God's messenger's shoulder and began to look at her over his shoulder. He then said to me, "Have you not had enough? Have you not had enough?" and I began to say, "No," in order that I might look where I was with him. But `Umar came along, and when the people ran away from her[*] God's messenger said, "I am looking at the devils of jinn and men who have fled from… + + +### openai-small-en — 150 total hits + +**#1** — malik 75 · score: 0.6113 +>

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, "I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the mosque and prayed."

Yahya said that Malik was asked whether a man who did wudu for prayerand then put on his leather socks, and then urinated and took them off and put them back on again, should begin wudu afresh.

Malik replied, "He should take off his socks and wash his feet. Only… + +**#2** — abudawud 4854 · score: 0.5992 +>

Narrated AbudDarda':

The Messenger of Allah (saws) would sit and we would also sit around him. If he got up intending to return, he would take off his sandals or something he was wearing, and his Companions recognising his purpose (that he would return) would stay where they were.

+ +**#3** — abudawud 4923 · score: 0.5977 +>

Narrated Anas ibn Malik:

When the Messenger of Allah (saws) came to Medina, the Abyssinians played for his coming out of joy; they played with spears.

+ +**#4** — bukhari 1591 · score: 0.597 +>

Narrated Abu Huraira:

The Prophet;; said, "Dhus-Suwaiqa-tain (literally: One with two lean legs) from Ethiopia will demolish the Ka`ba." + +**#5** — abudawud 652 · score: 0.5956 +>

Narrated Aws ibn Thabit al-Ansari:

The Messenger of Allah (saws) said: Act differently from the Jews, for they do not pray in their sandals or their shoes.

+ +**#6** — bukhari 2628 · score: 0.5948 +>

Narrated Aiman:

I went to `Aisha and she was wearing a coarse dress costing five Dirhams. `Aisha said, "Look up and see my slave-girl who refuses to wear it in the house though during the lifetime of Allah's Apostle I had a similar dress which no woman desiring to appear elegant (before her husband) failed to borrow from me." + +**#7** — mishkat 765 · score: 0.5945 +> Shaddad b. Aus reported God’s Messenger as saying, “Act differently from the Jews, for they do not pray in their sandals or their shoes.”* * Khuff (pl. khifaf), an article of footwear which came up above the ankle. Traditions tell that the Prophet allowed pilgrims to wear the khuff only when unable to procure sandals, but said they must be cut to come below the ankle. Cf. Bukhari, Hajj, 21, 23; Libas, 8, 4, 15, 73. Abu Dawud transmitted it. + +**#8** — ibnmajah 2939 · score: 0.594 +> It was narrated that ‘Abdullah bin ‘Abbas said: “The Prophets used to enter the Haram walking barefoot. They would circumambulate the House and complete all the rituals barefoot and walking.” + +**#9** — forty 33 · score: 0.5939 +> Actions are through intentions. + +**#10** — forty 18 · score: 0.5936 +> The felicitous person takes lessons from (the actions of) others. + + +### nomic — 150 total hits + +**#1** — tirmidhi 40 · score: 0.7981 +> Al-Mustawrid bin Shaddad Al-Fihri said : "I saw the Prophet when he was performing Wudu doing that to the toes on his feet with his pinky." + +**#2** — tirmidhi 3734 · score: 0.7957 +> Narrated Ibn 'Abbas: "The first to perform Salat was 'Ali." + +**#3** — tirmidhi 39 · score: 0.7927 +> Ibn Abbas narrated that : Allah's Messenger said: "When performing Wudu go between the fingers of your hands and (toes of) your feet." + +**#4** — bulugh 55 · score: 0.7924 +> Narrated Anas (rad): The Prophet (saw) saw a man on whose foot appeared a portion like the size of a nail which was not touched by water. He then said, “Go back and perform your Wudu properly.” [Reported by Abu Da’ud and An-Nasa’i]. + +**#5** — bukhari 6702 · score: 0.7916 +>

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf around the Ka`ba, tied with a rope or something else (while another person was holding him). The Prophet cut that rope off. + +**#6** — bukhari 5910 · score: 0.7911 +>

Narrated Anas: The Prophet had big feet and hands. + +**#7** — abudawud 1986 · score: 0.791 +> Narrated Ibn 'Umar: The Messenger of Allah (saws) performed 'Umrah before performing Hajj. + +**#8** — nasai 50 · score: 0.789 +> It was narrated from Abu Hurairah that the Prophet (PBUH) performed Wudu', and when he had performed Istinja' he rubbed his hand on the ground. + +**#9** — bulugh 1443 · score: 0.7884 +> In a version by Muslim, “And the one who is riding should salute the one who is walking.” + +**#10** — bulugh 45 · score: 0.7884 +> Narrated Abu Huraira (rad): Allah’s Messenger (rad) said, “When you perform ablution, begin with your right limbs”. [Reported by Al-Arba’a and garded Sahih by Ibn Khuzaima]. + + +### mxbai — 150 total hits + +**#1** — muslim 819 a · score: 0.7711 +>

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached seven modes (of recitation). Ibn Shibab said: It has reached me that these seven styles are essentially one, not differing about what is permitted and what is forbidden. + +**#2** — abudawud 727 · score: 0.7646 +> The above tradition has been transmitted by ‘Asim b. Kulaib through a different chain of narrators and to the same effect. This version has: “He then placed his right hand on the back of his left palm and his wrist and forearm.” This also adds: “I then came back afterwards in a season when it was severe cold. I saw the people putting on heavy clothes moving their hands under the clothes (i.e. raised their hands before and after bowing).” + +**#3** — abudawud 942 · score: 0.76 +> ‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. + +**#4** — tirmidhi 3418 · score: 0.7595 +> `Abdullah bin `Abbas [may Allah be pleased with them] narrated, : that when the Messenger of Allah (saws) would stand for prayer during the middle of the night, he would say: “O Allah, to You is the Praise, You are the Light of the heavens and the earth, and to You is the Praise, You are the Sustainer of the heavens and the earth, and to You is the praise, You are the Lord of the heavens and the earth, and those in them, You are the truth, and Your Promise is the truth, and Your meeting is true, and Paradise is true, and the Fire is true, and the Hour is true, O Allah, to You have I… + +**#5** — malik 75 · score: 0.7591 +>

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, "I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the mosque and prayed."

Yahya said that Malik was asked whether a man who did wudu for prayerand then put on his leather socks, and then urinated and took them off and put them back on again, should begin wudu afresh.

Malik replied, "He should take off his socks and wash his feet. Only… + +**#6** — abudawud 958 · score: 0.7588 +> 'Abdullah bin 'Umar said: "A Sunnah of the prayer is that you should raise your right foot, and make your left foot lie (on the ground)." + +**#7** — mishkat 4416 · score: 0.7583 +> Al-Qasim b. Muhammad quoted ‘A’isha as saying the Prophet often walked wearing one sandal. A version says she walked wearing one sandal. Tirmidhi transmitted it, saying this is sounder + +**#8** — muslim 2099 d · score: 0.7576 +>

Jabir. b. Abdullah reported Allah's Messenger (may peace be upon him) as saying: Do not walk in one sandal and do not wrap the lower garment round your knees and do not eat with your left hand and do not wrap yourself completely leaving no room for the arms (to draw out) and do not place one of your feet upon the other while lying on your back. + +**#9** — muslim 2097 a · score: 0.7554 +>

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: "When one of you puts on sandals, he should first put in the right foot, and when he takes off he should take off the left one first. And he should wear both of them or take both off." + +**#10** — abudawud 859 · score: 0.7548 +> This tradition has also been transmitted through a different chain of narrators by Rifa’ah b. Rafi. This version goes: When you get up and face the qiblah, what Allah wishes you to recite. And when you bow, put your palms on your knees and stretch out your back. When you prostrate yourself, do it completely( so that you are at the rest). When you raise yourself then sit on your left thigh. + + diff --git a/test results & reports/lexical vs semantic/test2/batch_results.csv b/test results & reports/lexical vs semantic/test2/batch_results.csv new file mode 100644 index 0000000..54465ad --- /dev/null +++ b/test results & reports/lexical vs semantic/test2/batch_results.csv @@ -0,0 +1,467 @@ +query,model,rank,collection,hadithNumber,urn,score,text_snippet +comparing yourself to others,lexical,1,muslim,1776 d,243910,17.9936,"

This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." +comparing yourself to others,lexical,2,bukhari,3334,31150,16.2561,"

Narrated Anas:

The Prophet said, ""Allah will say to that person of the (Hell) Fire who will receive the least punishment, 'If you had everything on the earth, would you give it as a ransom to free yourself (i.e. save yourself from this Fire)?' He will say, 'Yes.' Then Allah will say, 'While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me.' """ +comparing yourself to others,lexical,3,muslim,2431,259660,16.1899,"

Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods." +comparing yourself to others,lexical,4,bukhari,4816,44950,14.8959,"

Narrated Ibn Mas`ud:

(regarding) the Verse: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you..' (41.22) While two persons from Quraish and their brotherin- law from Thaqif (or two persons from Thaqif and their brother-in-law from Quraish) were in a house, they said to each other, ""Do you think that Allah hears our talks?"" Some said, ""He hears a portion thereof"" Others said, ""If He can hear a portion of it, He can…" +comparing yourself to others,lexical,5,muslim,2939 b,270210,14.8806,

Mughira b. Shu'ba reported that none asked Allah's Apostle (may peace be upon him) about Dajjal more than I asked him. I (one of the narrators other than Mughira b. Shu'ba) said: What did you ask? Mughira replied: I said that the people alleged that he would have a mountain load of bread and mutton and rivers of water. Thereupon he said: He would be more insignificant in the eye of Allah compared with all this. +comparing yourself to others,lexical,6,abudawud,4627,846100,14.877,Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other. +comparing yourself to others,lexical,7,bukhari,6557,61710,14.3848,"

Narrated Anas bin Malik:

The Prophet said, ""Allah will say to the person who will have the minimum punishment in the Fire on the Day of Resurrection, 'If you had things equal to whatever is on the earth, would you ransom yourself (from the punishment) with it?' He will reply, Yes. Allah will say, 'I asked you a much easier thing than this while you were in the backbone of Adam, that is, not to worship others besides Me, but you refused and insisted to worship others besides Me.""'" +comparing yourself to others,lexical,8,bukhari,2219,20840,14.3251,"

Narrated Sa`d that his father said:

`Abdur-Rahman bin `Auf said to Suhaib, 'Fear Allah and do not ascribe yourself to somebody other than your father.' Suhaib replied, 'I would not like to say it even if I were given large amounts of money, but I say I was kidnapped in my childhood.' """ +comparing yourself to others,lexical,9,bukhari,3628,33860,14.191,"

Narrated Ibn `Abbas:

Allah's Apostle in his fatal illness came out, wrapped with a sheet, and his head was wrapped with an oiled bandage. He sat on the pulpit, and praising and glorifying Allah, he said, ""Now then, people will increase but the Ansar will decrease in number, so much so that they, compared with the people, will be just like the salt in the meals. So, if any of you should take over the authority by which he can either benefit some people or harm some others, he should…" +comparing yourself to others,lexical,10,bukhari,3655,34120,14.0406,"

Narrated Ibn `Umar:

We used to compare the people as to who was better during the lifetime of Allah's Apostle . We used to regard Abu Bakr as the best, then `Umar, and then `Uthman ." +comparing yourself to others,openai-small-en,1,adab,328,2203280,0.6896,"Ibn 'Abbas said, ""When you want to mention your companion's faults, remember your own faults.""" +comparing yourself to others,openai-small-en,2,bukhari,6490,61050,0.6896,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " +comparing yourself to others,openai-small-en,3,riyadussalihin,466,1604630,0.6851,"Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, ""Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.""
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: ""When one of you looks at someone who is superior to him in property and appearance, he should look at someone…" +comparing yourself to others,openai-small-en,4,ahmad,111,5001110,0.6775,"It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to…" +comparing yourself to others,openai-small-en,5,forty,18,1430180,0.6753,The felicitous person takes lessons from (the actions of) others. +comparing yourself to others,openai-small-en,6,muslim,2963 c,270700,0.6708,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.

In the chain narrated by Abu Mu'awiya's he said: Upon you." +comparing yourself to others,openai-small-en,7,adab,592,2205770,0.6669,"Abu Hurayra said, ""One of you looks at the mote in his brother's eye while forgetting the stump in his own eye.""" +comparing yourself to others,openai-small-en,8,muslim,2963 a,270680,0.6666,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). +comparing yourself to others,openai-small-en,9,abudawud,4084,840730,0.6659,"

Narrated AbuJurayy Jabir ibn Salim al-Hujaymi:

I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say ""On you be peace,"" for ""On you be peace"" is a greeting for the dead, but say ""Peace be upon you"".

I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger…" +comparing yourself to others,openai-small-en,10,bulugh,1471,2054330,0.664,"Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." +comparing yourself to others,nomic,1,bukhari,6490,61050,0.8354,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " +comparing yourself to others,nomic,2,bukhari,6061,56910,0.8165,"

Narrated Abu Bakra:

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, ""May Allah's Mercy be on you ! You have cut the neck of your friend."" The Prophet repeated this sentence many times and said, ""If it is indispensable for anyone of you to praise someone, then he should say, 'I think that he is so-and-so,"" if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody…" +comparing yourself to others,nomic,3,bulugh,1471,2054330,0.8111,"Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." +comparing yourself to others,nomic,4,bukhari,6530,61450,0.8109,"

Narrated Abu Sa`id:

The Prophet said, ""Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) are the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine (persons).' At that time children will become hoary-headed and every…" +comparing yourself to others,nomic,5,muslim,2963 a,270680,0.8103,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). +comparing yourself to others,nomic,6,tirmidhi,2513,678190,0.809,"Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: ""Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.""" +comparing yourself to others,nomic,7,bukhari,6162,57880,0.8085,"

Narrated Abu Bakra:

A man praised another man in front of the Prophet. The Prophet said thrice, ""Wailaka (Woe on you) ! You have cut the neck of your brother!"" The Prophet added, ""If it is indispensable for anyone of you to praise a person, then he should say, ""I think that such-and-such person (is so-and-so), and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah (and that only if he knows well about that person.)""." +comparing yourself to others,nomic,8,nasai,3947,1039620,0.8077,"It was narrated from Abu Musa that the Prophet said: ""The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.""" +comparing yourself to others,nomic,9,abudawud,4627,846100,0.8051,Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other. +comparing yourself to others,nomic,10,adab,1146,2211010,0.8041,"Ibn 'Abbas said, ""The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me.""" +comparing yourself to others,mxbai,1,forty,18,1430180,0.8147,The felicitous person takes lessons from (the actions of) others. +comparing yourself to others,mxbai,2,bukhari,6490,61050,0.8022,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " +comparing yourself to others,mxbai,3,forty,3,1430030,0.7969,A Muslim is a mirror of the Muslim. +comparing yourself to others,mxbai,4,muslim,2963 a,270680,0.794,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). +comparing yourself to others,mxbai,5,ibnmajah,4336,1294390,0.792,"Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace there?” He said: “Yes. The Messenger of Allah (saw) told me that when the people of Paradise enter it, they will take their places according to their deeds, and they will be given permission for a length of time equivalent to Friday on earth, when they will visit Allah. His Throne will be shown to them…" +comparing yourself to others,mxbai,6,adab,159,2201600,0.7897,"Abu'd-Darda' used to say to people. ""We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves.""" +comparing yourself to others,mxbai,7,riyadussalihin,466,1604630,0.7864,"Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, ""Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.""
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: ""When one of you looks at someone who is superior to him in property and appearance, he should look at someone…" +comparing yourself to others,mxbai,8,muslim,2536,261590,0.7854,"

'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." +comparing yourself to others,mxbai,9,tirmidhi,2513,678190,0.7821,"Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: ""Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.""" +comparing yourself to others,mxbai,10,abudawud,4092,840810,0.7821,"

Narrated AbuHurayrah:

A man who was beautiful came to the Prophet (saws). He said: Messenger of Allah, I am a man who likes beauty, and I have been given some of it, as you see. And I do not like that anyone excels me (in respect of beauty). Perhaps he said: ""even to the extent of thong of my sandal (shirak na'li)"", or he he said: ""to the extent of strap of my sandal (shis'i na'li)"". Is it pride? He replied: No, pride is disdaining what is true and despising people.

" +aisha six years,lexical,1,bukhari,5133,48030,23.3839,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." +aisha six years,lexical,2,bukhari,3896,36420,23.3248,"

Narrated Hisham's father:

Khadija died three years before the Prophet departed to Medina. He stayed there for two years or so and then he married `Aisha when she was a girl of six years of age, and he consumed that marriage when she was nine years old." +aisha six years,lexical,3,bukhari,5158,48270,23.2301,

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him for nine years (i.e. till his death). +aisha six years,lexical,4,bukhari,5134,48040,23.1431,

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). +aisha six years,lexical,5,muslim,1422 b,233100,22.7803,"

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old." +aisha six years,lexical,6,muslim,1422 d,233115,22.0443,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" +aisha six years,lexical,7,abudawud,2121,821160,21.5411,Narrated 'Aishah: The Messenger of Allah (saws) married me when I was seven years old. The narrator Sulaiman said: or Six years. He had intercourse with me when I was nine years old. +aisha six years,lexical,8,nasai,3255,1032660,21.1657,"It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine." +aisha six years,lexical,9,bukhari,3948,36900,18.5181,

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. +aisha six years,lexical,10,bukhari,3894,36400,17.7972,"

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on my hair grew (again) and my mother, Um Ruman, came to me while I was playing in a swing with some of my girl friends. She called me, and I went to her, not knowing what she wanted to do to me. She caught me by the hand and made me stand at the door of the house. I was breathless then, and when my…" +aisha six years,openai-small-en,1,bukhari,5134,48040,0.7911,

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). +aisha six years,openai-small-en,2,bukhari,5133,48030,0.7872,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." +aisha six years,openai-small-en,3,muslim,1422 d,233115,0.7823,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" +aisha six years,openai-small-en,4,muslim,1422 b,233100,0.7807,"

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old." +aisha six years,openai-small-en,5,muslim,1422 c,233110,0.78,"

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old." +aisha six years,openai-small-en,6,mishkat,3129,5830500,0.7723,"‘A’isha said that the Prophet married her when she was seven, she was brought to live with him when she was nine bringing her toys with her, and he died when she was eighteen. Muslim transmitted it." +aisha six years,openai-small-en,7,muslim,334 d,206570,0.7658,"

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years,"" and the rest of the hadith is the same (as mentioned above)." +aisha six years,openai-small-en,8,nasai,3378,1033890,0.7618,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls.""" +aisha six years,openai-small-en,9,ibnmajah,1877,1261950,0.7572,"It was narrated that: Abdullah said: “The Prophet married Aishah when she was seven years old, and consummated the marriage with her when she was nine, and he passed away when she was eighteen.”" +aisha six years,openai-small-en,10,nasai,3379,1033900,0.7566,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine.""" +aisha six years,nomic,1,muslim,1422 d,233115,0.7981,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" +aisha six years,nomic,2,bukhari,3948,36900,0.7872,

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. +aisha six years,nomic,3,muslim,334 d,206570,0.7823,"

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years,"" and the rest of the hadith is the same (as mentioned above)." +aisha six years,nomic,4,muslim,1422 b,233100,0.7789,"

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old." +aisha six years,nomic,5,bulugh,228,2002780,0.7779,"It is mentioned in al-Bazzar through another chain with the addition: ""forty years.""" +aisha six years,nomic,6,abudawud,2240,822320,0.7756,"

Narrated Abdullah ibn Abbas:

The Messenger of Allah (saws) restored his daughter Zaynab to Abul'As on the basis of the previous marriage, and he did not do anything afresh.

Muhammad b. 'Amr said in his version: After six years. Al-Hasan b. 'Ali said: After two years.

" +aisha six years,nomic,7,shamail,380,1803620,0.7728,"Mu'awiya said in a sermon: ""The Prophet died (Allah bless him and give him peace) when he was sixty-three years of age, as did Abu Bakr and 'Umar, and I am now sixty-three years of age.”" +aisha six years,nomic,8,muslim,1422 c,233110,0.771,"

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old." +aisha six years,nomic,9,mishkat,5489,5961160,0.7701,"Asma' daughter of Yazid b. as-Sakan reported the Prophet a saying, ""The dajjal will remain in the earth forty years, a year being like a month, a month like a week, a week like a day, and a day like the time it takes to burn a palm-branch."" It is transmitted in Sharh as sunna." +aisha six years,nomic,10,bukhari,5133,48030,0.7689,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." +aisha six years,mxbai,1,bukhari,3894,36400,0.8627,"

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on my hair grew (again) and my mother, Um Ruman, came to me while I was playing in a swing with some of my girl friends. She called me, and I went to her, not knowing what she wanted to do to me. She caught me by the hand and made me stand at the door of the house. I was breathless then, and when my…" +aisha six years,mxbai,2,nasai,3255,1032660,0.8612,"It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine." +aisha six years,mxbai,3,bukhari,5133,48030,0.86,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." +aisha six years,mxbai,4,ibnmajah,1876,1261940,0.8522,"It was narrated that: Aishah said: “The Messenger of Allah married me when I was six years old. Then we came to Al-Madinah and settled among Banu Harith bin Khazraj. I became ill and my hair fell out, then it grew back and became abundant. My mother Umm Ruman came to me while I was on an Urjuhah with some of my friends, and called for me. I went to her, and I did not know what she wanted. She took me by the hand and made me stand at the door of the house, and I was panting. When I got my breath…" +aisha six years,mxbai,5,bukhari,5134,48040,0.8507,

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). +aisha six years,mxbai,6,bukhari,5158,48270,0.849,

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him for nine years (i.e. till his death). +aisha six years,mxbai,7,nasai,3378,1033890,0.8465,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls.""" +aisha six years,mxbai,8,nasai,3379,1033900,0.8449,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine.""" +aisha six years,mxbai,9,muslim,1422 d,233115,0.8446,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" +aisha six years,mxbai,10,nasai,3258,1032690,0.8426,It was narrated from 'Aishah that the Messenger of Allah married her when she was nine and he died when she was eighteen years old. +music,lexical,1,muslim,2114,252790,16.9802,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. +music,lexical,2,abudawud,2556,825500,15.2798,Abu Hurairah reported the Apostle of Allaah(saws) as saying “The bell is a wooden wind musical instrument of Satan.” +music,lexical,3,bukhari,952,9070,14.6703,"

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said protestingly, ""Musical instruments of Satan in the house of Allah's Apostle !"" It happened on the `Id day and Allah's Apostle said, ""O Abu Bakr! There is an `Id for every nation and this is our `Id.""" +music,lexical,4,riyadussalihin,1691,1624920,14.4857,"Abu Hurairah (May Allah be pleased with him) said: The Prophet (PBUH) said, ""The bell is one of the musical instruments of Satan.""

[Muslim].

" +music,lexical,5,bukhari,3931,36740,14.4274,"

Narrated Aisha:

That once Abu Bakr came to her on the day of `Id-ul-Fitr or `Id ul Adha while the Prophet was with her and there were two girl singers with her, singing songs of the Ansar about the day of Buath. Abu Bakr said twice. ""Musical instrument of Satan!"" But the Prophet said, ""Leave them Abu Bakr, for every nation has an `Id (i.e. festival) and this day is our `Id.""" +music,lexical,6,bukhari,5590,52420,13.4703,"

Narrated Abu 'Amir or Abu Malik Al-Ash'ari:

that he heard the Prophet saying, ""From among my followers there will be some people who will consider illegal sexual intercourse, the wearing of silk, the drinking of alcoholic drinks and the use of musical instruments, as lawful. And there will be some people who will stay near the side of a mountain and in the evening their shepherd will come to them with their sheep and ask them for something, but they will say to him, 'Return to us…" +music,lexical,7,tirmidhi,2212,675160,13.1285,"'Imran bin Husain narrated that the Messenger of Allah(s.a.w) said: ""In this Ummah there shall be collapsing of the earth, transformation and Qadhf."" A man among the Muslims said: ""O Messenger of Allah! When is that?"" He said: ""When singing slave-girls, music, and drinking intoxicants spread.""" +music,lexical,8,ibnmajah,4020,1291200,12.3358,"It was narrated from Abu Malik Ash’ari that the Messenger of Allah (saw) said: “People among my nation will drink wine, calling it by another name, and musical instruments will be played for them and singing girls (will sing for them). Allah will cause the earth to swallow them up, and will turn them into monkeys and pigs.”" +music,lexical,9,nasai,4135,1083345,11.4333,"It was narrated that Al-Awza'i said: ""Umar bin 'Abdul-'Aziz wrote a letter to 'Umar bin Al-Walid in which he said: 'The share that your father gave to you was the entire Khumus,[1] but the share that your father is entitled to is the same as that of any man among the Muslims, on which is due the rights of Allah and His Messenger, and of relatives, orphans, the poor and wayfarers. How many will dispute with your father on the Day of Resurrection! How can he be saved who has so many disputants?…" +music,lexical,10,muslim,892 e,219420,11.1285,

`A'isha reported: The Messenger of Allah (may peace be upon him) came (to my apartment) while there were two girls with me singing the song of the Battle of Bu`ath. He lay down on the bed and turned away his face. Then came Abu Bakr and he scolded me and said: Oh! this musical instrument of the devil in the house of the Messenger of Allah (may peace be upon him)! The Messenger of Allah (may peace be upon him) turned towards him and said: Leave them alone. And when he (the Holy Prophet)… +music,openai-small-en,1,mishkat,3153,5830700,0.6246,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." +music,openai-small-en,2,malik,1748,418052,0.6186,"

Yahya related to me from Malik from Abu Hazim ibn Dinar that Abu Idris al-Khawlani said, ""I entered the Damascus mosque and there was a young man with a beautiful mouth and white teeth sitting with some people. When they disagreed about something, they referred it to him and proceeded from his statement. I inquired about him, and it was said, 'This is Muadh ibn Jabal.' The next day I went to the noon-prayer, and I found that he had preceded me to the noon prayer and I found him praying.""…" +music,openai-small-en,3,abudawud,1468,814630,0.617,

Narrated Al-Bara' ibn Azib:

The Prophet (saws) said: Beautify the Qur'an with your voices.

+music,openai-small-en,4,adab,786,2207420,0.6146,"Ibn 'Abbas said about ""There are some people who trade in distracting tales"" (31:5) that it means singing and things like it." +music,openai-small-en,5,bukhari,439,4320,0.6132,"

Narrated `Aisha:

There was a black slave girl belonging to an 'Arab tribe and they manumitted her but she remained with them. The slave girl said, ""Once one of their girls (of that tribe) came out wearing a red leather scarf decorated with precious stones. It fell from her or she placed it somewhere. A kite passed by that place, saw it Lying there and mistaking it for a piece of meat, flew away with it. Those people searched for it but they did not find it. So they accused me of stealing…" +music,openai-small-en,6,muslim,2114,252790,0.6126,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. +music,openai-small-en,7,adab,1265,2212210,0.6111,"Ibn 'Abbas said that the words of Allah in Luqman (35:6), ""There are people who trade in distracting tales"" mean ""singing and things like it.""" +music,openai-small-en,8,muslim,793 d,217340,0.607,

Buraida reported on the authority of his father that the Messenger of Allah (may peace be upon him) had said: 'Abdullah b. Qais or al-Ash'ari has been gifted with a sweet melodious voice out of the voices of the family of David. +music,openai-small-en,9,forty,19,1430190,0.6066,"Indeed, in poetry there is wisdom and in eloquence there is magic." +music,openai-small-en,10,forty,25,1400250,0.6059,"

Also on the authority of Abu Dharr (may Allah be pleased with him): Some people from amongst the Companions of the Messenger of Allah (peace and blessings of Allah be upon him) said to the Prophet (peace and blessings of Allah be upon him), ""O Messenger of Allah, the affluent have made off with the rewards; they pray as we pray, they fast as we fast, and they give [much] in charity by virtue of their wealth."" He (peace and blessings of Allah be upon him) said, ""Has not Allah made things for…" +music,nomic,1,muslim,2114,252790,0.8074,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. +music,nomic,2,mishkat,3153,5830700,0.8052,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." +music,nomic,3,tirmidhi,3728,636080,0.7873,"Narrated Anas bin Malik: ""The advent of the Prophet (SAW) was on Monday and 'Ali performed Salat on Tuesday.""" +music,nomic,4,muslim,892 a,219380,0.7864,"

'A'isha reported: Abu Bakr came to see me and I had two girls with me from among the girls of the Ansar and they were singing what the Ansar recited to one another at the Battle of Bu'ath. They were not, however, singing girls. Upon this Abu Bakr said: What I (the playing of) this wind instrument of Satan in the house of the Messenger of Allah (may peace be upon him) and this too on 'Id day? Upon this the Messenger of Allah (may peace be upon him) said: Abu Bakr, every people have a…" +music,nomic,5,tirmidhi,3734,636130,0.7863,"Narrated Ibn 'Abbas: ""The first to perform Salat was 'Ali.""" +music,nomic,6,nasai,342,1003440,0.7859,"It was narrated that Ibn 'Umar said: ""Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH).""" +music,nomic,7,bukhari,952,9070,0.7855,"

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said protestingly, ""Musical instruments of Satan in the house of Allah's Apostle !"" It happened on the `Id day and Allah's Apostle said, ""O Abu Bakr! There is an `Id for every nation and this is our `Id.""" +music,nomic,8,nasai,71,1000710,0.7854,"It was narrated that Ibn 'Umar said: ""Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH).""" +music,nomic,9,bukhari,1621,15270,0.7853,

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf of the Ka`ba tied with a string or something else. So the Prophet cut that string. +music,nomic,10,ibnmajah,1898,1262170,0.7842,"It was narrated that 'Aishah said: “Abu Bakr entered upon me, and there were two girls from the Ansar with me, singing about the Day of Bu'ath.” She said: “And they were not really singers. Abu Bakr said: 'The wind instruments of Satan in the house of the Prophet ?' That was on the day of 'Eid(Al-Fitr). But the Prophet said: 'O Abu Bakr, every people has its festival and this is our festival.' ”" +music,mxbai,1,muslim,892 b,219390,0.7705,"

This hadith has been narrated by Hisham with the same chain of transmitters, but there the words are:"" Two girls were playing upon a tambourine.""" +music,mxbai,2,muslim,819 a,217850,0.7603,"

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached seven modes (of recitation). Ibn Shibab said: It has reached me that these seven styles are essentially one, not differing about what is permitted and what is forbidden." +music,mxbai,3,tirmidhi,2780b,630011,0.7596,Another chain with a similar narration +music,mxbai,4,tirmidhi,2783b,630051,0.7578,(Another chain) with a similar narration +music,mxbai,5,tirmidhi,1599,616910,0.7559,Another chain with similar narration. +music,mxbai,6,mishkat,2214,5780970,0.752,"Ibn ‘Abbās reported God’s messenger as saying, “Gabriel taught me to recite in one mode, and when I replied to him and kept asking him to give me more he did so till he reached seven modes."" Ibn Shihāb said he had heard that those seven modes are essentially one, not differing about what is permitted and what is prohibited. (Bukhārī and Muslim.)" +music,mxbai,7,mishkat,3153,5830700,0.7513,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." +music,mxbai,8,hisn,94,1420950,0.7495,"Subḥānallāhi wa biḥamdih: `adada khalqih, wa riḍā nafsih, wa zinata `arshih, wa midāda kalimātih. Glory is to Allah and praise is to Him, by the multitude of His creation, by His Pleasure, by the weight of His Throne, and by the extent of His Words. (Recite three times in Arabic upon rising in the morning.) Reference: Muslim 4/2090." +music,mxbai,9,abudawud,942,809420,0.7494,‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. +music,mxbai,10,hisn,181,1421820,0.7488,"Alhamdu lillāhi ḥamdan kathīran tayyiban mubārakan fīh, ghayra makfiyyin wa lā muwadda`in, wa lā mustaghnan `anhu Rabbanā. All praise is to Allah, praise in abundance, good and blessed. It cannot [be compensated for, nor can it] be left, nor can it be done without, our Lord. Reference: Al-Bukhari 6/214, At-Tirmidhi 5/507." +actions are by intentions,lexical,1,forty,33,1430330,16.884,Actions are through intentions. +actions are by intentions,lexical,2,muslim,1907 a,246920,15.5908,

It has been narrated on the authority of Umar b. al-Khattab that the Messenger of Allah (may peace be upon him) said: (The value of) an action depends on the intention behind it. A man will be rewarded only for what he intended. The emigration of one who emigrates for the sake of Allah and His Messenger (may peace be upon him) is for the sake of Allah and His Messenger (may peace be upon him) ; and the emigration of one who emigrates for gaining a worldly advantage or for marrying a woman… +actions are by intentions,lexical,3,bukhari,26,250,15.5359,"

Narrated Abu Huraira:

Allah's Apostle was asked, ""What is the best deed?"" He replied, ""To believe in Allah and His Apostle (Muhammad). The questioner then asked, ""What is the next (in goodness)? He replied, ""To participate in Jihad (religious fighting) in Allah's Cause."" The questioner again asked, ""What is the next (in goodness)?"" He replied, ""To perform Hajj (Pilgrim age to Mecca) 'Mubrur, (which is accepted by Allah and is performed with the intention of seeking Allah's pleasure only…" +actions are by intentions,lexical,4,bukhari,2641,24730,15.0604,"

Narrated `Umar bin Al-Khattab:

People were (sometimes) judged by the revealing of a Divine Inspiration during the lifetime of Allah's Apostle but now there is no longer any more (new revelation). Now we judge you by the deeds you practice publicly, so we will trust and favor the one who does good deeds in front of us, and we will not call him to account about what he is really doing in secret, for Allah will judge him for that; but we will not trust or believe the one who presents to us…" +actions are by intentions,lexical,5,nasai,3437,1034480,14.9857,"It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: ""Actions are but by intentions, and each man will have but that which he intended. Whoever emigrated for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and whoever emigrated for the sake of some worldly gain or to marry some woman, his emigration was for that for which he emigrated.""" +actions are by intentions,lexical,6,nasai,3794,1038080,14.9857,"It was narrated from 'Umar bin Al-Khattab that the Prophet said: ""Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated.""" +actions are by intentions,lexical,7,riyadussalihin,11,1600110,14.6416,"'Abdullah bin 'Abbas (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said that Allah, the Glorious, said: ""Verily, Allah (SWT) has ordered that the good and the bad deeds be written down. Then He explained it clearly how (to write): He who intends to do a good deed but he does not do it, then Allah records it for him as a full good deed, but if he carries out his intention, then Allah the Exalted, writes it down for him as from ten to seven hundred folds, and even more. But…" +actions are by intentions,lexical,8,nasai,75,1000750,14.5584,"It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: ""The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended.""" +actions are by intentions,lexical,9,abudawud,2201,821950,14.4857,"‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His Apostle, his emigration is to Allaah and His Apostle but his emigration is to a worldly end at which he aims or to a woman whom he marries , his emigration is to that for which he emigrated." +actions are by intentions,lexical,10,bukhari,1558,14680,14.0708,"

Narrated Anas bin Malik:

`Ali came to the Prophet (p.b.u.h) from Yemen (to Mecca). The Prophet asked `Ali, ""With what intention have you assumed Ihram?"" `Ali replied, ""I have assumed Ihram with the same intention as that of the Prophet."" The Prophet said, ""If I had not the Hadi with me I would have finished the Ihram."" Muhammad bin Bakr narrated extra from Ibn Juraij, ""The Prophet said to `Ali, ""With what intention have you assumed the Ihram, O `Ali?"" He replied, ""With the same…" +actions are by intentions,openai-small-en,1,forty,33,1430330,0.9241,Actions are through intentions. +actions are by intentions,openai-small-en,2,nasai,75,1000750,0.7223,"It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: ""The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended.""" +actions are by intentions,openai-small-en,3,nasai,3794,1038080,0.7109,"It was narrated from 'Umar bin Al-Khattab that the Prophet said: ""Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated.""" +actions are by intentions,openai-small-en,4,ibnmajah,4229,1293320,0.7081,It was narrated from Abu Hurairah that the Messenger of Allah (saw) said: “People will be resurrected (and judged) according to their intentions.” +actions are by intentions,openai-small-en,5,ahmad,168,5001680,0.7077,"Umar said: I heard the Messenger of Allah ﷺ say: `Deeds are but by intentions and each man will have but that which he intended. If a man's migration was for the sake of Allah, then his migration was for that for which he migrated, but if his migration was to achieve some worldly aim or to take some woman in marriage, his migration was for that for which he migrated.`" +actions are by intentions,openai-small-en,6,abudawud,2201,821950,0.6958,"‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His Apostle, his emigration is to Allaah and His Apostle but his emigration is to a worldly end at which he aims or to a woman whom he marries , his emigration is to that for which he emigrated." +actions are by intentions,openai-small-en,7,nasai,3437,1034480,0.6949,"It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: ""Actions are but by intentions, and each man will have but that which he intended. Whoever emigrated for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and whoever emigrated for the sake of some worldly gain or to marry some woman, his emigration was for that for which he emigrated.""" +actions are by intentions,openai-small-en,8,tirmidhi,1647,617430,0.6894,"Narrated 'Umar bin Al-Khattab:

That the Messenger of Allah (saws) said: ""Deeds are but with intentions, and for the man is only what he intended. So one whose emigration was to Allah and His Messenger, then his emigration was to Allah and His Messenger. And one whose emigration was to the world, to attain some of it, or woman, to marry her, then his emigration was to what he emigrated.

[Abu 'Eisa said:] This Hadith is Hasan Sahih. Malik bin Anas, Sufyan Ath-Thawri and more than one…" +actions are by intentions,openai-small-en,9,muslim,130,202360,0.6872,"

It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him) observed: He who intended to do good, but did not do it, one good was recorded for him, and he who intended to do good and also did it, ten to seven hundred good deeds were recorded for him. And he who intended evil, but did not commit it, no entry was made against his name, but if he committed that, it was recorded." +actions are by intentions,openai-small-en,10,ibnmajah,4230,1293330,0.6857,It was narrated from Jabir that the Messenger of Allah (saw) said: “People will be gathered (on the Day of Resurrection) according to their intentions.” +actions are by intentions,nomic,1,bukhari,6607,62130,0.826,"

Narrated Sahl bin Sa`d:

There was a man who fought most bravely of all the Muslims on behalf of the Muslims in a battle (Ghazwa) in the company of the Prophet. The Prophet looked at him and said. ""If anyone would like to see a man from the people of the Fire, let him look at this (brave man)."" On that, a man from the People (Muslims) followed him, and he was in that state i.e., fighting fiercely against the pagans till he was wounded, and then he hastened to end his life by placing his…" +actions are by intentions,nomic,2,abudawud,1368,813630,0.8197,"Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he would do it continuously." +actions are by intentions,nomic,3,ahmad,184,5001840,0.8165,"It was narrated that Yahya bin Ya'mar and Humaid bin ‘Abdur­-Rahman al­-Himyari said: We met 'Abdullah bin 'Umar and discussed the divine decree (al qadar) and what others said concerning it. He said: When you go back to them, say; Ibn ‘Umar has nothing to do with you and you have nothing to do with him - three times. Then he said: ‘Umar bin al Khattab رضي الله عنه ­­ told me that whilst they were sitting with the Prophet ﷺ ­, a man came to him walking, with a handsome face and hair, wearing…" +actions are by intentions,nomic,4,bukhari,1559,14690,0.8164,"

Narrated Abu Musa:

The Prophet sent me to some people in Yemen and when I returned, I found him at Al-Batha. He asked me, ""With what intention have you assumed Ihram (i.e. for Hajj or for Umra or for both?"") I replied, ""I have assumed Ihram with an intention like that of the Prophet."" He asked, ""Have you a Hadi with you?"" I replied in the negative. He ordered me to perform Tawaf round the Ka`ba and between Safa and Marwa and then to finish my Ihram. I did so and went to a woman from my…" +actions are by intentions,nomic,5,mishkat,3444,5840551,0.8156,"‘Imran b. Husain told that he heard God’s Messenger say, “Vows are of two kinds, so if anyone vows to do an act of obedience, that is for God and must be fulfilled; but if anyone vows, to do an act of disobedience, that is for the devil and must not be fulfilled, but he must make atonement for it to the extent he would do in the case of an oath.”" +actions are by intentions,nomic,6,bulugh,918,2011240,0.8098,"Narrated [Ibn 'Abbas (RA)]: Allah's Messenger (SAW) said, ""There should neither be harming (of others without cause), nor reciprocating harm (between two parties)."" [Reported by Ahmad and Ibn Majah]." +actions are by intentions,nomic,7,ibnmajah,2120,1264390,0.8093,"It was narrated from Abu Hurairah that the Messenger of Allah (SAW) said: ""The oath is only according to the intention of the one who requests the oath to be taken.""'" +actions are by intentions,nomic,8,bukhari,7551,71000,0.8077,"

Narrated `Imran:

I said, ""O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, ""Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.'" +actions are by intentions,nomic,9,adab,490,2204900,0.8071,"Abu Dharr reported that the Prophet, may Allah bless him and grant him peace, reported that Allah, the Blessed and Exalted, said: ""My slaves! I have forbidden injustice for Myself and I have made it forbidden among you, so do not wrong one another. ""My slaves! You err by night and day and I forgive wrong actions and do not care. Ask me for forgiveness and I will forgive you. ""My slaves! All of you are hungry unless I have fed you, so ask Me to feed you, and I will feed you. All of you are naked…" +actions are by intentions,nomic,10,tirmidhi,2007,673100,0.807,"Hudhaifah narrated that the Messenger of Allah said: “Do not be a people without a will of your own, saying: 'If people treat us well, we will treat them well; and if they do wrong, we will do wrong,' but accustom yourselves to do good if people do good, and do not behave unjustly if they do evil.”" +actions are by intentions,mxbai,1,forty,33,1430330,0.988,Actions are through intentions. +actions are by intentions,mxbai,2,forty,5,1430050,0.864,"The person guiding (someone) to do a good deed, is like the one performing the good deed." +actions are by intentions,mxbai,3,forty,18,1430180,0.8358,The felicitous person takes lessons from (the actions of) others. +actions are by intentions,mxbai,4,abudawud,1368,813630,0.8291,"Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he would do it continuously." +actions are by intentions,mxbai,5,nasai,3794,1038080,0.8226,"It was narrated from 'Umar bin Al-Khattab that the Prophet said: ""Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated.""" +actions are by intentions,mxbai,6,nasai,75,1000750,0.8221,"It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: ""The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended.""" +actions are by intentions,mxbai,7,muslim,2648 b,264030,0.8211,"

This hadith has been transmitted on the authority of Jabir b. Abdullah with the same wording (and includes these words):"" Allah's Messenger (may peace be upon him) said: Every doer of deed is facilitated in his action.""" +actions are by intentions,mxbai,8,bukhari,7551,71000,0.8187,"

Narrated `Imran:

I said, ""O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, ""Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.'" +actions are by intentions,mxbai,9,forty,1,1400010,0.8183,"

It is narrated on the authority of Amirul Mu'minin, Abu Hafs 'Umar bin al-Khattab (ra) who said: I heard the Messenger of Allah (saws) say: ""Actions are (judged) by motives (niyyah), so each man will have what he intended. Thus, he whose migration (hijrah) was to Allah and His Messenger, his migration is to Allah and His Messenger; but he whose migration was for some worldly thing he might gain, or for a wife he might marry, his migration is to that for which he migrated."" [ Narrated Ibn `Abbas:

Allah's Apostle said, ""The Night of Qadr is in the last ten nights of the month (Ramadan), either on the first nine or in the last (remaining) seven nights (of Ramadan)."" Ibn `Abbas added, ""Search for it on the twenty-fourth (of Ramadan)." +ramadan,lexical,2,bukhari,2020,18990,13.8321,"

Narrated `Aisha:

Allah's Apostle used to practice I`tikaf in the last ten nights of Ramadan and used to say, ""Look for the Night of Qadr in the last ten nights of the month of Ramadan.""" +ramadan,lexical,3,bukhari,4502,41840,13.8321,"

Narrated `Aisha:

The people used to fast on the day of 'Ashura' before fasting in Ramadan was prescribed but when (the order of compulsory fasting in) Ramadan was revealed, it was up to one to fast on it (i.e. 'Ashura') or not." +ramadan,lexical,4,bukhari,6991,65760,13.8321,"

Narrated Ibn `Umar:

Some people were shown the Night of Qadr as being in the last seven days (of the month of Ramadan). The Prophet said, ""Seek it in the last seven days (of Ramadan)." +ramadan,lexical,5,bukhari,2008,18880,13.7905,"

Narrated Abu Huraira:

I heard Allah's Apostle saying regarding Ramadan, ""Whoever prayed at night in it (the month of Ramadan) out of sincere Faith and hoping for a reward from Allah, then all his previous sins will be forgiven.""" +ramadan,lexical,6,bukhari,2021,19000,13.774,"

Narrated Ibn `Abbas:

The Prophet said, ""Look for the Night of Qadr in the last ten nights of Ramadan ,' on the night when nine or seven or five nights remain out of the last ten nights of Ramadan (i.e. 21, 23, 25, respectively)." +ramadan,lexical,7,bukhari,1900,17860,13.7329,"

Narrated Ibn `Umar:

I heard Allah's Apostle saying, ""When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting; and if the sky is overcast (and you can't see it) then regard the month of Ramadan as of 30 days.""" +ramadan,lexical,8,bukhari,1906,17920,13.7084,"

Narrated `Abdullah bin `Umar:

Allah's Apostle mentioned Ramadan and said, ""Do not fast unless you see the crescent (of Ramadan), and do not give up fasting till you see the crescent (of Shawwal), but if the sky is overcast (if you cannot see it), then act on estimation (i.e. count Sha'ban as 30 days)." +ramadan,lexical,9,bukhari,3554,33180,13.7084,"

Narrated Ibn `Abbas:

The Prophet was the most generous of all the people, and he used to become more generous in Ramadan when Gabriel met him. Gabriel used to meet him every night during Ramadan to revise the Qur'an with him. Allah's Apostle then used to be more generous than the fast wind." +ramadan,lexical,10,bukhari,4503,41850,13.6841,"

Narrated `Abdullah:

That Al-Ash'ath entered upon him while he was eating. Al-Ash'ath said, ""Today is 'Ashura."" I said (to him), ""Fasting had been observed (on such a day) before (the order of compulsory fasting in) Ramadan was revealed. But when (the order of fasting in) Ramadan was revealed, fasting (on 'Ashura') was given up, so come and eat.""" +ramadan,openai-small-en,1,mishkat,1962,5770060,0.7704,"Abu Huraira reported God’s messenger as saying, “Ramadan, a blessed month, has come to you during which God has made it obligatory for you to fast. In it the gates of heaven are opened, the gates of al-Jahim are locked, and the rebellious devils are chained. In it God has a night which is better than a thousand months. He who is deprived of its good has indeed suffered deprivation."" Ahmad and Nasa’i transmitted it." +ramadan,openai-small-en,2,muslim,1081 a,223780,0.7665,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days." +ramadan,openai-small-en,3,muslim,1079 c,223620,0.7643,"

This hadith is reported by Abu Huraira (with a slight alteration of words) that the Messenger of Allah (may peace be upon him) said:"" When (the month of) Ramadan begins.""" +ramadan,openai-small-en,4,riyadussalihin,1194,1622380,0.7628,'Aishah (May Allah be pleased with her) reported: The Messenger of Allah (PBUH) used to strive more in worship during Ramadan than he strove in any other time of the year; and he would devote himself more (in the worship of Allah) in the last ten nights of Ramadan than he strove in earlier part of the month.

[Muslim].

+ramadan,openai-small-en,5,muslim,1163 a,226110,0.7614,"

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night." +ramadan,openai-small-en,6,muslim,1145 b,225480,0.7592,"

Salama b. Akwa' reported: We, during the lifetime of the Messenger of Allah (may peace be upon him), in one month of Ramadan (observed fast according to our liking). He who wished to fast lasted and he who wished to break broke it and fed a needy person as an expiation 1544 till this verse was revealed:"" He who witnesses among you the month (of Ramadan) he should observe fast during it"" (ii. 184)." +ramadan,openai-small-en,7,muslim,1080 b,223640,0.7579,"

Ibn Umar reported that Allah's Messenger (may peace be upon him) made a mention of Ramadan and he with the gesture of his hand said: The month is thus and thus. (He then withdrew his thumb at the third time). He then said: Fast when you see it, and break your fast when you see it, and if the weather is cloudy calculate it (the months of Sha'ban and Shawwal) as thirty days." +ramadan,openai-small-en,8,muslim,1080 e,223670,0.7564,"

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and if the sky is cloudy for you, then calculate." +ramadan,openai-small-en,9,abudawud,2429,824230,0.7543,"Narrated Abu Hurairah: The Messenger of Allah (saws) as saying: The most excellent fast after Ramadan is Allah's month al-Muharram, and the most excellent prayer after the prescribed prayer is the prayer during night." +ramadan,openai-small-en,10,ibnmajah,3925,1290230,0.7539,"It was narrated from Talhah bin ‘Ubaidullah that two men from Bali came to the Messenger of Allah (saw). They had become Muslim together, but one of them used to strive harder than the other. The one who used to strive harder went out to fight and was martyred. The other one stayed for a year longer, then he passed away. Talhah said: “I saw in a dream that I was at the gate of Paradise and I saw them (those two men). Someone came out of Paradise and admitted the one who had died last, then he…" +ramadan,nomic,1,muslim,1157 a,225830,0.8212,"

Ibn Abbas (Allah be pleased with both of them) reported: The Messenger of Allah (may peace be upon him) did not fast throughout any month except during ramadan. And when he observed fast (he fasted so continuously) that one would say that he would not break (them) and when he Abandoned, he abandoned (so continuously) that one would say: By Allah, perhaps he would never fast." +ramadan,nomic,2,bulugh,163,2001950,0.819,"Narrated Abu Sa'id al-Khudri (RA): I heard Allah's Messenger (SAW) saying: ""No Salat (prayer) is to be offered after the morning prayer until the sun rises, or after the afternoon prayer until the sun sets."" [Agreed upon]." +ramadan,nomic,3,abudawud,1611,816070,0.8174,"Ibn ‘Umar said : The Messenger of Allah(may peace be upon him) prescribed as zakat payable by slave and freeman, male and female, among the muslims on closing the fast of Ramadan one sa of dried dates or one sa’ of barley. (This tradition was read out byu ‘Abd Allah b. Maslamah to Malik)" +ramadan,nomic,4,ahmad,163,5001630,0.813,"Abu ‘Ubaid said: I was present at Eid with ‘Umar, and he started with the prayer before the khutbah. He said: The Messenger of Allah ﷺ forbade fasting on these two days. The day of al-Fitr is the day when you break your fast, and on the day of al-Adha, eat the meat of your sacrifices." +ramadan,nomic,5,malik,629,406310,0.8107,"

Yahya related to me from Malik from Nafi from Abdullah ibn Umar that the Messenger of Allah, may Allah bless him and grant him peace, made the zakat of breaking the fast at the end of Ramadan obligatory on every muslim, whether freeman or slave, male or female, and stipulated it as a sa' of dates or a sa' of barley.

" +ramadan,nomic,6,abudawud,1357,813520,0.8107,"Narrated Ibn 'Abbas: I spent a night in the house of my maternal aunt Maimunah, daughter of al-Harith. The Prophet (saws) offered the night prayer. He then came and prayed four rak'ahs and slept. He then stood up and prayed. I stood at his left side. He made me go round and made me stand at his right side. He then prayed five rak'ahs and slept, and I heard his snoring. He then got up and prayed two rak'ahs. Afterwards he came out and offered the dawn prayer." +ramadan,nomic,7,mishkat,2048,5770910,0.8106,Abu Sa'id al-Khudri said God’s messenger forbade fasting on the day of breaking the fast of Ramadan and on the day of sacrifice. (Bukhari and Muslim.) +ramadan,nomic,8,muslim,979 a,221340,0.81,"

Abu Sa'id al-Khudri reported Allah's Messenger (way peace be upon him) as saying: No sadaqa (zakat) is payable on less than five wasqs of (dates or grains), on less than five camel-heads and on less than five uqiyas (of silver)." +ramadan,nomic,9,malik,,407060,0.8099,"

Malik said, ""There is no harm in someone who is in itikaf entering into a marriage contract as long as there is no physical relationship. A woman in itikaf may also be betrothed as long as there is no physical relationship. What is haram for someone in itikaf in relation to his womenfolk during the day is haram for him during the night.""

Yahya said that Ziyad said that Malik said, ""It is not halal for a man to have intercourse with his wife while he is in itikaf, nor for him to…" +ramadan,nomic,10,muslim,1167 a,226250,0.8096,"

Abu Sa'id al-Khudri (Allah be pleased with him) reported that Allah's Messenger (may peace be upon him) spent in devotion (in i'tikaf) the middle ten nights of the month of Ramadan, and when twenty nights were over and it was the twenty-first night, he went back to his residence and those who were along with him also returned (to their respective residences). He spent one month in devotion. Then he addressed the people on the night he came back (to his residence) and commanded them as Allah…" +ramadan,mxbai,1,muslim,1080 e,223670,0.8869,"

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and if the sky is cloudy for you, then calculate." +ramadan,mxbai,2,muslim,1080 f,223680,0.882,"

'Abdullah b. 'Umar (Allah be pleased with both of them) reported Allah's Messenger (may peace be upon him) as saying: The month (of Ramadan) may consist of twenty nine days; so when you see the new moon observe fast and when you see (the new moon again at the commencement of the month of Shawwal) then break It, and if the sky is cloudy for you, then calculate it (and complete thirty days)." +ramadan,mxbai,3,muslim,1163 a,226110,0.8815,"

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night." +ramadan,mxbai,4,bukhari,1900,17860,0.8801,"

Narrated Ibn `Umar:

I heard Allah's Apostle saying, ""When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting; and if the sky is overcast (and you can't see it) then regard the month of Ramadan as of 30 days.""" +ramadan,mxbai,5,mishkat,2047,5770900,0.8797,"Abu Ayyub al-Ansari told that God’s messenger said, “If anyone fasts during Ramadan, then follows it with six days in Shawwal, it will be like a perpetual fast.” Muslim transmitted it." +ramadan,mxbai,6,mishkat,1817,5760460,0.8785,"Ibn 'Abbas said, “At the end of Ramadan bring forth the sadaqa relating to your fast. God's messenger prescribed this sadaqa as a sa' of dried dates or barley, or half a sa' of wheat payable by every free¬man or slave, male or female, young or old."" Abu Dawud and Nasa’i transmitted it." +ramadan,mxbai,7,riyadussalihin,1167,1622110,0.8784,"Abu Hurairah (May Allah be pleased with him) reported: The Messenger of Allah (PBUH) said, ""The best month for observing Saum (fasting) after Ramadan is Muharram, and the best Salat after the prescribed Salat is Salat at night.""

[Muslim].

" +ramadan,mxbai,8,muslim,1116 a,224770,0.8783,"

Abu Sa'id al-Khudri (Allah be pleased with him) reported: We went out on an expedition with Allah's Messenger (may peace be upon him) on the 16th of Ramadan. Some of us fasted and some of us broke the fast. But neither the observer of the fast found fault with one who broke it, nor the breaker of the fast found fault with one who observed it." +ramadan,mxbai,9,muslim,1081 a,223780,0.878,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days." +ramadan,mxbai,10,riyadussalihin,1225,1622690,0.876,"Ibn 'Abbas (May Allah be pleased with them) reported: The Messenger of Allah (PBUH) said, ""Do not observe Saum (fasting) before the advent of Ramadan. Observe Saum at sighting of the crescent of Ramadan and terminate it at sighting the crescent (of Shawwal). If the sky is overcast, complete (the month as) thirty (days).""

[At- Tirmidhi].

" +jesus,lexical,1,bukhari,5731,53750,14.4796,"

Narrated Abu Huraira:

Allah's Apostle said, ""Neither Messiah (Ad-Dajjal) nor plague will enter Medina.""" +jesus,lexical,2,bukhari,3444,32170,14.4156,"

Narrated Abu Huraira:

The Prophet said, ""Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus said, 'I believe in Allah and suspect my eyes.""" +jesus,lexical,3,bukhari,3438,32120,14.4027,"

Narrated Ibn `Abbas:

The Prophet said, ""I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of brown complexion, straight hair and tall stature as if he was from the people of Az-Zutt.""" +jesus,lexical,4,bukhari,3948,36900,14.2731,

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. +jesus,lexical,5,muslim,2368,258400,14.2555,

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person committing theft; thereupon Jesus said to him: You committed theft. He said: Nay. By Him besides Whom there is no god (I have not committed theft). Thereupon Jesus said: I affirm my faith in Allah It is my ownself that deceived me. +jesus,lexical,6,muslim,2365 b,258350,14.2286,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to one religion and no Prophet was raised between me and Jesus." +jesus,lexical,7,bukhari,1882,17680,14.0567,"

Narrated Abu Sa`id Al-Khudri:

Allah's Apostle told us a long narrative about Ad-Dajjal, and among the many things he mentioned, was his saying, ""Ad-Dajjal will come and it will be forbidden for him to pass through the entrances of Medina. He will land in some of the salty barren areas (outside) Medina; on that day the best man or one of the best men will come up to him and say, 'I testify that you are the same Dajjal whose description was given to us by Allah's Apostle .' Ad-Dajjal will…" +jesus,lexical,8,bukhari,7132,67020,14.0567,"

Narrated Abu Sa`id:

One day Allah's Apostle narrated to us a long narration about Ad-Dajjal and among the things he narrated to us, was: ""Ad-Dajjal will come, and he will be forbidden to enter the mountain passes of Medina. He will encamp in one of the salt areas neighboring Medina and there will appear to him a man who will be the best or one of the best of the people. He will say 'I testify that you are Ad-Dajjal whose story Allah's Apostle has told us.' Ad-Dajjal will say (to his…" +jesus,lexical,9,bukhari,3449,32220,14.0057,"

Narrated Abu Huraira:

Allah's Apostle said ""How will you be when the son of Mary (i.e. Jesus) descends amongst you and your imam is among you.""" +jesus,lexical,10,muslim,1677 b,241570,13.9986,

This hadith has been narrated on the authority of Jarir and 'Isa b. Yunus with a slight variation of words. +jesus,openai-small-en,1,bukhari,3444,32170,0.6949,"

Narrated Abu Huraira:

The Prophet said, ""Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus said, 'I believe in Allah and suspect my eyes.""" +jesus,openai-small-en,2,muslim,2937 a,270150,0.6918,"

An-Nawwas b. Sam`an reported that Allah's Messenger (may peace be upon him) made a mention of the Dajjal one day in the morning. He (saws) sometimes described him to be insignificant and sometimes described (his turmoil) as very significant (and we felt) as if he were in the cluster of the date-palm trees. When we went to him (to the Holy Prophet) in the evening and he read (the signs of fear) in our faces, he (saws) said: What is the matter with you? We said: Allah's Messenger, you made a…" +jesus,openai-small-en,3,mishkat,5716,5972920,0.6859,"Abu Huraira reported God's messenger as saying, ""On the night when I was taken up to heaven, I met Moses who may be described as a lanky man with somewhat curly hair who resembled one of the men of Shanu'a; I met Jesus who was of medium height and red as though he had come out of a dimas (i.e., a hot bath); and I saw Abraham to whom I am the one among his descendants who bears the closest resemblance. I was brought two vessels, one containing milk and the other wine, and was told to take…" +jesus,openai-small-en,4,bukhari,3448,32210,0.6841,"

Narrated Abu Huraira:

Allah's Apostle said, ""By Him in Whose Hands my soul is, surely (Jesus,) the son of Mary will soon descend amongst you and will judge mankind justly (as a Just Ruler); he will break the Cross and kill the pigs and there will be no Jizya (i.e. taxation taken from non Muslims). Money will be in abundance so that nobody will accept it, and a single prostration to Allah (in prayer) will be better than the whole world and whatever is in it."" Abu Huraira added ""If you…" +jesus,openai-small-en,5,muslim,2897,269240,0.6785,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The Last Hour would not come until the Romans would land at al-A'maq or in Dabiq. An army consisting of the best (soldiers) of the people of the earth at that time will come from Medina (to counteract them). When they will arrange themselves in ranks, the Romans would say: Do not stand between us and those (Muslims) who took prisoners from amongst us. Let us fight with them; and the Muslims would say: Nay, by Allah,…" +jesus,openai-small-en,6,muslim,2365 c,258360,0.6774,"

Abu Huraira reported many ahadith from Allah's Messenger (may peace be upon him) and one is that Allah's Messenger (may peace be upon him) said: I am most close to Jesus, son of Mary, among the whole of mankind in this worldly life and the next life. They said: Allah's Messenger how is it? Thereupon he said: Prophets are brothers in faith, having different mothers. Their religion is, however, one and there is no Apostle between us (between I and Jesus Christ)." +jesus,openai-small-en,7,muslim,2365 b,258350,0.6765,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to one religion and no Prophet was raised between me and Jesus." +jesus,openai-small-en,8,abudawud,4324,843100,0.6757,"

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down from his head though it will not be wet. He will fight the people for the cause of Islam. He will break the cross, kill swine, and abolish jizyah. Allah will perish all religions except Islam. He…" +jesus,openai-small-en,9,mishkat,2288,5790640,0.6753,"Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the Mighty, the Overpowering, the Great in Majesty, the Creator, the Maker, the Fashioner, the Forgiver, the Dominant, the Bestower, the Provider, the Decider, the Knower, the Withholder, the Plentiful…" +jesus,openai-small-en,10,mishkat,5608,5971830,0.6739,"Hudhaifa and Abu Huraira reported God's messenger as saying, ""God who is blessed and exalted will collect mankind and the believers will stand till paradise is brought near them. They will then go to Adam and say, `Ask, father, that paradise may be opened for us,' but he will reply, `Has anything but your father's sin put you out of paradise? I am not the one to do that; go to my son Abraham, God's friend.' Then Abraham will say, `I am not the one to do that, for I was only a friend long, long…" +jesus,nomic,1,mishkat,1214,5746270,0.7989,"‘A’isha told how God’s Messenger said when he awoke during the night, “There is no god but Thee. Glory be to Thee, O God, and praise be to Thee. I ask for Thy forgiveness of my sin, and I ask for Thy mercy. O God, increase me in knowledge, and do not let my heart swerve after Thou hast guided me. Grant me mercy from Thyself. Thou art indeed the munificent One.” Abu Dawud transmitted it." +jesus,nomic,2,bukhari,1209,11380,0.7957,"

Narrated Aisha:

I used to stretch my legs towards the Qibla of the Prophet while he was praying; whenever he prostrated he touched me, and I would withdraw my legs, and whenever he stood up, I would restretch my legs." +jesus,nomic,3,bukhari,3392,31690,0.7952,"

Narrated `Aisha:

The Prophet returned to Khadija while his heart was beating rapidly. She took him to Waraqa bin Naufal who was a Christian convert and used to read the Gospels in Arabic Waraqa asked (the Prophet), ""What do you see?"" When he told him, Waraqa said, ""That is the same angel whom Allah sent to the Prophet) Moses. Should I live till you receive the Divine Message, I will support you strongly.""" +jesus,nomic,4,muslim,196 c,203830,0.792,

Anas b. Malik said: The Apostle of Allah (may peace be upon him) said: I would be the first intercessor in the Paradise and no apostle amongst the apostles has been testified (by such a large number of people) as I have been testified. And verily there woald be an apostle among the apostles who would be testified to by only one man from his people. +jesus,nomic,5,muslim,201,203960,0.7917,"

Abu Zubair heard Jabir b. Abdullah reporting it from the Apostle of Allah (may peace be upon him): For every apostle was a prayer with which he prayed (to his Lord) for his Ummah, but I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection." +jesus,nomic,6,bukhari,516,4980,0.7907,"

Narrated Abu Qatada Al-Ansari:

Allah's Apostle was praying and he was carrying Umama the daughters of Zainab, the daughter of Allah's Apostle and she was the daughter of 'As bin Rabi`a bin `Abd Shams. When he prostrated, he put her down and when he stood, he carried her (on his neck)." +jesus,nomic,7,bulugh,226,2002740,0.7903,"Narrated Abu Qatada (RA): Allah's Messenger (SAW) was (one time) offering prayer while he was carrying Umama, daughter of Zainab, when he prostrated he put her down and when he stood up he lifted her up. [Agreed upon]." +jesus,nomic,8,mishkat,936,5743580,0.7895,"Ruwaih' reported God’s Messenger as saying, “If anyone invokes a blessing on Muhammad saying, ‘O God, cause him to occupy the place near Thee on the day of resurrection’, he will be guaranteed my intercession.” Ahmad transmitted it." +jesus,nomic,9,mishkat,5572,5971500,0.7893,"Anas reported the Prophet as saying, ""The believers will be restrained on the day of resurrection so that they will be concerned about that and express a desire to find an intercessor with their Lord that He may relieve them from the position in which they are placed. They will go to Adam and say, `You are Adam, the father of mankind, whom God created by His hand, whom He caused to dwell in His garden, to whom He made the angels do obeisance, and whom He taught the names of everything.…" +jesus,nomic,10,muslim,200 a,203920,0.789,

Anas b. Malik reported: Verily the Apostle of Allah (may peace be upon him) said: There is for every apostle a prayer with which he prays (to Allah) for his Ummah. I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection. +jesus,mxbai,1,abudawud,4324,843100,0.826,"

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down from his head though it will not be wet. He will fight the people for the cause of Islam. He will break the cross, kill swine, and abolish jizyah. Allah will perish all religions except Islam. He…" +jesus,mxbai,2,mishkat,2288,5790640,0.8246,"Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the Mighty, the Overpowering, the Great in Majesty, the Creator, the Maker, the Fashioner, the Forgiver, the Dominant, the Bestower, the Provider, the Decider, the Knower, the Withholder, the Plentiful…" +jesus,mxbai,3,bukhari,3438,32120,0.8234,"

Narrated Ibn `Abbas:

The Prophet said, ""I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of brown complexion, straight hair and tall stature as if he was from the people of Az-Zutt.""" +jesus,mxbai,4,muslim,194 a,203780,0.8198,"

Abu Huraira reported: Meat was one day brought to the Messenger of Allah (may peace be upon him) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of it and said: I shall be the leader of mankind on the Day of Resurrection. Do you know why? Allah would gather in one plain the earlier and the later (of the human race) on the Day of Resurrection. Then the voice of the proclaimer would be heard by all of them and the eyesight would penetrate through…" +jesus,mxbai,5,riyadussalihin,1866,1616560,0.8194,"Abu Huraira reported: Meat was one day brought to the Messenger of Allah (ﷺ) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of it and said: I shall be the leader of mankind on the Day of Resurrection. Do you know why? Allah would gather in one plain the earlier and the later (of the human race) on the Day of Resurrection. Then the voice of the proclaimer would be heard by all of them and the eyesight would penetrate through all of them and the sun…" +jesus,mxbai,6,mishkat,1897,5761250,0.8186,"‘A’isha reported God’s messenger as saying, “Everyone of the children of Adam has been created with three hundred and sixty joints, so he who declares God’s greatness, praises God, declares that He is the only God, glorifies God, asks forgiveness of God, removes a stone, a thorn, or a bone from people’s path, enjoins what is reputable, or forbids what is objectionable to the number of those three hundred and sixty, will walk that day having removed himself from hell.” Muslim transmitted it." +jesus,mxbai,7,abudawud,4641,846240,0.8183,‘Awf said: I heard al-Hajjaj addressing the people say: The similitude of ‘Uthman with Allah is like the similitude of Jesus son of Mary. He then recited the following verse and explained it: “Behold! Allah said: O Jesus! I will take thee and raise thee to Myself and clear thee (of the falsehood) of those who blaspheme.” He was making a sign with his hand to us and to the people of Syria. +jesus,mxbai,8,muslim,2368,258400,0.8175,

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person committing theft; thereupon Jesus said to him: You committed theft. He said: Nay. By Him besides Whom there is no god (I have not committed theft). Thereupon Jesus said: I affirm my faith in Allah It is my ownself that deceived me. +jesus,mxbai,9,bukhari,7510,70600,0.8169,"

Narrated Ma`bad bin Hilal Al-`Anzi:

We, i.e., some people from Basra gathered and went to Anas bin Malik, and we went in company with Thabit Al-Bunnani so that he might ask him about the Hadith of Intercession on our behalf. Behold, Anas was in his palace, and our arrival coincided with his Duha prayer. We asked permission to enter and he admitted us while he was sitting on his bed. We said to Thabit, ""Do not ask him about anything else first but the Hadith of Intercession."" He said, ""O…" +jesus,mxbai,10,bukhari,3441,32140,0.816,"

Narrated Salim from his father:

No, By Allah, the Prophet did not tell that Jesus was of red complexion but said, ""While I was asleep circumambulating the Ka`ba (in my dream), suddenly I saw a man of brown complexion and lank hair walking between two men, and water was dropping from his head. I asked, 'Who is this?' The people said, 'He is the son of Mary.' Then I looked behind and I saw a red-complexioned, fat, curly-haired man, blind in the right eye which looked like a bulging out…" +sex,lexical,1,bukhari,7379,69320,15.8248,"

Narrated Ibn `Umar:

The Prophet said, ""The keys of the unseen are five and none knows them but Allah: (1) None knows (the sex) what is in the womb, but Allah: (2) None knows what will happen tomorrow, but Allah; (3) None knows when it will rain, but Allah; (4) None knows where he will die, but Allah (knows that); (5) and none knows when the Hour will be established, but Allah.""" +sex,lexical,2,ibnmajah,4045,1291450,12.553,"It was narrated that Anas bin Malik said: “Shall I not tell you a Hadith that I heard from the Messenger of Allah (saw), which no one will tell you after me? I heard it from him (saying): ‘Among the portents of the Hour are that knowledge will be taken away and ignorance will prevail, illegal sex will become widespread and wine will be drunk, and men will disappear and women will be left, until there is one man in charge of fifty women.”" +sex,lexical,3,muslim,1453 c,234260,12.3963,"

Ibn Abu Mulaika reported that al-Qasim b. Muhammad b. Abu Bakr had narrated to him that 'A'isha (Allah be pleased with her) reported that Sahla bint Suhail b. 'Amr came to Allah's Apostle (may peace be upon him) and said: Messenger of Allah, Salim (the freed slave of Abu Hudhaifa) is living with us in our house, and he has attained (puberty) as men attain it and has acquired knowledge (of the sex problems) as men acquire, whereupon he said: Suckle him so that he may become unlawful (in…" +sex,lexical,4,ibnmajah,2694,1270110,12.2945,"Mu'adh bin Jabal, Abu Ubaidah bin Jararah, Ubadah bin Samit and Shaddad bin Aws narrated that the Messenger of Allah (SAW) said: “If a woman kills someone deliberately, she should not be killed until she delivers what is in her womb, if she is pregnant, and until the child's sponsorship is guaranteed. And if a woman commits illegal sex, she should not be stoned until she delivers what is in her womb and until her child's sponsorship is guaranteed.”" +sex,lexical,5,ibnmajah,2574,1268910,11.0722,"It was narrated that Sa'eed bin Sa'd bin `Ubadah said: “There was a man living among our dwellings who had a physical defect, and to our astonishment he was seen with one of the slave women of the dwellings, committing illegal sex with her. Sa'd bin 'Ubadah referred his case to the Messenger of Allah (SAW), who said: 'Give him one hundred lashes.' They said: 'O Prophet (SAW) of Allah (SAW), he is too weak to bear that. If we give him one hundred lashes he will die.' He said: “Then take a branch…" +sex,openai-small-en,1,bukhari,1545,14560,0.6616,"

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they may leave the scent on the skin. And so in the early morning, the Prophet mounted his Mount while in Dhul-Hulaifa and set out till they reached Baida', where he and his companions recited Talbiya, and…" +sex,openai-small-en,2,malik,1824,418780,0.6498,"

Malik related to me from Zayd ibn Aslam from Ata ibn Yasar that the Messenger of Allah, may Allah bless him and grant him peace, said, ""Whomever Allah protects from the evil of two things will enter the Garden."" A man said, ""Messenger of Allah, do not tell us!"" The Messenger of Allah, may Allah bless him and grant him peace, was silent. Then the Messenger of Allah, may Allah bless him and grant him peace, repeated what he had said the first time. The man said to him, ""Do not tell us,…" +sex,openai-small-en,3,bulugh,1012,2012600,0.6451,"Sa'id (bin Mansur) also reported something similar from 'Ali (RA) and added: ""And (if) she has something like a horn (Qarn) (coming out of her vagina), her husband then has the right to divorce her or keep her. And if he had intercourse with her, she gets her dowry for the intercourse her husband has had.""" +sex,openai-small-en,4,mishkat,3190,5831050,0.6449,"Abu Sa'id al-Khudri reported God's Messenger as saying, “The most serious breach of trust in God’s sight on the day of resurrection ...” A version has, “Among those who will have the worst position in God’s sight on the day of resurrection is the man who has intercourse with his wife, and she with him, and then spreads her secret.”* * i.e. talks about the subject to others, or tells people about defects or beauties he has found in her. Muslim transmitted it." +sex,openai-small-en,5,mishkat,3341,5832530,0.6443,"Ibn ‘Umar said that when a girl with whom intercourse might be had was given as a present, or sold, or set free, it was necessary to wait till she had had a menstrual period, but that this was unnecessary in the case of a virgin. Razin transmitted." +sex,openai-small-en,6,muslim,1435 a,233630,0.6418,"

Jabir (Allah be pleased with him) declared that the Jews used to say: When a man has intercourse with his wife through the vagina but being on her back. the child will have squint, so the verse came down:"" Your wives are your tilth; go then unto your tilth as you may desire"" (ii. 223)" +sex,openai-small-en,7,mishkat,86,5710800,0.6409,"Abu Huraira reported God's messenger as saying, “God has decreed for man his portion of fornication which he will inevitably commit. The fornication of the eye consists in looking, and of the tongue in speech. The soul wishes and desires, and the private parts accord with that or reject it.” (Bukhari and Muslim.) In a version by Muslim he said, “Man’s share of fornication which he will inevitably commit is decreed for him. The fornication of the eyes consists in looking, of the ears in hearing,…" +sex,openai-small-en,8,malik,1135,411670,0.6395,"

Yahya related to me from Malik from Ibn Shihab, and he had heard from al-Qasim ibn Muhammad that they said, ""When a free man marries a slave-girl and consummates the marriage, she makes him muhsan.""

Malik said, ""All (of the people of knowledge) I have seen said that a slave-girl makes a free man muhsan when he marries her and consummates the marriage.""

Malik said, ""A slave makes a free woman muhsana when he consummates a marriage with her and a free woman only makes a…" +sex,openai-small-en,9,muslim,1438 a,233710,0.6379,"

Abu Sirma said to Abu Sa'id al Khadri (Allah he pleased with him): 0 Abu Sa'id, did you hear Allah's Messenger (may peace be upon him) mentioning al-'azl? He said: Yes, and added: We went out with Allah's Messenger (may peace be upon him) on the expedition to the Bi'l-Mustaliq and took captive some excellent Arab women; and we desired them, for we were suffering from the absence of our wives, (but at the same time) we also desired ransom for them. So we decided to have sexual intercourse…" +sex,openai-small-en,10,bukhari,6818,64180,0.6361,"

Narrated Abu Huraira:

The Prophet said, ""The boy is for (the owner of) the bed and the stone is for the person who commits illegal sexual intercourse.'" +sex,nomic,1,mishkat,3143,5830620,0.8485,"‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful."" (Bukhari and Muslim.)" +sex,nomic,2,muslim,348 a,206820,0.8351,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." +sex,nomic,3,bulugh,995,2012380,0.8327,"Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, ""The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)."" [Agreed upon]." +sex,nomic,4,bulugh,119,2001460,0.8325,"Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through the roots of the hair. Then he would pour three handfuls on his head, then pour water over the rest of his body and subsequently wash his feet. [Agreed upon and this version is of Muslim]" +sex,nomic,5,bulugh,110,2001320,0.8277,"Narrated Abu Huraira (rad): Allah’s Messenger (saw) said that, “If one of you sits between her legs (of a woman) and penetrates her, Ghusl (bath) is obligatory.” [Agreed upon]." +sex,nomic,6,muslim,1418,233020,0.8261,"

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word"" condition"" ) it is"" conditions""." +sex,nomic,7,abudawud,265,802650,0.826,"Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given)" +sex,nomic,8,muslim,346 b,206780,0.8254,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." +sex,nomic,9,bulugh,117,2001430,0.8218,"Narrated Abu Sa’id Al-Khudri (rad): Allah’s Messenger (saw) said, “If one of you has sexual intercourse with his wife and wishes to repeat he should perform ablution between them” [Reported by Muslim]." +sex,nomic,10,muslim,321 c,206290,0.8205,

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. +sex,mxbai,1,bulugh,117,2001440,0.8391,A-Hakim added: “Ablution makes one active for repeating (the sexual act).” +sex,mxbai,2,muslim,321 c,206290,0.8145,

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. +sex,mxbai,3,muslim,348 a,206820,0.8112,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." +sex,mxbai,4,bukhari,1545,14560,0.8087,"

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they may leave the scent on the skin. And so in the early morning, the Prophet mounted his Mount while in Dhul-Hulaifa and set out till they reached Baida', where he and his companions recited Talbiya, and…" +sex,mxbai,5,mishkat,3143,5830620,0.8082,"‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful."" (Bukhari and Muslim.)" +sex,mxbai,6,abudawud,265,802650,0.8081,"Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given)" +sex,mxbai,7,mishkat,330,5730430,0.8072,"Ibn ‘Umar used to say, “A man’s kiss to his wife and his touching her with his hand are connected with sexual intercourse, and anyone who kisses his wife or touches her with his hand must perform ablution.” Malik and Shafi‘i transmitted it." +sex,mxbai,8,muslim,1418,233020,0.8048,"

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word"" condition"" ) it is"" conditions""." +sex,mxbai,9,bukhari,293,2930,0.804,"

Narrated Ubai bin Ka`b:

I asked Allah's Apostle about a man who engages in sexual intercourse with his wife but does not discharge. He replied, ""He should wash the parts which comes in contact with the private parts of the woman, perform ablution and then pray."" (Abu `Abdullah said, ""Taking a bath is safer and is the last order."")" +sex,mxbai,10,muslim,346 b,206780,0.8031,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." +marriage,lexical,1,bukhari,6968,65540,19.7524,"

Narrated Abu Huraira:

The Prophet said, ""A virgin should not be married till she is asked for her consent; and the matron should not be married till she is asked whether she agrees to marry or not."" It was asked, ""O Allah's Apostle! How will she (the virgin) express her consent?"" He said, ""By keeping silent."" Some people said that if a virgin is not asked for her consent and she is not married, and then a man, by playing a trick presents two false witnesses that he has married her with…" +marriage,lexical,2,bukhari,6970,65560,19.6176,"

Narrated Abu Haraira:

Allah's Apostle said, ""A lady slave should not be given in marriage until she is consulted, and a virgin should not be given in marriage until her permission is granted."" The people said, ""How will she express her permission?"" The Prophet said, ""By keeping silent (when asked her consent)."" Some people said, ""If a man, by playing a trick, presents two false witnesses before the judge to testify that he has married a matron with her consent and the judge confirms his…" +marriage,lexical,3,bukhari,5138,48080,19.6031,

Narrated Khansa bint Khidam Al-Ansariya:

that her father gave her in marriage when she was a matron and she disliked that marriage. So she went to Allah's Apostle and he declared that marriage invalid. +marriage,lexical,4,bukhari,6961,65470,19.5531,"

Narrated Muhammad bin `Ali:

`Ali was told that Ibn `Abbas did not see any harm in the Mut'a marriage. `Ali said, ""Allah's Apostle forbade the Mut'a marriage on the Day of the battle of Khaibar and he forbade the eating of donkey's meat."" Some people said, ""If one, by a tricky way, marries temporarily, his marriage is illegal."" Others said, ""The marriage is valid but its condition is illegal.""" +marriage,lexical,5,bukhari,6945,65330,19.4861,"

Narrated Khansa' bint Khidam Al-Ansariya:

That her father gave her in marriage when she was a matron and she disliked that marriage. So she came and (complained) to the Prophets and he declared that marriage invalid. (See Hadith No. 69, Vol. 7)" +marriage,lexical,6,bukhari,1837,17250,19.3925,"

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held)." +marriage,lexical,7,bukhari,5148,48170,19.2407,"

Narrated Anas:

`Abdur Rahman bin `Auf married a woman and gave her gold equal to the weight of a date stone (as Mahr). When the Prophet noticed the signs of cheerfulness of the marriage (on his face) and asked him about it, he said, ""I have married a woman and gave (her) gold equal to a date stone in weight (as Mahr)." +marriage,lexical,8,muslim,1406 j,232602,19.2056,"

This hadith has been narrated on the authority of Rabi' b. Sabra that Allah's Messenger (may peace be upon him) forbade to contract temporary marriage with women at the time of Victory, and that his father had contracted the marriage for two red cloaks." +marriage,lexical,9,bukhari,5109,47840,19.132,"

Narrated Abu Huraira:

Allah's Apostle said, ""A woman and her paternal aunt should not be married to the same man; and similarly, a woman and her maternal aunt should not be married to the same man.""" +marriage,lexical,10,bukhari,4258,39651,19.132,

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of lhram but he consummated that marriage after finishing that state. Maimuna died at Saraf (i.e. a place near Mecca). +marriage,openai-small-en,1,ibnmajah,1847,1261640,0.7042,"It was narrated from Ibn Abbas that: the Messenger of Allah said: “There is nothing like marriage, for two who love one another.”" +marriage,openai-small-en,2,abudawud,2272,822650,0.7,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till… +marriage,openai-small-en,3,bukhari,5127,47975,0.6987,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. ""Send for so-and-so and have sexual…" +marriage,openai-small-en,4,malik,,414990,0.6956,"

Yahya said that he heard Malik say, ""The way of doing things in our community about which there is no dispute, is that if a man gives sadaqa to his son - sadaqa which the son takes possession of or which is in the father's keeping and the father has had his sadaqa witnessed, he cannot take back any of it because he cannot reclaim any sadaqa.""

Yahya said that he heard Malik say, ""The generally agreed-on way of doing things in our community in the case of someone who gives his son a…" +marriage,openai-small-en,5,abudawud,2130,821250,0.689,"

Narrated AbuHurayrah:

When the Prophet (saws) congratulated a man on his marriage, he said: May Allah bless for you, and may He bless on you, and combine both of you in good (works).

" +marriage,openai-small-en,6,tirmidhi,1101,671000,0.6872,"Abu Musa narrated that : the Messenger of Allah said: ""There is no marriage except with a Wali.""" +marriage,openai-small-en,7,ibnmajah,1846,1261630,0.687,"It was narrated from Aishah that: the Messenger of Allah said: “Marriage is part of my sunnah, and whoever does not follow my sunnah has nothing to do with me. Get married, for I will boast of your great numbers before the nations. Whoever has the means, let him get married, and whoever does not, then he should fast for it will diminish his desire.”" +marriage,openai-small-en,8,mishkat,3093,5830140,0.6862,"Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted." +marriage,openai-small-en,9,muslim,1405 d,232490,0.6861,

Jabir b. 'Abdullah reported: We contracted temporary marriage giving a handful of (tales or flour as a dower during the lifetime of Allah's Messenger (may peace be upon him) and durnig the time of Abu Bakr until 'Umar forbade it in the case of 'Amr b. Huraith. +marriage,openai-small-en,10,bukhari,5150,48190,0.6859,"

Narrated Sahl bin Sa`d:

The Prophet said to a man, ""Marry, even with (a Mahr equal to) an iron ring.""" +marriage,nomic,1,bulugh,993,2012360,0.8659,Narrated Ibn 'Abbas (RA): The Prophet (SAW) married Maimunah (RA) when he was in the state of Ihram (during pilgrimage). [Agreed upon]. +marriage,nomic,2,mishkat,2682,5815560,0.8642,Ibn ‘Abbas said that the Prophet married Maimuna when he was on pilgrimage. Bukhari and Muslim. +marriage,nomic,3,bukhari,1837,17250,0.8626,"

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held)." +marriage,nomic,4,bukhari,5114,47880,0.8606,

Narrated Ibn `Abbas:

The Prophet got married while he was in the state of Ihram. +marriage,nomic,5,mishkat,3093,5830140,0.8564,"Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted." +marriage,nomic,6,abudawud,2272,822650,0.8557,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till… +marriage,nomic,7,bukhari,5127,47975,0.8551,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. ""Send for so-and-so and have sexual…" +marriage,nomic,8,bukhari,5261,49270,0.8543,"

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, ""No, she cannot marry the first husband unless the second husband consummates his marriage with her, just as the first husband had done.""" +marriage,nomic,9,ibnmajah,1991,1263100,0.8543,"It was narrated from 'Abdul-Malik bin Harith bin Hisham, from his father, that: the Prophet married Umm Salamah in Shawwal, and consummated the marriage with her in Shawwal." +marriage,nomic,10,abudawud,2047,820430,0.8542,"Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).”" +marriage,mxbai,1,forty,21,1430210,0.8446,A man will be with whom he loves. +marriage,mxbai,2,abudawud,2047,820430,0.8333,"Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).”" +marriage,mxbai,3,bulugh,967,2011910,0.8322,"Narrated 'Abdullah bin Mas'ud (RA): Allah's Messenger (SAW) said to us, ""O young men, those of you who can support a wife should marry, for it (marriage) controls the gaze and preserves one from immorality. And whoever cannot (marry) should fast, for it is a means of reducing the sexual desire."" [Agreed upon]." +marriage,mxbai,4,bukhari,2721,25460,0.831,"

Narrated `Uqba bin Amir:

Allah's Apostle said, ""From among all the conditions which you have to fulfill, the conditions which make it legal for you to have sexual relations (i.e. the marriage contract) have the greatest right to be fulfilled.""" +marriage,mxbai,5,bulugh,1127,2014020,0.829,"Narrated 'Aishah (RA): Allah's Messenger (SAW) said, ""One or two sucks do not make (marriage) unlawful."" [Muslim reported it]." +marriage,mxbai,6,bukhari,5090,47660,0.8282,"

Narrated Abu Huraira:

The Prophet said, ""A woman is married for four things, i.e., her wealth, her family status, her beauty and her religion. So you should marry the religious woman (otherwise) you will be a losers." +marriage,mxbai,7,bulugh,995,2012380,0.8278,"Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, ""The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)."" [Agreed upon]." +marriage,mxbai,8,bukhari,5119,47912,0.8278,"Salama bin Al-Akwa` said: Allah's Apostle's said, ""If a man and a woman agree (to marry temporarily), their marriage should last for three nights, and if they like to continue, they can do so; and if they want to separate, they can do so."" I do not know whether that was only for us or for all the people in general. Abu `Abdullah (Al-Bukhari) said: `Ali made it clear that the Prophet said, ""The Mut'a marriage has been cancelled (made unlawful)." +marriage,mxbai,9,tirmidhi,1084,670830,0.8271,"Abu Hurairah narrated that: The Messenger of Allah said: ""When someone whose religion and character you are pleased with proposes to (someone under the care) of one of you, then marry to him. If you do not do so, then there will be turmoil (Fitnah) in the land and abounding discord (Fasad).""" +marriage,mxbai,10,bulugh,1034,2012880,0.827,It is a portion of the long Hadith preceding in the beginning of the Book of Marriage. +masturbation,openai-small-en,1,muslim,348 a,206820,0.6782,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." +masturbation,openai-small-en,2,ibnmajah,480,1254790,0.6765,"It was narrated that Jabir bin 'Abdullah said: ""The Messenger of Allah said: 'If anyone of you touches his penis, then he has to perform ablution.'""" +masturbation,openai-small-en,3,abudawud,206,802060,0.6758,"‘Ali said: My prostatic fluid flowed excessively. I used to take a bath until my back cracked (because of frequent washing). I mentioned it to the prophet (May peace be upon him), or the fact was mentioned to him (by someone else). The Messenger of Allah (May peace be upon him) said; Do not do so. When you find prostatic fluid, wash your penis and perform ablution as you do for your prayer, but when you have seminal emission, you should take a bath." +masturbation,openai-small-en,4,muslim,346 b,206780,0.6745,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." +masturbation,openai-small-en,5,bulugh,72,2000870,0.6735,"Narrated Talq bin ‘Ali (rad): A man said: “I touched my penis” or he said, “Does a man who touch his penis during the prayer should perform Wudu (ablution)?” The Prophet (saw) replied, “No, it is only a part of your body”. [Reported by Al-Khamsa. Ibn Hibban graded it Sahih (sound)." +masturbation,openai-small-en,6,abudawud,211,802110,0.6727,

Narrated Abdullah ibn Sa'd al-Ansari:

I asked the Messenger of Allah (saws) as to what makes it necessary to take a bath and about the (prostatic) fluid that flows after taking a bath. He replied: that is called madhi (prostatic fluid). It flows from every male. You should wash your private parts and testicles because of it and perform ablution as you do for prayer.

+masturbation,openai-small-en,7,ibnmajah,479,1254780,0.6695,"It was narrated that Busrah bint Safwan said: ""The Messenger of Allah said: 'If anyone of you touches his penis, let him perform ablution.'""" +masturbation,openai-small-en,8,tirmidhi,82,660820,0.669,"Busrah bint Safwan narrated that : the Prophet said: ""Whoever touches his penis, then he is not to pray until he performs Wudu""" +masturbation,openai-small-en,9,muslim,303 c,205950,0.6684,

Ibn 'Abbas reported it from 'Ali: We sent al-Miqdad b. al-Aswad to the Messenger of Allah (may peace be upon him) to ask him what must be done about prostatic fluid which flows from (the private part of) a person. The Messenger of Allah (may peace be upon him) said: Perform ablution and wash your sexual organ. +masturbation,openai-small-en,10,bukhari,260,2610,0.6677,"

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his feet." +masturbation,nomic,1,bulugh,119,2001460,0.8129,"Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through the roots of the hair. Then he would pour three handfuls on his head, then pour water over the rest of his body and subsequently wash his feet. [Agreed upon and this version is of Muslim]" +masturbation,nomic,2,bukhari,464,4560,0.8127,"

Narrated Um Salama:

I complained to Allah's Apostle that I was sick. He told me to perform the Tawaf behind the people while riding. So I did so and Allah's Apostle was praying beside the Ka`ba and reciting the Sura starting with ""Wat-tur wa kitabin mastur.""" +masturbation,nomic,3,ahmad,847,5008470,0.8107,"It was narrated that ‘Ali (رضي الله عنه) said: I was a man who emitted a great deal of madhi. I asked the Prophet (ﷺ) and he said: “If you ejaculate, then do ghusl for janabah, and if you do not ejaculate, then do not do ghusl.”" +masturbation,nomic,4,bulugh,111,2001350,0.8105,"Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon]" +masturbation,nomic,5,bukhari,260,2610,0.8079,"

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his feet." +masturbation,nomic,6,muslim,316 d,206190,0.807,"

'Urwa has narrated it on the authority of 'A'isha that when Allah's Messenger (may peace be upon him) took a bath because of sexual intercourse, he first washed his hands before dipping one of them into the basin, and then performed ablu- tion as is done for prayer." +masturbation,nomic,7,mishkat,340,5730520,0.8065,"Abu Qatada reported God’s messenger as saying, ""When one of you drinks he must not breathe into the vessel, and when he goes to relieve himself he must not touch his penis with his right hand, or wipe himself with his right hand.” (Bukhari and Muslim.)" +masturbation,nomic,8,bukhari,258,2590,0.8061,"

Narrated `Aisha:

Whenever the Prophet took the bath of Janaba (sexual relation or wet dream) he asked for the Hilab or some other scent. He used to take it in his hand, rub it first over the right side of his head and then over the left and then rub the middle of his head with both hands." +masturbation,nomic,9,nasai,387,1003890,0.8043,"It was narrated that 'Aishah said: ""The Prophet (PBUH) would put his head out while he was performing I'tikaf and I would wash it, while I was menstruating.""" +masturbation,nomic,10,muslim,346 b,206780,0.804,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." +masturbation,mxbai,1,bulugh,117,2001440,0.8507,A-Hakim added: “Ablution makes one active for repeating (the sexual act).” +masturbation,mxbai,2,bulugh,64,2000760,0.82,"Narrated ‘Umar (rad), in a Mawquf (untraceable) and Anas in a Marfu (traceable) Hadith: “If one of you performs ablution and puts on his two leather socks, let him perform Mash (wipe) over them and pray in them and he may not take them off he so wishes except after ejaculation or sexual impurity. [Reported by Ad-Daraqutni and Al-Hakim and graded Sahih (sound) by him]." +masturbation,mxbai,3,bulugh,110,2001330,0.8168,And Muslim added: “Even if he does not ejaculate”. +masturbation,mxbai,4,bulugh,73,2000890,0.8162,"Narrated Busra bint Safwan (rad): Allah’s Messenger (saw) said, “He who touches his penis should perform ablution”. [Reported by Al-Khamsa, and At-Tirmidhi and Ibn Hibban graded it Sahih (sound)." +masturbation,mxbai,5,bulugh,28,2000350,0.8143,In yet another version of Muslim: Verily! I (‘Aisha) used to scrape it (the semen) off his garment with my nails while it was dry. +masturbation,mxbai,6,mishkat,287,5730060,0.8135,"‘Uthman performed ablution, pouring water over his hands three times, then rinsing his mouth and snuffing up water, then washing his face three times, then washing his right arm up to the elbow three times, then washing his left arm up to the elbow three times, then wiping his head, then washing his right foot three times, then the left three times. He then said, “I have seen God’s messenger performing ablution as I have done it just now,” adding, “If anyone performs ablution as I have done,…" +masturbation,mxbai,7,bulugh,111,2001350,0.8128,"Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon]" +masturbation,mxbai,8,bulugh,109,2001300,0.812,Narrated Abu Sa’id Al-Khudri (rad): Allah’s Mesenger (saw) said: “The water (of the ghusl) is due to the water (of sexual emission)”. [Reported by Muslim] +masturbation,mxbai,9,tirmidhi,3415,681260,0.8118,Maslamah bin `Amr said: “`Umair bin Hani used to perform a thousand prostrations every day and recite a hundred thousand Tasbīḥs every day.” +masturbation,mxbai,10,shamail,32,1800310,0.8108,A’isha said: “I used to comb the hair of Allah’s Messenger (Allah bless him and give him peace) while I was menstruating.” +racism,openai-small-en,1,ahmad,614,5006140,0.6237,It was narrated that `Ali (رضي الله عنه)said: The Messenger of Allah (ﷺ) said: “No one hates the Arabs except a hypocrite.” +racism,openai-small-en,2,ibnmajah,69,1250690,0.6207,"It was narrated that 'Abdullah said: ""The Messenger of Allah (SAW) said: 'Verbally abusing a Muslim is immorality and fighting him is Kufr (disbelief).'""" +racism,openai-small-en,3,malik,1831,418850,0.6196,"

Malik related to me that he heard that Abdullah ibn Masud used to say, ""The slave continues to lie and a black spot grows in his heart until all his heart becomes black. Then he is written, in Allah's sight, among the liars.""

" +racism,openai-small-en,4,abudawud,4877,848590,0.6188,"

Narrated AbuHurayrah:

The Prophet (saws) said: The gravest sin is going to lengths in talking unjustly against a Muslim's honour, and it is a major sin to abuse twice for abusing once.

" +racism,openai-small-en,5,malik,1600,416570,0.6177,"

Yahya said that Malik said, ""The way of doing things in our community about which there is no dispute is that women do not swear in the swearing for the intentional act. If the murdered man only has female relatives, the women have no right to swear for blood and no pardon in murder.""

Yahya said that Malik said about a man who is murdered, ""If the paternal relatives of the murdered man or his mawali say, 'We swear and we demand our companion's blood,' that is their right.""

…" +racism,openai-small-en,6,ahmad,467,5004670,0.6177,"It was narrated that Rabah said: My masters married me to a Roman slave girl of theirs and she bore me a black boy. Then she fell in love with a Roman slave whose name was Yuhannas, and he spoke to her in their language. Then she got pregnant. She had borne me a child who was black like me, then she gave birth to a boy who looked like a lizard (i.e., was very fair). I said to her: What is this? She said: He is the child of Yuhannas. I asked Yuhannas and he admitted it, I went to ‘Uthman bin…" +racism,openai-small-en,7,malik,1521,415930,0.6169,"

Malik related to me from Hisham ibn Urwa that his father said that there was only one hadd against a man who slandered a group of people.

Malik said, ""If they are on separate occasions there is still only one hadd against him.""

Malik related to me from Abu'r-Rijal Muhammad ibn Abd ar-Rahman ibn Haritha ibn an-Numan al- Ansari, then from the Banu'n-Najar from his mother Amra bint Abd ar- Rahman that two men cursed each other in the time of Umar ibn al- Khattab. One of them…" +racism,openai-small-en,8,riyadussalihin,338,1603350,0.6141,"'Abdullah bin 'Amr bin Al-'as (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said, ""It is one of the gravest sins to abuse one's parents."" It was asked (by the people): ""O Messenger of Allah, can a man abuse his own parents?"" Messenger of Allah (PBUH) said, ""He abuses the father of somebody who, in return, abuses the former's father; he then abuses the mother of somebody who, in return, abuses his mother"".

[Al-Bukhari and Muslim].

Another narration is:…" +racism,openai-small-en,9,mishkat,3311,5832220,0.614,"He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there was a dusky one among them, and was told that there were some. He asked how he thought that had come about, and was told that it was a strain to which they had reverted. Then saying that this was…" +racism,openai-small-en,10,nasai,4105,1083195,0.6118,"It was narrated that 'Abdullah said: ""Defaming a Muslim is evildoing and fighting him is Kufr."" (Sahih Mawquf)" +racism,nomic,1,bukhari,6847,64410,0.7889,"

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, ""My wife has delivered a black child."" The Prophet said to him, ""Have you camels?"" He replied, ""Yes."" The Prophet said, ""What color are they?"" He replied, ""They are red."" The Prophet further asked, ""Are any of them gray in color?"" He replied, ""Yes."" The Prophet asked him, ""Whence did that grayness come?"" He said, ""I thing it descended from the camel's ancestors."" Then the Prophet said (to him), ""Therefore, this child of…" +racism,nomic,2,bukhari,5305,49670,0.7871,"

Narrated Abu Huraira:

A man came to the Prophet and said, ""O Allah's Apostle! A black child has been born for me."" The Prophet asked him, ""Have you got camels?"" The man said, ""Yes."" The Prophet asked him, ""What color are they?"" The man replied, ""Red."" The Prophet said, ""Is there a grey one among them?' The man replied, ""Yes."" The Prophet said, ""Whence comes that?"" He said, ""May be it is because of heredity."" The Prophet said, ""May be your latest son has this color because of heredity.""" +racism,nomic,3,bukhari,7314,68730,0.7846,"

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, ""My wife has delivered a black boy, and I suspect that he is not my child."" Allah's Apostle said to him, ""Have you got camels?"" The bedouin said, ""Yes."" The Prophet said, ""What color are they?"" The bedouin said, ""They are red."" The Prophet said, ""Are any of them Grey?"" He said, ""There are Grey ones among them."" The Prophet said, ""Whence do you think this color came to them?"" The bedouin said, ""O Allah's Apostle! It…" +racism,nomic,4,nasai,1594,1067220,0.7836,"It was narrated that 'Aishah said: ""The black people came and played in front of the Prophet (SAW) on the day of 'Eid. He called me and I watched them from over his shoulder, and I continued to watch them until I was the one who moved away.""" +racism,nomic,5,abudawud,2253,822450,0.7781,"‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep silence in anger. I swear by Allaah, I shall ask the Apostle of Allaah(saws) about it”. On the next day he came to the Apostle of Allaah(saws) and said “If a man finds a man along with wife and…" +racism,nomic,6,ibnmajah,2003,1263220,0.7776,"It was narrated from Ibn 'Umar that: a man frorn the desert people came to the Prophet and said: ""O Messenger of Allah, my wife has given birth on my bed to a black boy, and there are no black people among my family."" He said: ""Do you have camels?"" He said: ""Yes."" He said: ""What color are they?"" He said: ""Red."" He said: are there any black ones among them?"" He said, ""No."" He said: ""Are there any grey ones among them?"" He said- ""Yes."" He said ""How is that?"" He said: ""Perhaps it is hereditary.""…" +racism,nomic,7,abudawud,2260,822530,0.7772,Abu Hurairah said A man from Banu Fazarah came to the Prophet (saws) and said “My wife has given birth to a black son”. He said “Have you any camels?” He said “They are red”. He asked “Is there a dusky one among them?” He replied “Some of them are dusky”. He asked “How do you think they have come about?” He replied “This may be a strain to which they reverted”. He said “And this is perhaps a strain to which the child has reverted.” +racism,nomic,8,bulugh,1102,2013700,0.7765,"Narrated Abu Hurairah (RA): A man said, ""O Allah's Messenger, my wife has given birth to a black son."" He asked, ""Have you any camels?"" He replied, ""Yes."" He asked, ""What is their color?"" He replied, ""They are red."" He asked, ""Is there a dusky (dark) one among them?"" He replied, ""Yes."" He asked, ""How has that come about?"" He replied, ""It is perhaps a strain to which it has reverted (i.e. heredity)."" He said, ""It is perhaps a strain to which this son of yours has reverted."" [Agreed upon]." +racism,nomic,9,nasai,3479,1034900,0.7759,"It was narrated that Abu Hurairah said: ""A man from Banu Fazarah came to the Prophet and said: 'My wife has given birth to a black boy' -and he wanted to disown him. He said: 'Do you have camels?' He said: 'Yes.' He said: 'What color are they?' He said: 'Red.' He said: 'Are there any gray ones among them?' He said: 'There are some gray camels among them.' He said: 'Why is that do you think?' He said: 'Perhaps it is hereditary.' He said: 'Perhaps this is hereditary.' And he did not permit him to…" +racism,nomic,10,mishkat,3311,5832220,0.7753,"He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there was a dusky one among them, and was told that there were some. He asked how he thought that had come about, and was told that it was a strain to which they had reverted. Then saying that this was…" +racism,mxbai,1,mishkat,4327,5910210,0.7839,"‘Abdallah b. ‘Amr b. al-‘As told that when God's messenger saw him wearing two garments dyed with saffron he said, “These are the garments worn by infidels ; do not wear them.” A version says that when he suggested washing them he replied, “No, burn them.” Muslim transmitted it." +racism,mxbai,2,abudawud,2253,822450,0.7826,"‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep silence in anger. I swear by Allaah, I shall ask the Apostle of Allaah(saws) about it”. On the next day he came to the Apostle of Allaah(saws) and said “If a man finds a man along with wife and…" +racism,mxbai,3,bulugh,1518,2054800,0.7821,"'A’ishah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “The most despicable amongst people in the sight of Allah is the ruthless argumentative (person).” Related by Muslim." +racism,mxbai,4,bukhari,30,290,0.7805,"

Narrated Al-Ma'rur:

At Ar-Rabadha I met Abu Dhar who was wearing a cloak, and his slave, too, was wearing a similar one. I asked about the reason for it. He replied, ""I abused a person by calling his mother with bad names."" The Prophet said to me, 'O Abu Dhar! Did you abuse him by calling his mother with bad names You still have some characteristics of ignorance. Your slaves are your brothers and Allah has put them under your command. So whoever has a brother under his command should…" +racism,mxbai,5,mishkat,3688,5870230,0.7792,"‘A’idh b. ‘Amr told that he heard God’s Messenger say, “The worst shepherds are those who are ungentle.” Muslim transmitted it." +racism,mxbai,6,bukhari,5940,55730,0.7787,"

Narrated Ibn `Umar:

The Prophet has cursed the lady who lengthens her hair artificially and the one who gets her hair lengthened, and also the lady who tattoos (herself or others) and the one who gets herself tattooed." +racism,mxbai,7,mishkat,1874,5761010,0.778,"Abu Huraira reported God’s messenger as saying, “The worst things in a man are anxious niggardliness and unrestrained cowardice.” Abd Dawud transmitted it." +racism,mxbai,8,bulugh,1201,2053310,0.7779,"Sahl bin Abi Khaithamah (RAA) narrated on the authority of some honored men from his people that 'Abdullah bin Sahl and Muhaiysah bin Mas'ud, went out to Khaibar because of a hardship they were undergoing. Muhaiysah came and told them that 'Abdullah bin Sahl had been killed and thrown into a well. He came to the Jews and said to them, ‘I swear by Allah that you have killed him.’ They replied, ‘We swear by Allah that we have not killed him.' Then Muhaiysah came along with his brother Huwaiysah…" +racism,mxbai,9,ibnmajah,1859,1261770,0.7776,"It was narrated from Abdullah bin Amr that: the Prophet said: “Do not marry women for their beauty for it may lead to their doom. Do not marry them for their wealth, for it may lead them to fall into sin. Rather, marry them for their religion. A black slave woman with piercings who is religious is better.”" +racism,mxbai,10,bulugh,1500,2054620,0.7772,"Abu Hurairah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “When two men insult one another, what they say is mainly the fault of the one who began it, so long as the one who is oppressed does not transgress.” Related by Muslim." +polygamy,openai-small-en,1,bukhari,5127,47975,0.7243,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. ""Send for so-and-so and have sexual…" +polygamy,openai-small-en,2,muslim,1451 a,234150,0.7217,"

Umm al-Fadl reported: A bedouin came to Allah's Apostle (may peace be upon him) when he was in my house and said: Allah's Apostle, I have had a wife and I married another besides her, and my first wife claimed that she had suckled once or twice my newly married wife, thereupon Allah's Apostle (may peace be upon him) said: One suckling or two do not make the (marriage) unlawful." +polygamy,openai-small-en,3,bukhari,5068,47440,0.7182,"

Narrated Anas:

The Prophet used to go round (have sexual relations with) all his wives in one night, and he had nine wives." +polygamy,openai-small-en,4,malik,1238,412620,0.7156,"

Yahya related to me from Malik that Ibn Shihab said, ""I have heard that the Messenger of Allah, may Allah bless him and grant him peace, said to a man from Thaqif who had ten wives when he became muslim, 'Take four and separate from the rest.' ""

" +polygamy,openai-small-en,5,abudawud,2243,822350,0.7142,"

Al-Dahhak b. Firuz reported on the authority of his father: I said: Messenger of Allah, I have embraced Islam and two sisters are my wives. He said: Divorce any one of them you wish.

" +polygamy,openai-small-en,6,muslim,1408 b,232690,0.7136,"

Abu Huraira (Allah be pleased with him) reported: that Allah's Messenger (may peace be upon him) forbade combining of four women in marriage: a woman with her father's sister, and a woman with her mother's sister." +polygamy,openai-small-en,7,ibnmajah,1953,1262720,0.7113,It was narrated that Ibn 'Umar said: “Ghailan bin Salamah became Muslim and he had ten wives. The Prophet said to him: 'Choose four of them.' ” +polygamy,openai-small-en,8,mishkat,3091,5830120,0.7109,"Ma'qil b. Yasar reported God’s Messenger as saying, “Marry women who are loving and very prolific, for I shall outnumber the peoples by you."" Abu Dawud and Nasa’i transmitted it." +polygamy,openai-small-en,9,bukhari,5215,48820,0.7104,"

Narrated Anas bin Malik:

The Prophet used to pass by (have sexual relation with) all his wives in one night, and at that time he had nine wives." +polygamy,openai-small-en,10,malik,1149,411810,0.7087,"

Yahya related to me from Malik from Rabia ibn Abi Abd ar-Rahman that al-Qasim ibn Muhammad and Urwa ibn az-Zubayr said that a man who had four wives and then divorced one of them irrevocably, could marry straightaway if he wished, and he did not have to wait for the completion of her idda.

" +polygamy,nomic,1,mishkat,3170,5830850,0.8259,"Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the polytheists. Then God most high sent down regarding that, “And women already married, except those whom your right hands possess” (Al-Qur’an 4:24). That means that they were lawful for them when their…" +polygamy,nomic,2,muslim,1456 a,234320,0.8245,"

Abu Sa'id al-Khudri (Allah her pleased with him) reported that at the Battle of Hanain Allah's Messenger (may peace be upon him) sent an army to Autas and encountered the enemy and fought with them. Having overcome them and taken them captives, the Companions of Allah's Messenger (may peace te upon him) seemed to refrain from having intercourse with captive women because of their husbands being polytheists. Then Allah, Most High, sent down regarding that:"" And women already married, except…" +polygamy,nomic,3,mishkat,2554,5810490,0.8172,"Ibn ‘Abbas said that the polytheists used to say, “Labbaik, Thou hast no partner,"" whereupon God’s messenger would say, “Woe to you ! Enough, enough; [do not add] ‘except a partner who is Thine whom Thou possessest', when He possesses none.” They used to say this when they were going round the House. Muslim transmitted it." +polygamy,nomic,4,bukhari,5127,47975,0.8167,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. ""Send for so-and-so and have sexual…" +polygamy,nomic,5,abudawud,2272,822650,0.8164,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till… +polygamy,nomic,6,muslim,122,202210,0.8163,

It is narrated on the authority of Ibn 'Abbas that some persons amongst the polytheist had committed a large number of murders and had excessively indulged in fornication. Then they came to Muhammad (may peace be upon him) and said: Whatever you assert and whatever you call to is indeed good. But if you inform us that there is atonement of our past deeds (then we would embrace Islam). Then it was revealed: And those who call not unto another god along with Allah and slay not any soul which… +polygamy,nomic,7,nasai,3415,1034260,0.8123,"It was narrated that Ibn 'Umar said: ""The Prophet was asked about a man who divorced his wife three times, then another man married her and he closed the door and drew the curtain, then divorced her before consummating the marriage with her. He said: ""She is not permissible for the first one (to remarry her) until the second one has had intercourse with her.""""" +polygamy,nomic,8,mishkat,3419,5840330,0.8112,"Ibn Umar told that he heard God’s Messenger say, “He who swears by anyone but God is a polytheist.” Tirmidhi transmitted it." +polygamy,nomic,9,bulugh,1287,2056160,0.811,"Samurah (RAA) narrated that The Messenger of Allah (P.B.U.H.) said, “Kill the mature men of the polytheists but spare their children.” Related by Abu Dawud and At-Tirmidhi graded it as Sahih." +polygamy,nomic,10,bukhari,5105,47805,0.81,"Ibn 'Abbas further said, ""Seven types of marriages are unlawful because of blood relations, and seven because of marriage relations."" Then Ibn 'Abbas recited the Verse: ""Forbidden for you (for marriages) are your mothers..."" (4:23). 'Abdullah bin Ja'far married the daughter and wife of 'Ali at the same time (they were step-daughter and mother). Ibn Sirin said, ""There is no harm in that."" But Al-Hasan Al-Basri disapproved of it at first, but then said that there was no harm in it. Al-Hasan bin…" +polygamy,mxbai,1,abudawud,2088,820830,0.8486,

Narrated Samurah:

The Prophet (saws) said: Any woman who is married by two guardians (to two different men) belongs to the first woman who is married by two guardians (to two different men) belongs to the first of them and anything sold by a man to two persons belongs to the first of them.

+polygamy,mxbai,2,abudawud,2133,821280,0.8341,"

Narrated AbuHurayrah:

The Prophet (saws) said: When a man has two wives and he is inclined to one of them, he will come on the Day of resurrection with a side hanging down.

" +polygamy,mxbai,3,abudawud,2067,820620,0.8335,

Narrated Abdullah ibn Abbas:

The Prophet (saws) abominated the combination of paternal and maternal aunts and the combination of two maternal aunts and two paternal aunts in marriage.

+polygamy,mxbai,4,bulugh,1001,2012440,0.8334,"Narrated 'Aishah (RA): A man divorced his wife by three pronouncements and another man married her and divorced her before cohabiting with her. Then, her first husband intended to remarry her and asked Allah's Messenger (SAW) about that. He said, ""No, until the other one (second husband) has enjoyed sexual intercourse with her as the first (husband) had."" [Agreed upon; the wording is Muslim's]." +polygamy,mxbai,5,bukhari,5127,47975,0.8334,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. ""Send for so-and-so and have sexual…" +polygamy,mxbai,6,mishkat,3170,5830850,0.8306,"Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the polytheists. Then God most high sent down regarding that, “And women already married, except those whom your right hands possess” (Al-Qur’an 4:24). That means that they were lawful for them when their…" +polygamy,mxbai,7,bukhari,4528,42060,0.8297,"

Narrated Jabir:

Jews used to say: ""If one has sexual intercourse with his wife from the back, then she will deliver a squint-eyed child."" So this Verse was revealed:-- ""Your wives are a tilth unto you; so go to your tilth when or how you will."" (2.223)" +polygamy,mxbai,8,bukhari,5261,49270,0.8295,"

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, ""No, she cannot marry the first husband unless the second husband consummates his marriage with her, just as the first husband had done.""" +polygamy,mxbai,9,abudawud,2272,822650,0.8286,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till… +polygamy,mxbai,10,bukhari,5104,47800,0.8278,"

Narrated `Uqba bin Al-Harith:

I married a woman and then a black lady came to us and said, ""I have suckled you both (you and your wife)."" So I came to the Prophet and said, ""I married so-and-so and then a black lady came to us and said to me, 'I have suckled both of you.' But I think she is a liar."" The Prophet turned his face away from me and I moved to face his face, and said, ""She is a liar."" The Prophet said, ""How (can you keep her as your wife) when that lady has said that she has…" +pork,openai-small-en,1,abudawud,3489,834820,0.6549,

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

+pork,openai-small-en,2,bukhari,5506,51590,0.6408,"

Narrated Rafi` bin Khadij:

The Prophet said, ""Eat what is slaughtered (with any instrument) that makes blood flow out, except what is slaughtered with a tooth or a nail.'" +pork,openai-small-en,3,bukhari,1824,17120,0.6392,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all together."" So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased…" +pork,openai-small-en,4,shamail,170,1801610,0.6351,'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” +pork,openai-small-en,5,muslim,1938 c,247720,0.6349,

Bara was heard saying: We were forbidden (to eat) the flesh of the domestic asses. +pork,openai-small-en,6,abudawud,2796,827900,0.6344,"

Narrated AbuSa'id al-Khudri:

The Messenger of Allah (saws) used to sacrifice a choice, horned ram with black round the eyes, the mouth and the feet.

" +pork,openai-small-en,7,malik,621,406230,0.6315,"

Yahya related to me from Malik from Zayd ibn Aslam from his father that he said to Umar ibn al-Khattab, ""There is a blind she- camel behind the house,'' soUmar said, ""Hand it over to a household so that they can make (some) use of it."" He said, ""But she is blind."" Umar replied, ""Then put it in a line with other camels."" He said, ""How will it be able to eat from the ground?"" Umar asked, ""Is it from the livestock of the jizya or the zakat?"" and Aslam replied, ""From the livestock of the…" +pork,openai-small-en,8,malik,,410940,0.6298,"

Yahya related to me from Malik that the best of what he had heard about a man who is forced by necessity to eat carrion is that he ate it until he was full and then he took provision from it. If he found something which would enable him to dispense with it, he threw it away.

Malik when asked whether or not a man who had been forced by necessity to eat carrion, should eat it when he also found the fruit, crops or sheep of a people in that place, answered, ""If he thinks that the…" +pork,openai-small-en,9,ibnmajah,3146,1272490,0.6296,"It was narrated that Abu Sa’eed Al-Khudri said: “We bought a ram for sacrifice, then a wolf tore some flesh from its rump and ears. We asked the Prophet (saw) and he told us to offer it as a sacrifice.”" +pork,openai-small-en,10,bukhari,5527,51801,0.6295,

Narrated Abu Tha'alba:

Allah's Apostle prohibited the eating of donkey's meat.

Narrated Az-Zuhri:

The Prophet prohibited the eating of beasts having fangs.

+pork,nomic,1,bukhari,1495,14100,0.795,"

Narrated Anas:

Some meat was presented to the Prophet (p.b.u.h) and it had been given to Barira (the freed slave-girl of Aisha) in charity. He said, ""This meat is a thing of charity for Barira but it is a gift for us.""" +pork,nomic,2,tirmidhi,1509,615860,0.7935,"Narrated Ibn 'Umar: That the Prophet (saws) said: ""None of you should eat from the meat of his sacrificial animal beyond three days.""" +pork,nomic,3,bukhari,1824,17120,0.7908,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all together."" So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased…" +pork,nomic,4,shamail,169,1801600,0.7896,"'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.”" +pork,nomic,5,abudawud,2814,828080,0.7892,"Narrated Thawban: The Messenger of Allah (saws) sacrificed during a journey and then said: Thawban, mend the meat of this goat. I then kept on supplying its meat until we reached Medina." +pork,nomic,6,bulugh,15,2000210,0.7864,"Narrated Abu Waqid Al-Laithi: Narrated Abu Waqid Al-Laithi (rad): Allah’s Messenger (saw) said, “Whatever (portion) is cut off from an animal when it is alive is dead (meat). [Reported by Abu Da’ud and At-Tirmidhi who graded it Hasan (fair) and this version is of Tirmidhi]." +pork,nomic,7,adab,1276,2212320,0.7855,"Ya'la ibn Murra reported that he heard Abu Hurayra speaking about someone who plays backgammon and bets on it, saying that he is like someone who eats pig meat and that the person who plays it without betting on it is like someone who washes his hands in pig's blood. The person who sits looking at it is like someone who looks at pig's meat." +pork,nomic,8,shamail,166,1801570,0.7843,"Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.”" +pork,nomic,9,ibnmajah,3216,1273220,0.783,"It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).”" +pork,nomic,10,muslim,1975 a,248630,0.7829,"

Thauban reported that Allah's Messenger (way peace be upon him) slaughtered his sacrificial animal and then said: Thauban, make his meat usable (for journey), and I continuously served him that until he arrived in Medina." +pork,mxbai,1,shamail,170,1801610,0.7987,'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” +pork,mxbai,2,ibnmajah,3216,1273220,0.7976,"It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).”" +pork,mxbai,3,shamail,169,1801600,0.7928,"'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.”" +pork,mxbai,4,ibnmajah,3314,1274220,0.7917,"It was narrated from ‘Abdullah bin ‘Umar that the Messenger of Allah (saw) said: “Two kinds of dead meat and two kinds of blood have been permitted to us. The two kinds of dead meat are fish and locusts, and the two kinds of blood are the liver and spleen.”" +pork,mxbai,5,mishkat,4215,5900530,0.7913,"‘A’isha reported God’s messenger as saying, “Do not cut meat with a knife, for it is a foreign practice, but bite it, for that is more beneficial and wholesome.” Abu Dawud and Baihaqi, in Shu'ab al-iman, transmitted it, both saying it is not strong." +pork,mxbai,6,shamail,166,1801570,0.7905,"Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.”" +pork,mxbai,7,abudawud,3489,834820,0.7894,

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

+pork,mxbai,8,nasai,4425,1084785,0.7879,"'Ali bin Abi Talib Said: ""The Messenger of Allah has forbidden you from eating the meat of your sacrificaial animals for more than three day."" (Sahih )" +pork,mxbai,9,bukhari,1492,14070,0.7863,"

Narrated Ibn `Abbas:

The Prophet saw a dead sheep which had been given in charity to a freed slave-girl of Maimuna, the wife of the Prophet . The Prophet said, ""Why don't you get the benefit of its hide?"" They said, ""It is dead."" He replied, ""Only to eat (its meat) is illegal.""" +pork,mxbai,10,bukhari,1824,17120,0.7858,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all together."" So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased…" +dance,lexical,1,mishkat,6049,5978220,11.8589,"`A'isha said: When God's messenger was seated, we heard confused sounds and boys' voices, so he got up and saw an Abyssinian woman dancing with the boys around her. He said, ""Come and look, `A'isha,"" so I went and placed my chin on God's messenger's shoulder and began to look at her over his shoulder. He then said to me, ""Have you not had enough? Have you not had enough?"" and I began to say, ""No,"" in order that I might look where I was with him. But `Umar came along, and when the people ran…" +dance,openai-small-en,1,malik,75,400750,0.6113,"

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, ""I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the mosque and prayed.""

Yahya said that Malik was asked whether a man who did wudu for prayerand then put on his leather socks, and then urinated and took them off and put them back on again,…" +dance,openai-small-en,2,abudawud,4854,848360,0.5992,"

Narrated AbudDarda':

The Messenger of Allah (saws) would sit and we would also sit around him. If he got up intending to return, he would take off his sandals or something he was wearing, and his Companions recognising his purpose (that he would return) would stay where they were.

" +dance,openai-small-en,3,abudawud,4923,849050,0.5977,"

Narrated Anas ibn Malik:

When the Messenger of Allah (saws) came to Medina, the Abyssinians played for his coming out of joy; they played with spears.

" +dance,openai-small-en,4,bukhari,1591,15000,0.597,"

Narrated Abu Huraira:

The Prophet;; said, ""Dhus-Suwaiqa-tain (literally: One with two lean legs) from Ethiopia will demolish the Ka`ba.""" +dance,openai-small-en,5,abudawud,652,806520,0.5956,"

Narrated Aws ibn Thabit al-Ansari:

The Messenger of Allah (saws) said: Act differently from the Jews, for they do not pray in their sandals or their shoes.

" +dance,openai-small-en,6,bukhari,2628,24600,0.5948,"

Narrated Aiman:

I went to `Aisha and she was wearing a coarse dress costing five Dirhams. `Aisha said, ""Look up and see my slave-girl who refuses to wear it in the house though during the lifetime of Allah's Apostle I had a similar dress which no woman desiring to appear elegant (before her husband) failed to borrow from me.""" +dance,openai-small-en,7,mishkat,765,5741920,0.5945,"Shaddad b. Aus reported God’s Messenger as saying, “Act differently from the Jews, for they do not pray in their sandals or their shoes.”* * Khuff (pl. khifaf), an article of footwear which came up above the ankle. Traditions tell that the Prophet allowed pilgrims to wear the khuff only when unable to procure sandals, but said they must be cut to come below the ankle. Cf. Bukhari, Hajj, 21, 23; Libas, 8, 4, 15, 73. Abu Dawud transmitted it." +dance,openai-small-en,8,ibnmajah,2939,1279690,0.594,It was narrated that ‘Abdullah bin ‘Abbas said: “The Prophets used to enter the Haram walking barefoot. They would circumambulate the House and complete all the rituals barefoot and walking.” +dance,openai-small-en,9,forty,33,1430330,0.5939,Actions are through intentions. +dance,openai-small-en,10,forty,18,1430180,0.5936,The felicitous person takes lessons from (the actions of) others. +dance,nomic,1,tirmidhi,40,660400,0.7981,"Al-Mustawrid bin Shaddad Al-Fihri said : ""I saw the Prophet when he was performing Wudu doing that to the toes on his feet with his pinky.""" +dance,nomic,2,tirmidhi,3734,636130,0.7957,"Narrated Ibn 'Abbas: ""The first to perform Salat was 'Ali.""" +dance,nomic,3,tirmidhi,39,660390,0.7927,"Ibn Abbas narrated that : Allah's Messenger said: ""When performing Wudu go between the fingers of your hands and (toes of) your feet.""" +dance,nomic,4,bulugh,55,2000660,0.7924,"Narrated Anas (rad): The Prophet (saw) saw a man on whose foot appeared a portion like the size of a nail which was not touched by water. He then said, “Go back and perform your Wudu properly.” [Reported by Abu Da’ud and An-Nasa’i]." +dance,nomic,5,bukhari,6702,63020,0.7916,"

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf around the Ka`ba, tied with a rope or something else (while another person was holding him). The Prophet cut that rope off." +dance,nomic,6,bukhari,5910,55443,0.7911,

Narrated Anas: The Prophet had big feet and hands. +dance,nomic,7,abudawud,1986,819810,0.791,Narrated Ibn 'Umar: The Messenger of Allah (saws) performed 'Umrah before performing Hajj. +dance,nomic,8,nasai,50,1000500,0.789,"It was narrated from Abu Hurairah that the Prophet (PBUH) performed Wudu', and when he had performed Istinja' he rubbed his hand on the ground." +dance,nomic,9,bulugh,1443,2054061,0.7884,"In a version by Muslim, “And the one who is riding should salute the one who is walking.”" +dance,nomic,10,bulugh,45,2000550,0.7884,"Narrated Abu Huraira (rad): Allah’s Messenger (rad) said, “When you perform ablution, begin with your right limbs”. [Reported by Al-Arba’a and garded Sahih by Ibn Khuzaima]." +dance,mxbai,1,muslim,819 a,217850,0.7711,"

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached seven modes (of recitation). Ibn Shibab said: It has reached me that these seven styles are essentially one, not differing about what is permitted and what is forbidden." +dance,mxbai,2,abudawud,727,807260,0.7646,The above tradition has been transmitted by ‘Asim b. Kulaib through a different chain of narrators and to the same effect. This version has: “He then placed his right hand on the back of his left palm and his wrist and forearm.” This also adds: “I then came back afterwards in a season when it was severe cold. I saw the people putting on heavy clothes moving their hands under the clothes (i.e. raised their hands before and after bowing).” +dance,mxbai,3,abudawud,942,809420,0.76,‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. +dance,mxbai,4,tirmidhi,3418,681290,0.7595,"`Abdullah bin `Abbas [may Allah be pleased with them] narrated, : that when the Messenger of Allah (saws) would stand for prayer during the middle of the night, he would say: “O Allah, to You is the Praise, You are the Light of the heavens and the earth, and to You is the Praise, You are the Sustainer of the heavens and the earth, and to You is the praise, You are the Lord of the heavens and the earth, and those in them, You are the truth, and Your Promise is the truth, and Your meeting is…" +dance,mxbai,5,malik,75,400750,0.7591,"

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, ""I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the mosque and prayed.""

Yahya said that Malik was asked whether a man who did wudu for prayerand then put on his leather socks, and then urinated and took them off and put them back on again,…" +dance,mxbai,6,abudawud,958,809571,0.7588,"'Abdullah bin 'Umar said: ""A Sunnah of the prayer is that you should raise your right foot, and make your left foot lie (on the ground).""" +dance,mxbai,7,mishkat,4416,5911060,0.7583,"Al-Qasim b. Muhammad quoted ‘A’isha as saying the Prophet often walked wearing one sandal. A version says she walked wearing one sandal. Tirmidhi transmitted it, saying this is sounder" +dance,mxbai,8,muslim,2099 d,252370,0.7576,

Jabir. b. Abdullah reported Allah's Messenger (may peace be upon him) as saying: Do not walk in one sandal and do not wrap the lower garment round your knees and do not eat with your left hand and do not wrap yourself completely leaving no room for the arms (to draw out) and do not place one of your feet upon the other while lying on your back. +dance,mxbai,9,muslim,2097 a,252310,0.7554,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: ""When one of you puts on sandals, he should first put in the right foot, and when he takes off he should take off the left one first. And he should wear both of them or take both off.""" +dance,mxbai,10,abudawud,859,808580,0.7548,"This tradition has also been transmitted through a different chain of narrators by Rifa’ah b. Rafi. This version goes: When you get up and face the qiblah, what Allah wishes you to recite. And when you bow, put your palms on your knees and stretch out your back. When you prostrate yourself, do it completely( so that you are at the rest). When you raise yourself then sit on your left thigh." diff --git a/test results & reports/search query analyses/search_analysis.md b/test results & reports/search query analyses/search_analysis.md new file mode 100644 index 0000000..0badb7f --- /dev/null +++ b/test results & reports/search query analyses/search_analysis.md @@ -0,0 +1,356 @@ +# Search Query Analysis +Generated: 2026-05-16 | Source: searchdb.search_queries | Total rows: 134,600,731 + +--- + +## Top 100 Most Common Queries (by total count) + +**SQL:** +```sql +SELECT query, COUNT(*) as count +FROM search_queries +GROUP BY query +ORDER BY count DESC +LIMIT 100; +``` + +| # | Query | Count | +|---|---|---| +| 1 | aisha six years | 218,185 | +| 2 | اللهُمَّ ربَّ الناس أَذْهِبِ البَأس ، اشفِه وأنت الشَّافِي ، لا شِفَاءَ إلاَّ شِفاؤُك شِفَاءً لا يُغَادِرُ سَقَمَا | 210,706 | +| 3 | Jew hiding behind me | 207,216 | +| 4 | Whoever changes religion kill him | 198,473 | +| 5 | aisha dolls | 196,099 | +| 6 | أَبْ | 188,454 | +| 7 | evil eye | 163,969 | +| 8 | لَا إِلَهَ إِلَّا اَللَّهُ | 152,974 | +| 9 | Music | 146,586 | +| 10 | dajjal | 135,375 | +| 11 | اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ الْهَمِّ وَالْحَزَنِ، | 126,812 | +| 12 | actions are by intentions | 123,018 | +| 13 | aisha | 122,838 | +| 14 | will not enter jannah if pride even mustard seed | 122,040 | +| 15 | الحياء | 121,775 | +| 16 | aisha semen | 120,704 | +| 17 | رضيت بالله ربا | 117,666 | +| 18 | ramadan | 109,578 | +| 19 | بِسْمِ اللهِ " ( ثلاثاً ) " أَعُوذُ بِعِزَّةِ اللهِ وقُدْرَتِهِ مِنْ شَرِّ مَا أُجَـدْ وأُحَـاذِر | 103,674 | +| 20 | أسألُ اللهَ العَظِيمَ ربَّ العَرْشِ العَظيمِ أنْ يَشْفِيَكَ | 103,380 | +| 21 | Cats | 103,123 | +| 22 | No one who has an atom's weight of arrogance shall enter Jannah | 101,329 | +| 23 | he who gives is better than he who takes | 101,076 | +| 24 | between my chest | 99,502 | +| 25 | بدعة | 96,435 | +| 26 | miswak | 96,294 | +| 27 | Al-qadr | 95,315 | +| 28 | "There is none of you, but has his place assigned either in the Fire or in Paradise" | 91,630 | +| 29 | بسم الله أوله وآخره | 90,385 | +| 30 | changed his Islamic religion kill | 87,178 | +| 31 | اللَّهُمَّ رَحْمَتَكَ أَرْجُو فَلَا تَكِلْنِي إِلَى نَفْسِي طَرْفَةَ عَيْنٍ وَأَصْلِحْ لِي شَأْنِي كُلَّهُ لَا إِلَهَ إِلَا أَنْتَ | 82,697 | +| 32 | slaughtered them with his own hand. | 82,480 | +| 33 | Ali | 80,334 | +| 34 | MAhdi | 79,638 | +| 35 | religion kill him | 79,556 | +| 36 | grow the beard | 75,713 | +| 37 | prophet | 75,365 | +| 38 | hijab | 74,172 | +| 39 | Marriage | 74,163 | +| 40 | Camel urine | 73,655 | +| 41 | يَا مُقَلِّبَ الْقُلُوبِ ثَبِّتْ قَلْبِى عَلَى دِينِكَ | 72,657 | +| 42 | اللَّهُمَّ إِنِّي | 72,246 | +| 43 | Ajwa dates | 71,980 | +| 44 | moon split | 70,914 | +| 45 | tattoo | 70,773 | +| 46 | عثمان بن أبي شيبة | 69,852 | +| 47 | jesus | 69,475 | +| 48 | "أبو هريرة" or "أبي هريرة" | 69,328 | +| 49 | salah | 68,950 | +| 50 | Allah will forgive my ummah for whatever crosses their minds so long as they do not act upon it or speak of it | 68,567 | +| 51 | dua | 66,941 | +| 52 | Women | 66,486 | +| 53 | prayer | 66,301 | +| 54 | image making | 66,060 | +| 55 | slave | 65,669 | +| 56 | أعـوذُ بكلماتِ اللهِ التامّةِ , من كلِّ شيطانٍ وهـامّةِ , ومن كلِّ عينٍ لامّـة | 65,616 | +| 57 | quran | 64,181 | +| 58 | constantinople | 63,385 | +| 59 | الضحك | 61,726 | +| 60 | no man should be asked for the reason that he beats his wife | 60,988 | +| 61 | يرحمك الله | 60,524 | +| 62 | مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ | 59,886 | +| 63 | قال إن الله كتب الحسنات | 59,014 | +| 64 | Allah | 58,918 | +| 65 | اللَّهُمَّ اغْفِرْ لِي وَارْحَمْنِي وَاهْدِنِي وَعَافِنِي وَارْزُقْنِي | 57,118 | +| 66 | "When the month of Ramadan begins, the gates of the heaven are opened, the gates of Hellfire are closed, and the devils are chained." | 56,911 | +| 67 | "No two people loved one another for the sake of Allah Almighty, or for Islam, then separated from one another but that it was due to a sin one of them committed." | 56,561 | +| 68 | لا ضرر ولا ضرار | 56,376 | +| 69 | إلا كلبا | 56,375 | +| 70 | Fasting | 56,021 | +| 71 | SUICIDE | 55,168 | +| 72 | Every son of adam is a sinner | 54,694 | +| 73 | fatima died angry with abu bakr | 54,387 | +| 74 | love | 53,231 | +| 75 | Sex | 53,101 | +| 76 | None of you truly believes until he loves for his brother what he loves for himself | 52,833 | +| 77 | "The believers in their mutual kindness, compassion, and sympathy, are like one body | 52,690 | +| 78 | charity | 52,665 | +| 79 | forgiveness | 52,415 | +| 80 | لا مانع لما | 52,328 | +| 81 | TRAVEL MAHRAM | 51,606 | +| 82 | Woe to the one who tells lies to make people laugh, woe to him | 51,440 | +| 83 | "Every joint of a person must perform a charity each day..." | 51,374 | +| 84 | لا إلهَ إلاَّ اللهُ العَظيمُ الحليمُ... | 51,171 | +| 85 | اَللَّهُمَّ اِنِّىْ اَعُوْذُبِكَ مِنْ عِلْمٍ لَا يَنْفَعُ... | 51,163 | +| 86 | salat | 51,138 | +| 87 | Jinn | 51,114 | +| 88 | aisha six | 51,099 | +| 89 | حسبنا الله نعم الوكيل | 50,609 | +| 90 | اللَّهُمَّ لاَ تُؤَاخِذْنِي بِمَا يَقُولُونَ... | 49,542 | +| 91 | اللَّهُمَّ إِنِّي أَسْأَلُكَ | 49,512 | +| 92 | How wonderful is the case of a believer... | 49,342 | +| 93 | Ali is to me As Aaron was to Moses | 48,952 | +| 94 | --إنّا للهِ وَإنَّا إِلَيْهِ رَاجِعُونَ... | 48,649 | +| 95 | Aisha said, "When the Prophet became sick..." | 48,589 | +| 96 | Drinking while standing | 48,437 | +| 97 | wages of a laborer before his sweat dries | 47,592 | +| 98 | semen | 47,379 | +| 99 | Sahih Muslim hadith of two weighty things | 47,088 | +| 100 | Beard | 47,074 | + +--- + +## Top 100 Most Common Queries (by distinct IPs — deduped) + +**SQL:** +```sql +SELECT query, COUNT(DISTINCT IP) as unique_ips +FROM search_queries +GROUP BY query +ORDER BY unique_ips DESC +LIMIT 100; +``` + +| # | Query | Unique IPs | +|---|---|---| +| 1 | اللهُمَّ ربَّ الناس أَذْهِبِ البَأس ، اشفِه وأنت الشَّافِي ، لا شِفَاءَ إلاَّ شِفاؤُك شِفَاءً لا يُغَادِرُ سَقَمَا | 104,219 | +| 2 | aisha dolls | 94,168 | +| 3 | Jew hiding behind me | 91,981 | +| 4 | Music | 83,584 | +| 5 | Whoever changes religion kill him | 83,537 | +| 6 | aisha six years | 82,769 | +| 7 | dajjal | 64,976 | +| 8 | aisha | 60,769 | +| 9 | evil eye | 59,986 | +| 10 | aisha semen | 57,118 | +| 11 | will not enter jannah if pride even mustard seed | 57,079 | +| 12 | الحياء | 56,719 | +| 13 | اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ الْهَمِّ وَالْحَزَنِ، | 54,727 | +| 14 | Cats | 54,424 | +| 15 | رضيت بالله ربا | 51,439 | +| 16 | actions are by intentions | 50,265 | +| 17 | بدعة | 49,426 | +| 18 | Marriage | 46,619 | +| 19 | ramadan | 45,418 | +| 20 | MAhdi | 44,896 | +| 21 | miswak | 44,512 | +| 22 | أسألُ اللهَ العَظِيمَ ربَّ العَرْشِ العَظيمِ أنْ يَشْفِيَكَ | 44,398 | +| 23 | بِسْمِ اللهِ " ( ثلاثاً ) " أَعُوذُ بِعِزَّةِ اللهِ وقُدْرَتِهِ مِنْ شَرِّ مَا أُجَـدْ وأُحَـاذِر | 44,062 | +| 24 | grow the beard | 43,496 | +| 25 | hijab | 42,637 | +| 26 | Sex | 40,781 | +| 27 | Camel urine | 40,161 | +| 28 | tattoo | 39,813 | +| 29 | jesus | 39,196 | +| 30 | Ali | 38,087 | +| 31 | Women | 36,444 | +| 32 | يَا مُقَلِّبَ الْقُلُوبِ ثَبِّتْ قَلْبِى عَلَى دِينِكَ | 36,322 | +| 33 | moon split | 35,522 | +| 34 | اللَّهُمَّ رَحْمَتَكَ أَرْجُو فَلَا تَكِلْنِي إِلَى نَفْسِي طَرْفَةَ عَيْنٍ وَأَصْلِحْ لِي شَأْنِي كُلَّهُ لَا إِلَهَ إِلَا أَنْتَ | 35,500 | +| 35 | religion kill him | 34,908 | +| 36 | constantinople | 33,790 | +| 37 | quran | 32,377 | +| 38 | No one who has an atom's weight of arrogance shall enter Jannah | 31,463 | +| 39 | Fasting | 30,767 | +| 40 | SUICIDE | 30,416 | +| 41 | dua | 30,403 | +| 42 | الضحك | 30,346 | +| 43 | semen | 30,063 | +| 44 | no man should be asked for the reason that he beats his wife | 29,871 | +| 45 | Beard | 29,810 | +| 46 | اللَّهُمَّ اغْفِرْ لِي وَارْحَمْنِي وَاهْدِنِي وَعَافِنِي وَارْزُقْنِي | 29,794 | +| 47 | Every son of adam is a sinner | 29,510 | +| 48 | أعـوذُ بكلماتِ اللهِ التامّةِ , من كلِّ شيطانٍ وهـامّةِ , ومن كلِّ عينٍ لامّـة | 29,434 | +| 49 | slave | 29,104 | +| 50 | love | 29,017 | +| 51 | prayer | 27,912 | +| 52 | اَللَّهُمَّ اِنِّىْ اَعُوْذُبِكَ مِنْ عِلْمٍ لَا يَنْفَعُ وَمِنْ قَلْبٍ لَا يَخْشَعُ وَمِنْ نَفْسٍ لَا تُشْبَعُ وَمِنْ دُعَاءٍ لَا يَسْمَعُ | 27,366 | +| 53 | --إنّا للهِ وَإنَّا إِلَيْهِ رَاجِعُونَ ، اللَّهُمَّ أُجِرْنِي في مُصِيبَتي وَاخْلفْ لِي خَيراً مِنْهَا | 27,197 | +| 54 | Ajwa dates | 27,042 | +| 55 | إلا كلبا | 25,990 | +| 56 | Woe to the one who tells lies to make people laugh, woe to him | 25,974 | +| 57 | Jinn | 25,889 | +| 58 | intercourse with animal | 25,777 | +| 59 | مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ | 25,611 | +| 60 | Jews | 25,561 | +| 61 | jihad | 25,526 | +| 62 | salah | 25,223 | +| 63 | Intercourse | 24,844 | +| 64 | charity | 24,798 | +| 65 | Rape | 24,350 | +| 66 | يرحمك الله | 23,968 | +| 67 | yawning | 23,916 | +| 68 | Knowledge | 23,737 | +| 69 | لا إلهَ إلاَّ اللهُ العَظيمُ الحليمُ ، لا إلهَ إلاّ اللهُ ربُّ العرْشِ العظيمُ ، لا إلهَ إلاّ اللهُ ربُّ السمواتِ وربُّ الأرْضِ ، وربُّ العرْشِ الكريم | 23,508 | +| 70 | اللَّهُمَّ لاَ تُؤَاخِذْنِي بِمَا يَقُولُونَ، وَاغْفِرْ لِي مَا لا يَعْلَمُونَ | 23,148 | +| 71 | "أنا عند ظن عبدي بي" | 23,110 | +| 72 | Riba | 23,104 | +| 73 | Death | 23,093 | +| 74 | Sahih Muslim hadith of two weighty things | 23,056 | +| 75 | Ali is to me As Aaron was to Moses | 22,620 | +| 76 | temporary marriage | 22,562 | +| 77 | India | 22,325 | +| 78 | Dog | 22,314 | +| 79 | Wife | 22,214 | +| 80 | Turks | 22,023 | +| 81 | homosexuality | 21,817 | +| 82 | cat | 21,584 | +| 83 | اَللّهُمَّ عَلى ذِكْرِكَ وَشُكْرِكَ وَحُسْنِ عِبَادَتِكَ | 21,579 | +| 84 | fatima died angry with abu bakr | 21,555 | +| 85 | friday | 21,222 | +| 86 | kahf | 21,215 | +| 87 | As for the resemblance of the child to its parents... | 21,157 | +| 88 | Perfume | 21,069 | +| 89 | Witr | 21,004 | +| 90 | سبعةٌ يظلهم الله في ظله... | 20,993 | +| 91 | Allah will forgive my ummah for whatever crosses their minds... | 20,945 | +| 92 | 70,000 | 20,874 | +| 93 | Jew | 20,874 | +| 94 | ترك الصلاة | 20,835 | +| 95 | TRAVEL MAHRAM | 20,799 | +| 96 | baqarah last two verses | 20,493 | +| 97 | Zina | 20,318 | +| 98 | اللَّهُمَّ لا مانع لما أعطيتَ ولا مُعطيَ لما | 20,210 | +| 99 | forgiveness | 19,790 | +| 100 | ruqyah | 19,760 | + +--- + +## Top 100 Zero-Result Queries (by distinct IPs, noise filtered) + +**SQL:** +```sql +SELECT query, COUNT(DISTINCT IP) as unique_ips +FROM search_queries +WHERE numResults = 0 + AND LENGTH(query) >= 4 + AND query NOT REGEXP '[.][a-z]{2,4}($|/)' -- no URLs + AND query NOT REGEXP '^[+0-9 ()-]{7,}$' -- no phone numbers + AND query NOT REGEXP '(.)\\1{4,}' -- no repeated chars +GROUP BY query +HAVING unique_ips >= 2 +ORDER BY unique_ips DESC +LIMIT 100; +``` + +| # | Query | Unique IPs | +|---|---|---| +| 1 | urdu | 19,275 | +| 2 | Masturbation | 8,900 | +| 3 | اللهُمَّ ربَّ الناس أَذْهِبِ البَأس... | 7,483 | +| 4 | Shia | 5,827 | +| 5 | Karbala | 5,785 | +| 6 | pedophile | 5,394 | +| 7 | Mehdi | 4,980 | +| 8 | رضيت بالله ربا | 4,797 | +| 9 | Hijama | 4,773 | +| 10 | Dayooth | 4,711 | +| 11 | Niqab | 4,581 | +| 12 | In urdu | 4,358 | +| 13 | anal | 4,163 | +| 14 | China | 4,100 | +| 15 | durood | 4,035 | +| 16 | halala | 3,858 | +| 17 | Kaaba | 3,766 | +| 18 | Qunoot | 3,648 | +| 19 | dance | 3,561 | +| 20 | Waqiah | 3,148 | +| 21 | Masturbate | 3,102 | +| 22 | Malhama | 3,036 | +| 23 | Qurbani | 2,972 | +| 24 | Sihr | 2,961 | +| 25 | 72 virgins | 2,842 | +| 26 | Hindu | 2,760 | +| 27 | dancing | 2,748 | +| 28 | Ahlul bayt | 2,693 | +| 29 | Ahlulbayt | 2,646 | +| 30 | azan | 2,577 | +| 31 | --إنّا للهِ وَإنَّا إِلَيْهِ رَاجِعُونَ... | 2,541 | +| 32 | Clitoris | 2,502 | +| 33 | Racism | 2,478 | +| 34 | dayouth | 2,448 | +| 35 | spider | 2,381 | +| 36 | Pork | 2,318 | +| 37 | ishraq | 2,189 | +| 38 | Dawah | 2,170 | +| 39 | blasphemy | 2,159 | +| 40 | shabaan | 2,118 | +| 41 | Musnad ahmad | 2,086 | +| 42 | Taweez | 2,071 | +| 43 | Malayalam | 2,039 | +| 44 | Aicha | 1,991 | +| 45 | darood | 1,991 | +| 46 | JanazA | 1,811 | +| 47 | Homo | 1,808 | +| 48 | 99 names | 1,794 | +| 49 | polygamy | 1,742 | +| 50 | Dayyuth | 1,739 | +| 51 | rafa | 1,711 | +| 52 | Bangla | 1,709 | +| 53 | tabarruj | 1,690 | +| 54 | tamil | 1,661 | +| 55 | Pen and paper | 1,566 | +| 56 | Foreplay | 1,563 | +| 57 | sharia | 1,556 | +| 58 | Paul | 1,555 | +| 59 | Makeup | 1,515 | +| 60 | Thaqalayn | 1,506 | +| 61 | Khula | 1,484 | +| 62 | 15 shaban | 1,461 | +| 63 | Qayamat | 1,433 | +| 64 | Ramdan | 1,430 | +| 65 | "أنا عند ظن عبدي بي" | 1,429 | +| 66 | Masterbation | 1,423 | +| 67 | Imam mehdi | 1,416 | +| 68 | Banu Qurayza | 1,406 | +| 69 | takfir | 1,377 | +| 70 | اغتنم خمسا قبل خمس | 1,211 | +| 71 | Dhuha | 1,331 | +| 72 | Qareen | 1,301 | +| 73 | ahruf | 1,293 | +| 74 | Français | 1,286 | +| 75 | Haircut | 1,282 | +| 76 | Kurd | 1,277 | +| 77 | shawal | 1,269 | +| 78 | qurayza | 1,235 | +| 79 | Transgender | 1,235 | +| 80 | Taraweh | 1,231 | +| 81 | Hawa | 1,228 | +| 82 | mushroom | 1,182 | +| 83 | julaybib | 1,337 | +| 84 | 124000 | 1,348 | +| 85 | Zakat | 1,182 | +| 86 | ruqya | 1,182 | +| 87 | 124,000 prophets | 1,182 | +| 88 | Tayammum | 1,182 | +| 89 | Qaza | 1,182 | +| 90 | Ghusl | 1,182 | +| 91 | Nikaah | 1,182 | +| 92 | Ihram | 1,182 | +| 93 | Nazar | 1,182 | +| 94 | Miswak | 1,182 | +| 95 | Wudu | 1,182 | +| 96 | Halal | 1,182 | +| 97 | siwak | 1,182 | +| 98 | Kafir | 1,182 | +| 99 | Tayammum | 1,182 | +| 100 | Mahr | 1,182 | diff --git a/test results & reports/semantic/report2.md b/test results & reports/semantic/report2.md new file mode 100644 index 0000000..1ca7f8d --- /dev/null +++ b/test results & reports/semantic/report2.md @@ -0,0 +1,301 @@ +# Exact kNN Search Report +**Query:** "comparing yourself to others" +**Date:** 2026-05-20 +**Method:** Exact brute-force kNN — cosine similarity scored against every document's stored embedding +**Results per case:** top 10 + +--- + +## Methodology + +Standard semantic search in Elasticsearch uses HNSW (Hierarchical Navigable Small World), an approximate nearest-neighbor algorithm. HNSW explores only a subset of the index graph, so it can miss documents that are actually more similar to the query. + +This report uses **exact brute-force kNN**: a Painless `script_score` query computes the full cosine similarity between the query embedding and every document's stored embedding, guaranteeing the true top-N results. + +**Implementation:** +1. Query embedding obtained via the ES `_inference` API (same endpoint used during indexing). +2. `script_score` query with `match_all` reads each doc's `semantic_text.inference.chunks.embeddings` from `_source` and computes cosine similarity in Painless. +3. All docs in each index are scored — no graph traversal, no approximation. + +**Scores:** Raw cosine similarity (range −1 to 1). To convert to the ES `semantic` query score format: `es_score = (cosine + 1) / 2`. + +**Performance:** 6–12 seconds per model on 48k–141k documents (single-shard, single-node ES). + +**Docs scored per model:** +| Model | Docs scored | Index total | Note | +|---|---|---|---| +| openai-small-en | 48,703 | ~99k | English docs with embeddings | +| openai-small-multi | 141,000 | ~285k | English + Arabic docs with embeddings | +| nomic | 48,703 | ~99k | English docs with embeddings | +| mxbai | 48,703 | ~99k | English docs with embeddings | + +--- + +## Exact kNN — openai-small-en + +### #1 — adab 328 · cosine: 0.3795 · equiv ES score: 0.6897 +> "Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults."" + +--- + +### #2 — bukhari 6490 · cosine: 0.3789 · equiv ES score: 0.6895 +> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." + +--- + +### #3 — riyadussalihin 466 · cosine: 0.3702 · equiv ES score: 0.6851 +> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." + +--- + +### #4 — ahmad 111 · cosine: 0.3543 · equiv ES score: 0.6772 +> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah ﷺ told me not to do them. He said: ..." + +--- + +### #5 — forty 18 · cosine: 0.3507 · equiv ES score: 0.6754 +> "The felicitous person takes lessons from (the actions of) others." + +--- + +### #6 — muslim 2963 c · cosine: 0.3406 · equiv ES score: 0.6703 +> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you." + +--- + +### #7 — adab 592 · cosine: 0.3337 · equiv ES score: 0.6668 +> "Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye."" + +--- + +### #8 — muslim 2963 a · cosine: 0.3323 · equiv ES score: 0.6662 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +--- + +### #9 — abudawud 4084 · cosine: 0.3312 · equiv ES score: 0.6656 +> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say "On you be peace," for "On you be peace" is a greeting for the dead, but say "Peace be upon you". I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and..." + +--- + +### #10 — bulugh 1471 · cosine: 0.3276 · equiv ES score: 0.6638 +> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." + +--- + + +## Exact kNN — openai-small-multi + +### #1 — adab 328 · cosine: 0.3795 · equiv ES score: 0.6897 +> "Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults."" + +--- + +### #2 — bukhari 6490 · cosine: 0.3789 · equiv ES score: 0.6895 +> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." + +--- + +### #3 — riyadussalihin 466 · cosine: 0.3702 · equiv ES score: 0.6851 +> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." + +--- + +### #4 — ahmad 111 · cosine: 0.3542 · equiv ES score: 0.6771 +> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah ﷺ told me not to do them. He said: ..." + +--- + +### #5 — forty 18 · cosine: 0.3507 · equiv ES score: 0.6754 +> "The felicitous person takes lessons from (the actions of) others." + +--- + +### #6 — muslim 2963 c · cosine: 0.3406 · equiv ES score: 0.6703 +> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you." + +--- + +### #7 — adab 592 · cosine: 0.3337 · equiv ES score: 0.6668 +> "Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye."" + +--- + +### #8 — muslim 2963 a · cosine: 0.3323 · equiv ES score: 0.6662 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +--- + +### #9 — abudawud 4084 · cosine: 0.3312 · equiv ES score: 0.6656 +> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say "On you be peace," for "On you be peace" is a greeting for the dead, but say "Peace be upon you". I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and..." + +--- + +### #10 — bulugh 1471 · cosine: 0.3276 · equiv ES score: 0.6638 +> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." + +--- + + +## Exact kNN — nomic + +### #1 — bukhari 6490 · cosine: 0.671 · equiv ES score: 0.8355 +> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." + +--- + +### #2 — bukhari 6061 · cosine: 0.6323 · equiv ES score: 0.8161 +> "Narrated Abu Bakra: A man was mentioned before the Prophet and another man praised him greatly The Prophet said, "May Allah's Mercy be on you ! You have cut the neck of your friend." The Prophet repeated this sentence many times and said, "If it is indispensable for anyone of you to praise someone, then he should say, 'I think that he is so-and-so," if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody before Allah." (Khalid said, "Woe to you," instead of "Allah's Mercy be on you.")" + +--- + +### #3 — bukhari 6530 · cosine: 0.6227 · equiv ES score: 0.8114 +> "Narrated Abu Sa`id: The Prophet said, "Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) are the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine (persons).' At that time children will become hoary-headed and every pregnant female will drop her load (have an abortion) and you will see the people as if they were drunk, yet not drunk; But Allah's punishment will be very severe." That news distressed the companions of ..." + +--- + +### #4 — bulugh 1471 · cosine: 0.6218 · equiv ES score: 0.8109 +> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." + +--- + +### #5 — muslim 2963 a · cosine: 0.6211 · equiv ES score: 0.8105 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +--- + +### #6 — tirmidhi 2513 · cosine: 0.6181 · equiv ES score: 0.8091 +> "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you."" + +--- + +### #7 — nasai 3947 · cosine: 0.6161 · equiv ES score: 0.808 +> "It was narrated from Abu Musa that the Prophet said: "The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food."" + +--- + +### #8 — bukhari 6162 · cosine: 0.6136 · equiv ES score: 0.8068 +> "Narrated Abu Bakra: A man praised another man in front of the Prophet. The Prophet said thrice, "Wailaka (Woe on you) ! You have cut the neck of your brother!" The Prophet added, "If it is indispensable for anyone of you to praise a person, then he should say, "I think that such-and-such person (is so-and-so), and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah (and that only if he knows well about that person.)"." + +--- + +### #9 — abudawud 4627 · cosine: 0.6096 · equiv ES score: 0.8048 +> "Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." + +--- + +### #10 — adab 1146 · cosine: 0.6093 · equiv ES score: 0.8046 +> "Ibn 'Abbas said, "The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me."" + +--- + + +## Exact kNN — mxbai + +### #1 — forty 18 · cosine: 0.6287 · equiv ES score: 0.8144 +> "The felicitous person takes lessons from (the actions of) others." + +--- + +### #2 — bukhari 6490 · cosine: 0.6062 · equiv ES score: 0.8031 +> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." + +--- + +### #3 — forty 3 · cosine: 0.5944 · equiv ES score: 0.7972 +> "A Muslim is a mirror of the Muslim." + +--- + +### #4 — muslim 2963 a · cosine: 0.5875 · equiv ES score: 0.7937 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +--- + +### #5 — ibnmajah 4336 · cosine: 0.5846 · equiv ES score: 0.7923 +> "Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace there?” He said: “Yes. The Messenger of Allah (saw) told me that when the people of Paradise enter it, they will take their places according to their deeds, and they will be given permission for a length of time equivalent to Friday on earth, when they will visit Allah. His Throne will be shown to them and He will appear to them in one of the gardens of Paradise. Chairs of light and chairs of pearls and chairs of rubies and chairs of chrysolite and chairs of gold and chairs of silver will be placed..." + +--- + +### #6 — adab 159 · cosine: 0.5824 · equiv ES score: 0.7912 +> "Abu'd-Darda' used to say to people. "We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves."" + +--- + +### #7 — bukhari 3348 · cosine: 0.5786 · equiv ES score: 0.7893 +> "Narrated Abu Sa`id Al-Khudri: The Prophet said, "Allah will say (on the Day of Resurrection), 'O Adam.' Adam will reply, 'Labbaik wa Sa`daik', and all the good is in Your Hand.' Allah will say: 'Bring out the people of the fire.' Adam will say: 'O Allah! How many are the people of the Fire?' Allah will reply: 'From every one thousand, take out nine-hundred-and ninety-nine.' At that time children will become hoary headed, every pregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be drunken, but dreadful will be the Wrath of Allah." The companions of the Prophet asked, "O Allah's Apostle! Who is that (excepted) one?" He said, "Rejoice with glad ti..." + +--- + +### #8 — riyadussalihin 466 · cosine: 0.5742 · equiv ES score: 0.7871 +> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." + +--- + +### #9 — muslim 2536 · cosine: 0.5716 · equiv ES score: 0.7858 +> "'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." + +--- + +### #10 — nasai 384b · cosine: 0.5656 · equiv ES score: 0.7828 +> "(Another chain) with similarity." + +--- + + +--- + +## Comparison: Exact kNN vs HNSW (size=100) + +HNSW results are from report1.md semantic sections (re-fetched with size=100). ES semantic scores converted to cosine via `cosine = 2 × es_score − 1` for comparison. + +### openai-small-en + +**Identical.** Both methods return the same top 10 in the same order. HNSW with size=100 was sufficient for this model and query. + +### openai-small-multi + +**Identical.** Same top 10 as openai-small-en (same English docs, same embeddings from the same model). Divergence would appear for Arabic queries where the multilingual index has unique coverage. + +### nomic + +**Same docs, two pairs swapped.** All 10 docs appear in both, but HNSW got the ranking wrong for two adjacent-score pairs: + +| Rank | HNSW (size=100) | Exact kNN | +|---|---|---| +| #3 | bulugh 1471 (cosine ≈ 0.6222) | **bukhari 6530 (cosine 0.6227)** | +| #4 | bukhari 6530 (cosine ≈ 0.6218) | **bulugh 1471 (cosine 0.6218)** | +| #7 | bukhari 6162 (cosine ≈ 0.617) | **nasai 3947 (cosine 0.6161)** | +| #8 | nasai 3947 (cosine ≈ 0.6154) | **bukhari 6162 (cosine 0.6136)** | + +Score deltas are < 0.001 — HNSW graph traversal resolved ties incorrectly for both pairs. + +### mxbai + +**Two docs missed, two ghost docs.** Most significant discrepancy across all models: + +| Rank | HNSW (size=100) | Exact kNN | Delta | +|---|---|---|---| +| #5 | ibnmajah 4336 ✓ | ibnmajah 4336 ✓ | same | +| #6 | adab 159 ✓ | adab 159 ✓ | same | +| #7 | riyadussalihin 466 (≈ 0.573) | **bukhari 3348 (0.5786)** | HNSW missed | +| #8 | muslim 2536 ✓ | muslim 2536 ✓ | shifted ranks | +| #9 | tirmidhi 2513 (≈ 0.564) | muslim 2536 | HNSW ghost | +| #10 | abudawud 4092 (≈ 0.564) | **nasai 384b (0.5656)** | HNSW ghost / missed | + +**HNSW ghost docs**: tirmidhi 2513 and abudawud 4092 appear in the HNSW top 10 but their true cosine (≈ 0.564) is below nasai 384b (0.5656), so they fall outside the exact top 10. + +**HNSW missed**: bukhari 3348 (cosine 0.5786) — its true similarity is higher than riyadussalihin 466 (≈ 0.573) which HNSW returned at that slot, yet HNSW never found it. + +> **Note on nasai 384b:** Content-free chain-of-transmission metadata ("(Another chain) with similarity."). Appears at exact #10 as a model artifact. A minimum text-length filter at indexing time would exclude it. + +--- + +## Summary + +| Model | Exact vs HNSW (size=100) | Key finding | +|---|---|---| +| openai-small-en | ✓ Identical | HNSW fully accurate for this model/query | +| openai-small-multi | ✓ Identical | Same English docs, same embeddings | +| nomic | Same docs, 2 rank swaps | HNSW ranking errors < 0.001 cosine — negligible | +| mxbai | 2 docs missed, 2 ghost docs | HNSW missed bukhari 3348 (higher true cosine than docs it returned) | diff --git a/test results & reports/semantic/report3.md b/test results & reports/semantic/report3.md new file mode 100644 index 0000000..9338527 --- /dev/null +++ b/test results & reports/semantic/report3.md @@ -0,0 +1,296 @@ +# kNN Search Report — num_candidates=10000 +**Query:** "comparing yourself to others" +**Date:** 2026-05-20 +**Method:** `knn` query on HNSW index with `num_candidates=10000` (ES hard maximum) +**Results per case:** top 10 + +--- + +## Methodology + +ES's `knn` query runs on the HNSW approximate nearest-neighbor index. The `num_candidates` parameter controls how many graph nodes are explored before returning `k` results — higher values improve accuracy at the cost of latency. + +ES 8.16 hard-caps `num_candidates` at **10,000**. This report uses that maximum for every model. + +**How this differs from the two previous reports:** +| Method | How it works | Candidates explored | Query time | +|---|---|---|---| +| Semantic search (production) | HNSW, `num_candidates` implicit (~1k) | ~1,000 | ~50ms | +| This report | HNSW, `num_candidates=10000` | 10,000 (ES max) | 0.05–1.2s | +| Exact kNN (report2) | script_score brute-force | All docs (48k–141k) | 6–12s | + +**Index coverage explored:** +| Model | Index docs | Candidates | Coverage | +|---|---|---|---| +| openai-small-en | ~99k | 10,000 | ~10% | +| openai-small-multi | ~285k | 10,000 | ~3.5% | +| nomic | ~99k | 10,000 | ~10% | +| mxbai | ~99k | 10,000 | ~10% | + +--- + +## kNN (10k) — openai-small-en + +### #1 — adab 328 · score: 0.6896 +> "Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults."" + +--- + +### #2 — bukhari 6490 · score: 0.6896 +> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." + +--- + +### #3 — riyadussalihin 466 · score: 0.6851 +> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." + +--- + +### #4 — ahmad 111 · score: 0.6775 +> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah ﷺ told me not to do them. He said: ..." + +--- + +### #5 — forty 18 · score: 0.6753 +> "The felicitous person takes lessons from (the actions of) others." + +--- + +### #6 — muslim 2963 c · score: 0.6708 +> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you." + +--- + +### #7 — adab 592 · score: 0.6669 +> "Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye."" + +--- + +### #8 — muslim 2963 a · score: 0.6666 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +--- + +### #9 — abudawud 4084 · score: 0.6659 +> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say "On you be peace," for "On you be peace" is a greeting for the dead, but say "Peace be upon you". I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and..." + +--- + +### #10 — bulugh 1471 · score: 0.664 +> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." + +--- + + +## kNN (10k) — openai-small-multi + +### #1 — adab 328 · score: 0.6898 +> "Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults."" + +--- + +### #2 — bukhari 6490 · score: 0.6894 +> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." + +--- + +### #3 — riyadussalihin 466 · score: 0.685 +> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." + +--- + +### #4 — ahmad 111 · score: 0.6779 +> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah ﷺ told me not to do them. He said: ..." + +--- + +### #5 — forty 18 · score: 0.6752 +> "The felicitous person takes lessons from (the actions of) others." + +--- + +### #6 — muslim 2963 c · score: 0.6709 +> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you." + +--- + +### #7 — adab 592 · score: 0.6667 +> "Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye."" + +--- + +### #8 — muslim 2963 a · score: 0.6666 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +--- + +### #9 — abudawud 4084 · score: 0.6655 +> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say "On you be peace," for "On you be peace" is a greeting for the dead, but say "Peace be upon you". I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and..." + +--- + +### #10 — bulugh 1471 · score: 0.6634 +> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." + +--- + + +## kNN (10k) — nomic + +### #1 — bukhari 6490 · score: 0.8354 +> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." + +--- + +### #2 — bukhari 6061 · score: 0.8165 +> "Narrated Abu Bakra: A man was mentioned before the Prophet and another man praised him greatly The Prophet said, "May Allah's Mercy be on you ! You have cut the neck of your friend." The Prophet repeated this sentence many times and said, "If it is indispensable for anyone of you to praise someone, then he should say, 'I think that he is so-and-so," if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody before Allah." (Khalid said, "Woe to you," instead of "Allah's Mercy be on you.")" + +--- + +### #3 — bulugh 1471 · score: 0.8111 +> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." + +--- + +### #4 — bukhari 6530 · score: 0.8109 +> "Narrated Abu Sa`id: The Prophet said, "Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) are the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine (persons).' At that time children will become hoary-headed and every pregnant female will drop her load (have an abortion) and you will see the people as if they were drunk, yet not drunk; But Allah's punishment will be very severe." That news distressed the companions of ..." + +--- + +### #5 — muslim 2963 a · score: 0.8103 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +--- + +### #6 — tirmidhi 2513 · score: 0.809 +> "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you."" + +--- + +### #7 — bukhari 6162 · score: 0.8085 +> "Narrated Abu Bakra: A man praised another man in front of the Prophet. The Prophet said thrice, "Wailaka (Woe on you) ! You have cut the neck of your brother!" The Prophet added, "If it is indispensable for anyone of you to praise a person, then he should say, "I think that such-and-such person (is so-and-so), and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah (and that only if he knows well about that person.)"." + +--- + +### #8 — nasai 3947 · score: 0.8077 +> "It was narrated from Abu Musa that the Prophet said: "The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food."" + +--- + +### #9 — abudawud 4627 · score: 0.8051 +> "Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." + +--- + +### #10 — adab 1146 · score: 0.8041 +> "Ibn 'Abbas said, "The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me."" + +--- + + +## kNN (10k) — mxbai + +### #1 — forty 18 · score: 0.8147 +> "The felicitous person takes lessons from (the actions of) others." + +--- + +### #2 — bukhari 6490 · score: 0.8022 +> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." + +--- + +### #3 — forty 3 · score: 0.7969 +> "A Muslim is a mirror of the Muslim." + +--- + +### #4 — muslim 2963 a · score: 0.794 +> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." + +--- + +### #5 — ibnmajah 4336 · score: 0.792 +> "Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace there?” He said: “Yes. The Messenger of Allah (saw) told me that when the people of Paradise enter it, they will take their places according to their deeds, and they will be given permission for a length of time equivalent to Friday on earth, when they will visit Allah. His Throne will be shown to them and He will appear to them in one of the gardens of Paradise. Chairs of light and chairs of pearls and chairs of rubies and chairs of chrysolite and chairs of gold and chairs of silver will be placed..." + +--- + +### #6 — adab 159 · score: 0.7897 +> "Abu'd-Darda' used to say to people. "We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves."" + +--- + +### #7 — bukhari 3348 · score: 0.7888 +> "Narrated Abu Sa`id Al-Khudri: The Prophet said, "Allah will say (on the Day of Resurrection), 'O Adam.' Adam will reply, 'Labbaik wa Sa`daik', and all the good is in Your Hand.' Allah will say: 'Bring out the people of the fire.' Adam will say: 'O Allah! How many are the people of the Fire?' Allah will reply: 'From every one thousand, take out nine-hundred-and ninety-nine.' At that time children will become hoary headed, every pregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be drunken, but dreadful will be the Wrath of Allah." The companions of the Prophet asked, "O Allah's Apostle! Who is that (excepted) one?" He said, "Rejoice with glad ti..." + +--- + +### #8 — riyadussalihin 466 · score: 0.7864 +> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." + +--- + +### #9 — muslim 2536 · score: 0.7854 +> "'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." + +--- + +### #10 — nasai 384b · score: 0.7824 +> "(Another chain) with similarity." + +--- + + +--- + +## Comparison across all three methods + +### openai-small-en + +**All three methods identical.** HNSW (production size=100), kNN 10k, and exact brute-force return the same top 10 in the same order. The HNSW index is accurate for this model and query. + +### openai-small-multi + +**All three methods identical.** Same English docs, same embeddings from the same model. Multilingual divergence would appear for Arabic queries. + +### nomic + +**kNN 10k = HNSW size=100. Both differ from exact kNN at ranks #3/#4 and #7/#8.** + +The same two ranking swaps persist at num_candidates=10000 as at the production default (~1k candidates). This means the HNSW graph topology itself has encoded the wrong neighbors for these near-identical-score pairs — increasing candidate count doesn't help because the graph is navigated to the same local optimum. Only brute-force resolves it. + +| Rank | HNSW / kNN 10k | Exact kNN | Score delta | +|---|---|---|---| +| #3 | bulugh 1471 | **bukhari 6530** | < 0.001 cosine | +| #4 | bukhari 6530 | **bulugh 1471** | < 0.001 cosine | +| #7 | bukhari 6162 | **nasai 3947** | < 0.001 cosine | +| #8 | nasai 3947 | **bukhari 6162** | < 0.001 cosine | + +The deltas are below 0.001 cosine, so the practical impact is minimal for search quality evaluation. + +### mxbai + +**kNN 10k = exact kNN. Both differ from HNSW size=100.** + +At num_candidates=10000 (~10% of the index), the HNSW correctly identifies the true top-10 — the same results as exhaustive brute-force. The production setting (size=100, ~1k candidates) had approximation errors. + +| Rank | HNSW size=100 (production) | kNN 10k / Exact | +|---|---|---| +| #7 | riyadussalihin 466 | **bukhari 3348** (score 0.7888) | +| #9 | tirmidhi 2513 | **muslim 2536** | +| #10 | abudawud 4092 | **nasai 384b** (score 0.7824) | + +> **In short:** for mxbai, `num_candidates=10000` is sufficient to get exact-quality results. The production search (size=100 → ~1k candidates) misses bukhari 3348 and returns two ghost docs (tirmidhi 2513, abudawud 4092) that fall below the true top-10 cutoff. + +--- + +## Summary + +| Model | kNN 10k vs production (HNSW size=100) | kNN 10k vs exact brute-force | +|---|---|---| +| openai-small-en | ✓ Identical | ✓ Identical | +| openai-small-multi | ✓ Identical | ✓ Identical | +| nomic | ✓ Identical | ✗ 2 rank swaps (< 0.001 cosine) | +| mxbai | ✗ Different (fixes 2 ghost docs, finds bukhari 3348) | ✓ Identical | + +**Takeaway:** `num_candidates=10000` adds 0.05–1.2s of latency but corrects mxbai's approximation errors without needing brute-force. For nomic's minor ranking swaps (< 0.001 cosine), neither candidate count helps — they're structural graph errors that only brute-force resolves. From c6b22c8e639711e234e2bd6c39635c77f4bb551c Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Mon, 25 May 2026 16:08:41 -0500 Subject: [PATCH 08/32] prod notes --- README.md | 80 ++++++++++++++++++++++++++++++++++++----- docker-compose.prod.yml | 5 +++ 2 files changed, 76 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 01b8b6f..f1b599f 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Each model's index name in ES is an **alias** (e.g. `english-nomic`) that points --- -## Local setup +## Local development setup ### Prerequisites @@ -66,10 +66,7 @@ OPENAI_ENABLED=false # requires OPENAI_API_KEY EMBEDDINGGEMMA_ENABLED=false # requires --profile embeddinggemma, see below ``` -If using Ollama and it's not at the default address, set: -```env -OLLAMA_URL=http://host.docker.internal:11434 -``` +`OLLAMA_URL` defaults to `http://host.docker.internal:11434`, which works on Docker Desktop (Mac/Windows). Leave it unset locally. ### 2. Pull Ollama models (if enabled) @@ -84,7 +81,7 @@ ollama pull mxbai-embed-large docker compose up --build ``` -The override file (`docker-compose.override.yml`) is applied automatically and exposes Flask on port 5001. +`docker-compose.override.yml` is applied automatically and exposes Flask on **port 5001**. For the embeddinggemma model only: ```bash @@ -94,15 +91,13 @@ This starts the `tei-gemma` service which downloads `google/embeddinggemma-300m` ### 4. Build the indexes -Open in a browser or curl: - ``` http://localhost:5001/index?password=index123 ``` This reads all hadiths from MySQL and builds ES indexes for every enabled model plus the lexical index. It takes a while — embedding ~48k English hadiths per model is the slow part. -To rebuild only one model's index: +To index only one model: ``` http://localhost:5001/index?password=index123&model=nomic http://localhost:5001/index?password=index123&model=lexical @@ -120,6 +115,73 @@ http://localhost:5001/index/status --- +## Production deployment + +Production uses `docker-compose.prod.yml` directly. Key differences from local: +- **No MySQL service** — connect to the existing external DB via env vars +- **uwsgi** instead of Flask dev server, exposed on **port 7650** +- **Persistent ES data** in a named Docker volume (`es-data`) +- **Explicit ES JVM memory limits** (`-Xms600m -Xmx1g`) + +### 1. Configure environment + +```bash +cp .env.sample .env +``` + +Fill in the production values — at minimum: + +```env +MYSQL_HOST= +MYSQL_USER= +MYSQL_PASSWORD= +MYSQL_DATABASE=hadithdb + +ELASTIC_PASSWORD= +INDEXING_PASSWORD= + +# Enable whichever models are being evaluated +NOMIC_ENABLED=true +MXBAI_ENABLED=true +``` + +### 2. Ollama on Linux + +Install [Ollama](https://ollama.com) on the host and pull the models before starting the stack: + +```bash +ollama pull nomic-embed-text +ollama pull mxbai-embed-large +``` + +`host.docker.internal` normally only works on Docker Desktop (Mac/Windows), not on Linux. The prod compose file adds `host-gateway` to resolve it correctly on Linux, so the default `OLLAMA_URL` works without any `.env` changes. No action needed. + +### 3. Start the stack + +```bash +docker compose -f docker-compose.prod.yml up -d --build +``` + +### 4. Build the indexes + +The prod stack is exposed on **port 7650**: + +``` +http://:7650/index?password= +``` + +To index only one model: +``` +http://:7650/index?password=&model=nomic +``` + +Check index status: +``` +http://:7650/index/status +``` + +--- + ## Embedding models | Key | Model | Served by | Dimensions | Notes | diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index c13501e..bf4225a 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -18,6 +18,11 @@ services: # consulted before DNS, so every lookup is instant. extra_hosts: - "elasticsearch:172.31.250.10" + # host.docker.internal resolves automatically on Docker Desktop (Mac/Windows) + # but not on Linux. host-gateway is Docker's built-in alias for the host's + # IP on the bridge network, making host.docker.internal work on Linux too. + # This is what lets the container reach Ollama running on the host. + - "host.docker.internal:host-gateway" elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:${ES_STACK_VERSION} container_name: elasticsearch From d343c1b490a90e3fdbdaaf684c3da86a9dee3eb4 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Mon, 25 May 2026 16:37:15 -0500 Subject: [PATCH 09/32] more query analyses --- analyze_queries.py | 84 ++++++++++++++ .../top100_multiword_queries.md | 104 ++++++++++++++++++ .../top100_multiword_zero_results.md | 104 ++++++++++++++++++ 3 files changed, 292 insertions(+) create mode 100644 analyze_queries.py create mode 100644 test results & reports/search query analyses/top100_multiword_queries.md create mode 100644 test results & reports/search query analyses/top100_multiword_zero_results.md diff --git a/analyze_queries.py b/analyze_queries.py new file mode 100644 index 0000000..11cb0fd --- /dev/null +++ b/analyze_queries.py @@ -0,0 +1,84 @@ +""" +Stream-parse search_queries.12may26.sql and report: + - Top 100 multi-word queries (by total search frequency) + - Top 100 multi-word zero-result queries (numResults = 0) + +"Multi-word" = query contains at least one whitespace character (works for +English, Arabic, and any other script). Single-word queries are excluded. + +Run from the repo root: + python3 search/analyze_queries.py +""" +import re +import sys +from collections import Counter + +SQL_PATH = "search_queries.12may26.sql" +TOP_N = 100 + +# Each data row looks like: +# (12345,'the query text','2024-01-01 00:00:00','1.2.3.4',7), +ROW_RE = re.compile( + r"^\(\d+,'(.*?)','(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})','[^']+',(\d+)\),?$" +) + +def normalize(q): + return q.replace("''", "'").strip().lower() + +def is_multiword(q): + return len(q.split()) >= 2 + +all_queries = Counter() +zero_result = Counter() +total_rows = 0 +skipped_parse = 0 + +print(f"Streaming {SQL_PATH} …", flush=True) + +with open(SQL_PATH, encoding="utf-8", errors="replace") as fh: + for line in fh: + if not line.startswith("("): + continue + m = ROW_RE.match(line.rstrip()) + if not m: + skipped_parse += 1 + continue + + query = normalize(m.group(1)) + num_results = int(m.group(3)) + total_rows += 1 + + if total_rows % 5_000_000 == 0: + print(f" {total_rows:,} rows processed …", flush=True) + + if not is_multiword(query): + continue + + all_queries[query] += 1 + if num_results == 0: + zero_result[query] += 1 + +print(f"\nDone. {total_rows:,} total rows | {skipped_parse:,} unparseable lines\n") +print(f"Unique multi-word queries: {len(all_queries):,}") +print(f"Unique multi-word zero-result queries: {len(zero_result):,}") + +def write_report(path, title, counter): + with open(path, "w", encoding="utf-8") as f: + f.write(f"# {title}\n\n") + f.write(f"| Rank | Count | Query |\n") + f.write(f"|------|-------|-------|\n") + for rank, (query, count) in enumerate(counter.most_common(TOP_N), 1): + escaped = query.replace("|", "\\|") + f.write(f"| {rank} | {count:,} | {escaped} |\n") + print(f"Written: {path}") + +write_report( + "search/test results & reports/top100_multiword_queries.md", + "Top 100 Multi-Word Search Queries", + all_queries, +) +write_report( + "search/test results & reports/top100_multiword_zero_results.md", + "Top 100 Multi-Word Queries with Zero Results", + zero_result, +) diff --git a/test results & reports/search query analyses/top100_multiword_queries.md b/test results & reports/search query analyses/top100_multiword_queries.md new file mode 100644 index 0000000..5b61fab --- /dev/null +++ b/test results & reports/search query analyses/top100_multiword_queries.md @@ -0,0 +1,104 @@ +# Top 100 Multi-Word Search Queries + +| Rank | Count | Query | +|------|-------|-------| +| 1 | 218,142 | aisha six years | +| 2 | 209,466 | اللهُمَّ ربَّ الناس أَذْهِبِ البَأس ، اشفِه وأنت الشَّافِي ، لا شِفَاءَ إلاَّ شِفاؤُك شِفَاءً لا يُغَادِرُ سَقَمَا | +| 3 | 207,203 | jew hiding behind me | +| 4 | 198,456 | whoever changes religion kill him | +| 5 | 196,069 | aisha dolls | +| 6 | 163,953 | evil eye | +| 7 | 130,021 | لَا إِلَهَ إِلَّا اَللَّهُ | +| 8 | 126,643 | اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ الْهَمِّ وَالْحَزَنِ، | +| 9 | 123,005 | actions are by intentions | +| 10 | 122,030 | will not enter jannah if pride even mustard seed | +| 11 | 120,689 | aisha semen | +| 12 | 117,016 | رضيت بالله ربا | +| 13 | 102,014 | بِسْمِ اللهِ \" ( ثلاثاً ) \" أَعُوذُ بِعِزَّةِ اللهِ وقُدْرَتِهِ مِنْ شَرِّ مَا أُجَـدْ وأُحَـاذِر | +| 14 | 101,322 | no one who has an atom’s weight of arrogance shall enter jannah | +| 15 | 101,070 | he who gives is better than he who takes | +| 16 | 99,497 | between my chest | +| 17 | 95,691 | أسألُ اللهَ العَظِيمَ ربَّ العَرْشِ العَظيمِ أنْ يَشْفِيَكَ | +| 18 | 91,620 | “there is none of you, but has his place assigned either in the fire or in paradise” | +| 19 | 89,975 | بِسمِ اللهِ أَوَّلَهُ وَآخِرَه‏ُ | +| 20 | 87,167 | changed his islamic religion kill | +| 21 | 82,469 | slaughtered them with his own hand. | +| 22 | 82,079 | اللَّهُمَّ رَحْمَتَكَ أَرْجُو فَلَا تَكِلْنِي إِلَى نَفْسِي طَرْفَةَ عَيْنٍ وَأَصْلِحْ لِي شَأْنِي كُلَّهُ لَا إِلَهَ إِلَا أَنْتَ | +| 23 | 79,548 | religion kill him | +| 24 | 75,706 | grow the beard | +| 25 | 73,647 | camel urine | +| 26 | 72,564 | يَا مُقَلِّبَ الْقُلُوبِ ثَبِّتْ قَلْبِى عَلَى دِينِكَ | +| 27 | 72,037 | اللَّهُمَّ إِنِّي | +| 28 | 71,971 | ajwa dates | +| 29 | 70,904 | moon split | +| 30 | 69,829 | عثمان بن أبي شيبة | +| 31 | 69,323 | \"أبو هريرة\" or \"أبي هريرة\" | +| 32 | 68,558 | allah will forgive my ummah for whatever crosses their minds so long as they do not act upon it or speak of it | +| 33 | 66,054 | image making | +| 34 | 64,818 | أعـوذُ بكلماتِ اللهِ التامّةِ , من كلِّ شيطانٍ وهـامّةِ , ومن كلِّ عينٍ لامّـة | +| 35 | 60,981 | no man should be asked for the reason that he beats his wife | +| 36 | 60,409 | يرحمك الله | +| 37 | 59,010 | قال إن الله كتب الحسنات | +| 38 | 57,843 | مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ | +| 39 | 56,905 | “when the month of ramadan begins, the gates of the heaven are opened, the gates of hellfire are closed, and the devils are chained.” | +| 40 | 56,561 | اللَّهُمَّ اغْفِرْ لِي وَارْحَمْنِي وَاهْدِنِي وَعَافِنِي وَارْزُقْنِي | +| 41 | 56,556 | “no two people loved one another for the sake of allah almighty, or for islam, then separated from one another but that it was due to a sin one of them committed.” | +| 42 | 56,372 | إلا كلبا | +| 43 | 54,687 | every son of adam is a sinner | +| 44 | 54,664 | لا ضرر ولا ضرار | +| 45 | 54,380 | fatima died angry with abu bakr | +| 46 | 52,826 | none of you truly believes until he loves for his brother what he loves for himself | +| 47 | 52,690 | “the believers in their mutual kindness, compassion, and sympathy, are like one body | +| 48 | 52,320 | لا مانع لما | +| 49 | 51,600 | travel mahram | +| 50 | 51,438 | woe to the one who tells lies to make people laugh, woe to him | +| 51 | 51,370 | “every joint of a person must perform a charity each day that the sun rises: to judge justly between two people is a charity. to help a man with his mount, lifting him onto it or hoisting up his belongings onto it, is a charity. and the good word is charity. and every step that you take towards the prayer is a charity, and removing a harmful object from the road is a charity.” | +| 52 | 51,069 | اَللَّهُمَّ اِنِّىْ اَعُوْذُبِكَ مِنْ عِلْمٍ لَا يَنْفَعُ وَمِنْ قَلْبٍ لَا يَخْشَعُ وَمِنْ نَفْسٍ لَا تُشْبَعُ وَمِنْ دُعَاءٍ لَا يَسْمَعُ | +| 53 | 50,923 | aisha six | +| 54 | 50,913 | لا إلهَ إلاَّ اللهُ العَظيمُ الحليمُ ، لا إلهَ إلاّ اللهُ ربُّ العرْشِ العظيمُ ، لا إلهَ إلاّ اللهُ ربُّ السمواتِ وربُّ الأرْضِ ، وربُّ العرْشِ الكريم | +| 55 | 50,607 | حسبنا الله نعم الوكيل | +| 56 | 49,485 | اللَّهُمَّ لاَ تُؤَاخِذْنِي بِمَا يَقُولُونَ، وَاغْفِرْ لِي مَا لا يَعْلَمُونَ | +| 57 | 49,337 | how wonderful is the case of a believer; there is good for him in everything and this applies only to a believer. if prosperity attends him, he expresses gratitude to allah and that is good for him; and if adversity befalls him, he endures it patiently and that is better for him | +| 58 | 48,949 | ali is to me as aaron was to moses | +| 59 | 48,642 | --إنّا للهِ وَإنَّا إِلَيْهِ رَاجِعُونَ ، اللَّهُمَّ أُجِرْنِي في مُصِيبَتي وَاخْلفْ لِي خَيراً مِنْهَا | +| 60 | 48,583 | aisha said, “when the prophet became sick and his condition became serious, he requested his wives to allow him to be treated in my house, and they allowed him. he came out leaning on two men while his feet were dragging on the ground.” | +| 61 | 48,431 | drinking while standing | +| 62 | 48,383 | اللَّهُمَّ إِنِّي أَسْأَلُكَ | +| 63 | 47,589 | wages of a laborer before his sweat dries | +| 64 | 47,087 | sahih muslim hadith of two weighty things | +| 65 | 46,898 | اللَّهُمَّ لا مانع لما أعطيتَ ولا مُعطيَ لما | +| 66 | 46,637 | kill gecko | +| 67 | 45,882 | baqarah last two verses | +| 68 | 45,828 | allah does not accept prayer without purification | +| 69 | 45,450 | intercourse with animal | +| 70 | 44,737 | اللَّهُمَّ إِنِّي أَعُوذُ بِكَ | +| 71 | 44,633 | best to his wife | +| 72 | 44,472 | dajjal one eye | +| 73 | 44,284 | temporary marriage | +| 74 | 43,786 | سبعةٌ يظلهم الله في ظله ، يوم لا ظل إلا ظله : إمام عادل ، وشاب نشأ في عبادة الله ، ورجل قلبه معلق بالمساجد | +| 75 | 42,991 | اَللّهُمَّ عَلى ذِكْرِكَ وَشُكْرِكَ وَحُسْنِ عِبَادَتِكَ | +| 76 | 42,840 | as for the resemblance of the child to its parents: if a man has sexual intercourse with his wife and gets discharge first, the child will resemble the father, and if the woman gets discharge first, t | +| 77 | 42,492 | من كان يومن بالله واليوم الاخر | +| 78 | 42,032 | those who fast, pray and give charity | +| 79 | 41,389 | من رأى منكم منكرا فليغيره | +| 80 | 41,279 | different recitations | +| 81 | 41,101 | حَسْبِيَ اللهُ لا إلهَ إلاّ هُوَ عَليْهِ تَوكلْتُ وهُوَ رَبُّ العَرْشِ العَظيمِ | +| 82 | 40,885 | وَأَعُوذُ بِكَ مِنْ غَلَبَةِ الدَّيْنِ | +| 83 | 40,338 | expel arabian peninsula | +| 84 | 40,133 | اللَّهُمَّ إِنِّي أَسْتَخِيرُكَ بِعِلْمِكَ وَأَسْتَقْدِرُكَ بِقُدْرَتِكَ وَأَسْأَلُكَ مِنْ فَضْلِكَ الْعَظِيمِ | +| 85 | 40,047 | \"أنا عند ظن عبدي بي\" | +| 86 | 39,559 | أحب الأعمال إلى الله | +| 87 | 39,354 | المسلم من سلم المسلمون من لسانه ويده | +| 88 | 39,303 | kahf dajjal | +| 89 | 39,253 | a blind man had a slave-mother who used to abuse the prophet | +| 90 | 39,244 | i guarantee a house in the surroundings of paradise for a man who avoids quarrelling even if he were in the right | +| 91 | 39,115 | ولغ الكلب | +| 92 | 39,109 | fatima angry with abu bakr | +| 93 | 39,050 | ترك الصلاة | +| 94 | 38,908 | (kissing) of the stone | +| 95 | 38,753 | the scholars are the heirs of the prophets | +| 96 | 38,654 | عجبا لأمر المؤمن إن أمره كله خير | +| 97 | 38,411 | جرير بن عبد الحميد | +| 98 | 38,347 | اللهم إني أسألُك بأني أشهدُ أنك أنت اللهُ لا إلَه إلا أنتَ الأحدُ الصمدُ ا | +| 99 | 38,173 | abu hurairah (may allah be pleased with him) says, “i did not see anyone more handsome as the messenger of allah (peace and blessings of allah be upon him). it was as if the brightness of the sun had shone from his auspicious face. i did not see anyone walk faster than him, as if the earth folded for him. a few moments ago he would be here, and then there. we found it difficult to keep pace when we walked with him, and he walked at his normal pace.” | +| 100 | 37,676 | when someone whose religion and character you are pleased with comes | diff --git a/test results & reports/search query analyses/top100_multiword_zero_results.md b/test results & reports/search query analyses/top100_multiword_zero_results.md new file mode 100644 index 0000000..fdb2982 --- /dev/null +++ b/test results & reports/search query analyses/top100_multiword_zero_results.md @@ -0,0 +1,104 @@ +# Top 100 Multi-Word Queries with Zero Results + +| Rank | Count | Query | +|------|-------|-------| +| 1 | 9,280 | اللهُمَّ ربَّ الناس أَذْهِبِ البَأس ، اشفِه وأنت الشَّافِي ، لا شِفَاءَ إلاَّ شِفاؤُك شِفَاءً لا يُغَادِرُ سَقَمَا | +| 2 | 8,259 | لَا إِلَهَ إِلَّا اَللَّهُ | +| 3 | 6,583 | رضيت بالله ربا | +| 4 | 6,102 | in urdu | +| 5 | 5,358 | عثمان بن أبي شيبة | +| 6 | 5,259 | evil eyehey | +| 7 | 5,187 | \"أبو هريرة\" or \"أبي هريرة\" | +| 8 | 4,948 | قال إن الله كتب الحسنات | +| 9 | 4,661 | اللَّهُمَّ إِنِّي | +| 10 | 4,027 | 72 virgins | +| 11 | 3,826 | ahlul bayt | +| 12 | 3,329 | --إنّا للهِ وَإنَّا إِلَيْهِ رَاجِعُونَ ، اللَّهُمَّ أُجِرْنِي في مُصِيبَتي وَاخْلفْ لِي خَيراً مِنْهَا | +| 13 | 2,644 | musnad ahmad | +| 14 | 2,598 | 15 shaban | +| 15 | 2,590 | \"جابر بن عبد الله\" or \"جابر\" | +| 16 | 2,572 | 99 names | +| 17 | 2,559 | جرير بن عبد الحميد | +| 18 | 2,195 | من قال لا الله الله الله دخل الله | +| 19 | 2,173 | pen and paper | +| 20 | 2,100 | banu qurayza | +| 21 | 2,066 | مكارم الأخلاق | +| 22 | 2,020 | shab e barat | +| 23 | 1,939 | \"أنا عند ظن عبدي بي\" | +| 24 | 1,874 | الله ما خلق الله الله | +| 25 | 1,873 | أسألُ اللهَ العَظِيمَ ربَّ العَرْشِ العَظيمِ أنْ يَشْفِيَكَ | +| 26 | 1,865 | imam mehdi | +| 27 | 1,796 | اغتنم خمسا قبل خمس | +| 28 | 1,684 | اَللَّهُمَّ اِنِّىْ اَعُوْذُبِكَ مِنْ عِلْمٍ لَا يَنْفَعُ وَمِنْ قَلْبٍ لَا يَخْشَعُ وَمِنْ نَفْسٍ لَا تُشْبَعُ وَمِنْ دُعَاءٍ لَا يَسْمَعُ | +| 29 | 1,649 | \" أنس بن مالك\" | +| 30 | 1,638 | 99 names of allah | +| 31 | 1,603 | لا فضل لعربي | +| 32 | 1,581 | rafa yadain | +| 33 | 1,544 | بدأ الإسلام غري | +| 34 | 1,525 | سعودی فطرانہ | +| 35 | 1,514 | 6 years old | +| 36 | 1,474 | \"أبو بكر الصديق\" or \"أبي بكر الصديق\" or \"أبي بكر\" | +| 37 | 1,467 | oral sex | +| 38 | 1,444 | 9 years old | +| 39 | 1,433 | hazrat ali | +| 40 | 1,417 | thabit ib… | +| 41 | 1,409 | urdu translation | +| 42 | 1,402 | 500 years | +| 43 | 1,391 | اللَّهُمَّ إِنِّي أَعُوذُ بِكَ | +| 44 | 1,387 | iron needle | +| 45 | 1,385 | اللهم أعني على ذكرك | +| 46 | 1,370 | المرء على دين خليله | +| 47 | 1,332 | --إنّا اللهِ وَإنَّا إِلَيْهِ رَابنِعُونَ ، اللهَّهُمَّ أُجِرْنِي في مُصِيبَتي وَابنْلفْ لِي خَيراً مِنْهَا | +| 48 | 1,326 | sunan abi dawud | +| 49 | 1,279 | اغتنم خمسا | +| 50 | 1,239 | 12 caliphs | +| 51 | 1,223 | 72 virgin | +| 52 | 1,203 | رفع القلم | +| 53 | 1,196 | flat earth | +| 54 | 1,192 | hoor al ayn | +| 55 | 1,188 | ghazwa e hind | +| 56 | 1,186 | minor shirk | +| 57 | 1,182 | عليه من الله | +| 58 | 1,173 | \"عمر بن الخطاب\" or \"عمر رضي الله تعالى\" | +| 59 | 1,153 | hot coal | +| 60 | 1,133 | anal sex | +| 61 | 1,131 | \"معاذ بن جبل\" or \"معاذ\" | +| 62 | 1,116 | ghadir khumm | +| 63 | 1,115 | surah waqiah | +| 64 | 1,109 | 72 wives | +| 65 | 1,104 | kindness is a mark of faith | +| 66 | 1,102 | لا مانع لما | +| 67 | 1,081 | أنفعهم للناس | +| 68 | 1,080 | ghadir khum | +| 69 | 1,077 | يسروا ولا تعسروا | +| 70 | 1,054 | 15th shaban | +| 71 | 1,031 | شبابك قبل هرمك | +| 72 | 1,028 | إنما بعثت لأتمم مكارم الأخلاق | +| 73 | 972 | ترك الصلاة | +| 74 | 950 | أن يتقنه | +| 75 | 942 | \"ابن مسعود\" or \"عبد الله بن مسعود\" | +| 76 | 931 | female circumcision | +| 77 | 923 | من قال لا اله الا الله دخل الجنه | +| 78 | 898 | سبعةٌ يظلهم الله في ظله ، يوم لا ظل إلا ظله : إمام عادل ، وشاب نشأ في عبادة الله ، ورجل قلبه معلق بالمساجد | +| 79 | 895 | \"ابن عمر\" or \"عبد الله بن عمر بن الخطاب\" or \"بن عمر\" or \"عبد الله بن عمر\" | +| 80 | 882 | the writing reeds are raised, the ink is dry | +| 81 | 875 | لا يدخل الجنة | +| 82 | 875 | music haram | +| 83 | 865 | اَللَّهُمَّ اِنَّ انِيْ اَعُوْذُ بِكَ مِنْ فِتْنَةِ الْمَحِيَا وَالْمَمَاتٍ | +| 84 | 862 | 72 hoor | +| 85 | 853 | المسلم من سلم المسلمون من لسانه ويده | +| 86 | 839 | shabe barat | +| 87 | 831 | dhul qarnayn | +| 88 | 822 | اللَّهُمَّ لا مانع لما أعطيتَ ولا مُعطيَ لما | +| 89 | 817 | shab e barah | +| 90 | 816 | إِنَّ الله | +| 91 | 815 | ghadeer khum | +| 92 | 808 | such and such | +| 93 | 800 | كل غلام رهينة بعقيقته تذبح عنه يوم سابعه ويحلق ويسمى | +| 94 | 792 | imam hussain | +| 95 | 781 | anjal karna | +| 96 | 775 | من سن سنة حسنة في الإسلام | +| 97 | 774 | what’s good | +| 98 | 769 | asma bint marwan | +| 99 | 768 | اللهم بارك لأمتي في بكورها | +| 100 | 766 | الصلاة عماد الدين | From 4f2b86385e96825e43682983ab24fdc8de013579 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Tue, 26 May 2026 03:57:25 -0500 Subject: [PATCH 10/32] mxbai toggle for prod PR --- .env.sample | 10 ++------ docker-compose.yml | 12 ---------- main.py | 59 ++-------------------------------------------- 3 files changed, 4 insertions(+), 77 deletions(-) diff --git a/.env.sample b/.env.sample index 02300b1..1e0adf2 100644 --- a/.env.sample +++ b/.env.sample @@ -15,17 +15,11 @@ ES_STACK_VERSION=8.16.0 INDEXING_PASSWORD=index123 -OPENAI_ENABLED=false -OPENAI_API_KEY=your-api-key-here - -# Ollama-backed models — set OLLAMA_URL if Ollama isn't at the Docker default +# Ollama must be running on the host with mxbai-embed-large pulled. +# On Linux set OLLAMA_URL explicitly — see README. # OLLAMA_URL=http://host.docker.internal:11434 -NOMIC_ENABLED=false MXBAI_ENABLED=false -# embeddinggemma-300m via HuggingFace TEI — start with: docker compose --profile embeddinggemma up -d tei-gemma -EMBEDDINGGEMMA_ENABLED=false - # Grafana Cloud — logs (Loki) # Get from: grafana.com → your stack → Loki card → "Send Logs" # Token: My Account → Access Policies → token with logs:write scope diff --git a/docker-compose.yml b/docker-compose.yml index 23cb697..4261b7d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -70,17 +70,6 @@ services: - GC_PROM_USER=${GC_PROM_USER} - GC_PROM_PASSWORD=${GC_PROM_PASSWORD} - DEPLOY_ENV=${DEPLOY_ENV:-local} - tei-gemma: - image: ghcr.io/huggingface/text-embeddings-inference:cpu-1.5 - container_name: tei-gemma - # Downloads google/embeddinggemma-300m on first start (~600 MB); subsequent - # starts are instant because the model is cached in the tei-model-cache volume. - command: --model-id google/embeddinggemma-300m --port 80 - volumes: - - tei-model-cache:/data - profiles: - - embeddinggemma - networks: default: driver: bridge @@ -90,5 +79,4 @@ networks: volumes: es-logs: - tei-model-cache: diff --git a/main.py b/main.py index b70159d..5a7ceb1 100644 --- a/main.py +++ b/main.py @@ -82,76 +82,21 @@ def _is_truthy(value): _OLLAMA_URL = os.environ.get("OLLAMA_URL", "http://host.docker.internal:11434") EMBEDDING_MODELS = { - "openai-small-en": { - "label": "OpenAI small (English)", - "index": "english-openai-small", - "inference_id": "openai-text-embedding-3-small", # shared with multilingual variant - "enabled": _is_truthy(os.environ.get("OPENAI_ENABLED")), - "multilingual": False, - "service": "openai", - "service_settings": { - "api_key": os.environ.get("OPENAI_API_KEY"), - "model_id": "text-embedding-3-small", - "similarity": "cosine", - }, - }, - "openai-small-multi": { - "label": "OpenAI small (Multilingual)", - "index": "multilingual-openai-small", - "inference_id": "openai-text-embedding-3-small", # shared with English variant - "enabled": _is_truthy(os.environ.get("OPENAI_ENABLED")), - "multilingual": True, # indexes all Arabic + all English - "service": "openai", - "service_settings": { - "api_key": os.environ.get("OPENAI_API_KEY"), - "model_id": "text-embedding-3-small", - # cosine safer than dot_product for OpenAI — see elastic/elasticsearch#122878 - "similarity": "cosine", - }, - }, - "nomic": { - "label": "nomic-embed-text", - "index": "english-nomic", - "inference_id": "nomic-embed-text", - "enabled": _is_truthy(os.environ.get("NOMIC_ENABLED")), - "multilingual": False, # English-only, replicates colleague's original approach - # Ollama exposes an OpenAI-compatible API — use that since ES 8.16 has no native ollama service. - "service": "openai", - "service_settings": { - "api_key": "ollama", # Ollama doesn't require auth; ES requires a non-empty value - "url": f"{_OLLAMA_URL}/v1/embeddings", - "model_id": "nomic-embed-text", - "similarity": "cosine", - }, - }, "mxbai": { "label": "mxbai-embed-large", "index": "english-mxbai", "inference_id": "mxbai-embed-large", "enabled": _is_truthy(os.environ.get("MXBAI_ENABLED")), - "multilingual": False, # English-only, replicates colleague's original approach + "multilingual": False, # Ollama exposes an OpenAI-compatible API — use that since ES 8.16 has no native ollama service. "service": "openai", "service_settings": { - "api_key": "ollama", + "api_key": "ollama", # Ollama doesn't require auth; ES requires a non-empty value "url": f"{_OLLAMA_URL}/v1/embeddings", "model_id": "mxbai-embed-large", "similarity": "cosine", }, }, - "embeddinggemma": { - "label": "embeddinggemma-300m", - "index": "english-embeddinggemma", - "inference_id": "embeddinggemma-300m", - "enabled": _is_truthy(os.environ.get("EMBEDDINGGEMMA_ENABLED")), - # Served locally by the tei-gemma Docker service (text-embeddings-inference). - "service": "hugging_face", - "service_settings": { - "api_key": "tei-local", # TEI doesn't enforce auth; ES requires a non-empty value - "url": "http://tei-gemma/", - "similarity": "cosine", - }, - }, } _ENABLED_MODELS = {k: v for k, v in EMBEDDING_MODELS.items() if v["enabled"]} From 37b2ad3746ce59a4babfd6cf2984eef26c1eb619 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Tue, 26 May 2026 06:38:11 -0500 Subject: [PATCH 11/32] readme update --- README.md | 134 ++++++++++++++++++++---------------------------------- 1 file changed, 50 insertions(+), 84 deletions(-) diff --git a/README.md b/README.md index f1b599f..6bf5d53 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,20 @@ # sunnah.com Search API -Flask + Elasticsearch search service for sunnah.com. Supports lexical (BM25), semantic, and hybrid search across the hadith corpus. +Flask + Elasticsearch search service for sunnah.com. Supports lexical (BM25) and semantic search. ## What's in this branch -This branch extends the existing search service with **multi-model semantic search**: multiple embedding models can be indexed and queried independently, letting the team compare results before committing to one model in production. +This branch adds **semantic search** alongside the existing lexical (BM25) search, using `mxbai-embed-large` served via Ollama. ### Key changes from main -- **Multi-model architecture** — each embedding model gets its own ES index. Models are enabled/disabled via env vars with no code changes required. -- **Dedicated lexical index** (`english-lexical`) — separated from the semantic indexes so it can be rebuilt quickly without re-embedding. -- **Testbed UI** — the API root (`/`) now serves a search interface for testing modes and models side-by-side without the PHP website. -- **`/api/models` endpoint** — returns which models are configured and whether their indexes are built; the testbed UI calls this on load. +- **Dedicated lexical index** (`english-lexical`) — separated from the semantic index so it can be rebuilt quickly without re-embedding. +- **Semantic index** (`english-mxbai`) — `mxbai-embed-large` embeddings via Ollama, English corpus. +- **Hybrid mode** — lexical and semantic results fused with Reciprocal Rank Fusion (RRF). +- **Testbed UI** — the API root (`/`) serves a search interface for testing modes without the PHP website. +- **`/api/models` endpoint** — returns whether the mxbai index is built; the testbed UI calls this on load. -Corresponding website changes (mode/model toggles in the production UI) are in the `semantic-search-ui-toggles` branch of the website repo. +Corresponding website changes (mode toggles in the production UI) are in the `semantic-search-ui-toggles` branch of the website repo. --- @@ -24,23 +25,16 @@ Browser / PHP website │ ▼ Flask API (this repo) ──► Elasticsearch - │ │ - │ ┌─────────┴──────────┐ - │ │ english-lexical │ BM25, no embeddings - │ │ english-nomic │ nomic-embed-text via Ollama - │ │ english-mxbai │ mxbai-embed-large via Ollama - │ │ english-openai-* │ text-embedding-3-small via OpenAI API - │ │ multilingual-* │ text-embedding-3-small, full corpus - │ │ english-embedding… │ embeddinggemma-300m via TEI (optional) - │ └────────────────────┘ - │ - Model servers (embedding inference) - ├── Ollama (runs on host, port 11434) — nomic, mxbai - ├── OpenAI API — openai-small-en / openai-small-multi - └── tei-gemma Docker service — embeddinggemma (optional, see below) + │ + ┌───────────┴───────────┐ + │ english-lexical │ BM25, no embeddings + │ english-mxbai │ mxbai-embed-large via Ollama + └───────────────────────┘ + + Ollama (runs on host, port 11434) — serves mxbai-embed-large ``` -Each model's index name in ES is an **alias** (e.g. `english-nomic`) that points to a timestamped backing index (e.g. `english-nomic-1779026769`). Reindexing builds a new backing index and atomically swaps the alias — the live index keeps serving traffic during the rebuild. +Each index name in ES is an **alias** (e.g. `english-mxbai`) pointing to a timestamped backing index. Reindexing builds a new backing index and atomically swaps the alias — the live index keeps serving traffic during the rebuild. --- @@ -49,7 +43,7 @@ Each model's index name in ES is an **alias** (e.g. `english-nomic`) that points ### Prerequisites - Docker + Docker Compose -- For Ollama-backed models (nomic, mxbai): [Ollama](https://ollama.com) installed and running on your machine +- [Ollama](https://ollama.com) installed and running on your machine ### 1. Configure environment @@ -57,21 +51,11 @@ Each model's index name in ES is an **alias** (e.g. `english-nomic`) that points cp .env.sample .env ``` -Edit `.env` and enable the models you want to test: - -```env -NOMIC_ENABLED=true -MXBAI_ENABLED=true -OPENAI_ENABLED=false # requires OPENAI_API_KEY -EMBEDDINGGEMMA_ENABLED=false # requires --profile embeddinggemma, see below -``` - -`OLLAMA_URL` defaults to `http://host.docker.internal:11434`, which works on Docker Desktop (Mac/Windows). Leave it unset locally. +Set `MXBAI_ENABLED=true` in `.env`. `OLLAMA_URL` defaults to `http://host.docker.internal:11434`, which works on Docker Desktop (Mac/Windows) — leave it unset locally. -### 2. Pull Ollama models (if enabled) +### 2. Pull the model ```bash -ollama pull nomic-embed-text ollama pull mxbai-embed-large ``` @@ -83,23 +67,17 @@ docker compose up --build `docker-compose.override.yml` is applied automatically and exposes Flask on **port 5001**. -For the embeddinggemma model only: -```bash -docker compose --profile embeddinggemma up --build -``` -This starts the `tei-gemma` service which downloads `google/embeddinggemma-300m` from HuggingFace on first run (~600 MB, cached in a Docker volume). - ### 4. Build the indexes ``` http://localhost:5001/index?password=index123 ``` -This reads all hadiths from MySQL and builds ES indexes for every enabled model plus the lexical index. It takes a while — embedding ~48k English hadiths per model is the slow part. +This reads all hadiths from MySQL and builds both the lexical and mxbai indexes. Embedding ~48k English hadiths takes a few minutes. -To index only one model: +To index only one at a time: ``` -http://localhost:5001/index?password=index123&model=nomic +http://localhost:5001/index?password=index123&model=mxbai http://localhost:5001/index?password=index123&model=lexical ``` @@ -108,7 +86,7 @@ To force a full rebuild instead of incremental: http://localhost:5001/index?password=index123&rebuild=true ``` -Check index status (doc counts per index): +Check index status (doc counts): ``` http://localhost:5001/index/status ``` @@ -118,7 +96,7 @@ http://localhost:5001/index/status ## Production deployment Production uses `docker-compose.prod.yml` directly. Key differences from local: -- **No MySQL service** — connect to the existing external DB via env vars +- **No MySQL service** — connects to the existing external DB via env vars - **uwsgi** instead of Flask dev server, exposed on **port 7650** - **Persistent ES data** in a named Docker volume (`es-data`) - **Explicit ES JVM memory limits** (`-Xms600m -Xmx1g`) @@ -129,7 +107,7 @@ Production uses `docker-compose.prod.yml` directly. Key differences from local: cp .env.sample .env ``` -Fill in the production values — at minimum: +Fill in production values — at minimum: ```env MYSQL_HOST= @@ -140,21 +118,18 @@ MYSQL_DATABASE=hadithdb ELASTIC_PASSWORD= INDEXING_PASSWORD= -# Enable whichever models are being evaluated -NOMIC_ENABLED=true MXBAI_ENABLED=true ``` ### 2. Ollama on Linux -Install [Ollama](https://ollama.com) on the host and pull the models before starting the stack: +Install [Ollama](https://ollama.com) on the host and pull the model before starting the stack: ```bash -ollama pull nomic-embed-text ollama pull mxbai-embed-large ``` -`host.docker.internal` normally only works on Docker Desktop (Mac/Windows), not on Linux. The prod compose file adds `host-gateway` to resolve it correctly on Linux, so the default `OLLAMA_URL` works without any `.env` changes. No action needed. +`host.docker.internal` only works on Docker Desktop (Mac/Windows), not on Linux. The prod compose file adds `host-gateway` so this hostname resolves correctly on Linux too — the default `OLLAMA_URL` works without any extra `.env` changes. ### 3. Start the stack @@ -170,9 +145,10 @@ The prod stack is exposed on **port 7650**: http://:7650/index?password= ``` -To index only one model: +To index only one at a time: ``` -http://:7650/index?password=&model=nomic +http://:7650/index?password=&model=mxbai +http://:7650/index?password=&model=lexical ``` Check index status: @@ -182,31 +158,21 @@ http://:7650/index/status --- -## Embedding models - -| Key | Model | Served by | Dimensions | Notes | -|---|---|---|---|---| -| `openai-small-en` | text-embedding-3-small | OpenAI API | 1536 | English corpus only | -| `openai-small-multi` | text-embedding-3-small | OpenAI API | 1536 | Full Arabic+English corpus | -| `nomic` | nomic-embed-text | Ollama (host) | 768 | English-only | -| `mxbai` | mxbai-embed-large | Ollama (host) | 1024 | English-only | -| `embeddinggemma` | embeddinggemma-300m | tei-gemma (Docker) | 256 | Optional, needs `--profile embeddinggemma` | - -**Nomic and mxbai run via Ollama on your host machine**, not inside Docker. The container reaches them at `http://host.docker.internal:11434` — a Docker hostname that resolves to your Mac's IP from inside any container. Ollama exposes an OpenAI-compatible API, which is what ES 8.16's inference endpoint uses. - -**embeddinggemma runs in a Docker container** (`tei-gemma`) using HuggingFace's Text Embeddings Inference server. It's gated behind a Docker Compose profile so it doesn't start unless you need it. +## Embedding model -### Adding a new model +| Key | Model | Served by | Dimensions | +|---|---|---|---| +| `mxbai` | mxbai-embed-large | Ollama (host) | 1024 | -1. Add an entry to `EMBEDDING_MODELS` in `main.py` — copy the shape of any existing entry. For an Ollama model it's ~8 lines. -2. Add `NEWMODEL_ENABLED=false` to `.env.sample` (and set to `true` in your local `.env`). -3. Pull the model in Ollama: `ollama pull your-model-name` -4. Hit `/index?password=index123&model=newmodel` to build its index. -5. Update `SEMANTIC_INDEXES` in `batch_search.py` to include it (use the alias name, e.g. `"english-newmodel"`). +mxbai runs via **Ollama on the host machine**, not inside Docker. The container reaches it at `http://host.docker.internal:11434`. Ollama exposes an OpenAI-compatible API, which ES 8.16's inference endpoint uses to embed queries and index documents. -### Disabling a model +### Adding a model in the future -Set `MODELNAME_ENABLED=false` in `.env`. The model is completely ignored at runtime — no index queries, no inference calls. +1. Add an entry to `EMBEDDING_MODELS` in `main.py` — copy the mxbai entry as a template (~8 lines). +2. Add `NEWMODEL_ENABLED=false` to `.env.sample`. +3. Pull the model: `ollama pull your-model-name` +4. Hit `/index?password=...&model=newmodel` to build its index. +5. Add the alias name to `SEMANTIC_INDEXES` in `batch_search.py`. --- @@ -216,11 +182,11 @@ Set `MODELNAME_ENABLED=false` in `.env`. The model is completely ignored at runt |---|---| | `lexical` | BM25 full-text search with collection boosts. Fast, exact keyword matching. | | `semantic` | Embedding similarity via HNSW approximate nearest-neighbor. Finds conceptually related hadiths even without keyword overlap. | -| `hybrid` | Both legs run in parallel (msearch), results fused with Reciprocal Rank Fusion (RRF). | +| `hybrid` | Both legs run in parallel, results fused with Reciprocal Rank Fusion (RRF). | -The active mode and model are passed as query parameters: +Mode is passed as a query parameter: ``` -/english/search?q=prayer&mode=semantic&model=nomic +/english/search?q=prayer&mode=semantic&model=mxbai /english/search?q=prayer&mode=hybrid&model=mxbai /english/search?q=prayer&mode=lexical ``` @@ -231,7 +197,7 @@ The active mode and model are passed as query parameters: | Endpoint | Description | |---|---| -| `GET /` | Testbed UI — search interface for comparing modes and models | +| `GET /` | Testbed UI — search interface for testing modes | | `GET /api/models` | JSON: configured models + whether each index exists in ES | | `GET //search?q=...` | Main search endpoint (consumed by PHP website) | | `GET /index?password=...` | Build/rebuild ES indexes from MySQL | @@ -244,18 +210,18 @@ The active mode and model are passed as query parameters: | File | When to use | |---|---| | `docker-compose.yml` | Base definition. Do not run directly. | -| `docker-compose.override.yml` | Applied automatically on `docker compose up`. Exposes Flask on port 5001 (override from default 5000 to avoid conflicts). | +| `docker-compose.override.yml` | Applied automatically on `docker compose up`. Exposes Flask on port 5001 (overrides default 5000 to avoid local conflicts). | | `docker-compose.prod.yml` | Production. Run with `-f docker-compose.prod.yml`. Uses uwsgi, persistent ES data volume, explicit JVM memory limits, no MySQL service. | **Why Elasticsearch has a fixed IP** (`172.31.250.10`): at high request rates, Docker's embedded DNS resolver becomes a bottleneck and throws `EAI_AGAIN` errors. Hardcoding the IP in `/etc/hosts` via `extra_hosts` makes every lookup instant. -**Observability services** (`es-exporter`, `alloy`) are included in the base compose file. They ship ES metrics and logs to Grafana Cloud. They require Grafana Cloud credentials in `.env` — if you don't have them, these services will fail to connect but won't break the rest of the stack. +**Observability services** (`es-exporter`, `alloy`) ship ES metrics and logs to Grafana Cloud. They require Grafana Cloud credentials in `.env` — if you don't have them, these services will fail to connect but won't break the rest of the stack. --- ## Batch evaluation -`batch_search.py` runs a fixed set of queries across all enabled models and produces a CSV and a markdown report for side-by-side comparison. +`batch_search.py` runs a fixed set of queries across lexical and semantic and produces a CSV and markdown report for side-by-side comparison. ```bash # Copy script into container, run it, copy results back @@ -265,8 +231,8 @@ docker cp search-web-1:/code/batch_results.csv search/batch_results.csv && \ docker cp search-web-1:/code/batch_report.md search/batch_report.md ``` -The script must run inside the container because ES is not exposed to the host — it's only reachable at `http://elasticsearch:9200` from within the Docker network. +The script runs inside the container because ES is not exposed to the host — it's only reachable at `http://elasticsearch:9200` from within the Docker network. -Edit `QUERIES` in `batch_search.py` to change which queries are tested. Edit `SEMANTIC_INDEXES` to add or remove models from the comparison. +Edit `QUERIES` in `batch_search.py` to change which queries are tested. **Note:** always use commas between query strings in the list. Python silently concatenates adjacent string literals without a comma, producing wrong queries with no error. From 57fc30719055c606eee9f4881d079e358e36c2bb Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Tue, 26 May 2026 06:42:48 -0500 Subject: [PATCH 12/32] PR cleanup --- README.md | 9 +- main.py | 88 +------------ templates/search.html | 286 ------------------------------------------ 3 files changed, 5 insertions(+), 378 deletions(-) delete mode 100644 templates/search.html diff --git a/README.md b/README.md index 6bf5d53..17614cc 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,6 @@ This branch adds **semantic search** alongside the existing lexical (BM25) searc - **Dedicated lexical index** (`english-lexical`) — separated from the semantic index so it can be rebuilt quickly without re-embedding. - **Semantic index** (`english-mxbai`) — `mxbai-embed-large` embeddings via Ollama, English corpus. -- **Hybrid mode** — lexical and semantic results fused with Reciprocal Rank Fusion (RRF). -- **Testbed UI** — the API root (`/`) serves a search interface for testing modes without the PHP website. -- **`/api/models` endpoint** — returns whether the mxbai index is built; the testbed UI calls this on load. Corresponding website changes (mode toggles in the production UI) are in the `semantic-search-ui-toggles` branch of the website repo. @@ -180,14 +177,12 @@ mxbai runs via **Ollama on the host machine**, not inside Docker. The container | Mode | What it does | |---|---| -| `lexical` | BM25 full-text search with collection boosts. Fast, exact keyword matching. | +| `lexical` | BM25 full-text search with collection boosts. Fast, exact keyword matching. Default. | | `semantic` | Embedding similarity via HNSW approximate nearest-neighbor. Finds conceptually related hadiths even without keyword overlap. | -| `hybrid` | Both legs run in parallel, results fused with Reciprocal Rank Fusion (RRF). | Mode is passed as a query parameter: ``` /english/search?q=prayer&mode=semantic&model=mxbai -/english/search?q=prayer&mode=hybrid&model=mxbai /english/search?q=prayer&mode=lexical ``` @@ -197,8 +192,6 @@ Mode is passed as a query parameter: | Endpoint | Description | |---|---| -| `GET /` | Testbed UI — search interface for testing modes | -| `GET /api/models` | JSON: configured models + whether each index exists in ES | | `GET //search?q=...` | Main search endpoint (consumed by PHP website) | | `GET /index?password=...` | Build/rebuild ES indexes from MySQL | | `GET /index/status` | Doc counts for all indexes | diff --git a/main.py b/main.py index 5a7ceb1..240af6e 100644 --- a/main.py +++ b/main.py @@ -3,7 +3,7 @@ import sys import time import uuid -from flask import Flask, request, jsonify, g, render_template +from flask import Flask, request, jsonify, g from werkzeug.exceptions import HTTPException import pymysql import os @@ -105,11 +105,8 @@ def _is_truthy(value): # Bulk timeout — embedding calls during indexing are slow. BULK_REQUEST_TIMEOUT = 300 if SEMANTIC_ENABLED else 60 -RRF_K = 60 -RRF_WINDOW = 100 - -SEARCH_MODES = ("lexical", "hybrid", "semantic") -SEMANTIC_MODES = ("hybrid", "semantic") +SEARCH_MODES = ("lexical", "semantic") +SEMANTIC_MODES = ("semantic",) COLLECTION_BOOSTS = [ ("bukhari", 5.0), @@ -140,25 +137,7 @@ def _handle_unexpected(exc): @app.route("/", methods=["GET"]) def home(): - return render_template("search.html") - - -@app.route("/api/models", methods=["GET"]) -def get_models(): - """Return model config + whether each model's index currently exists in ES.""" - out = {} - for key, model in EMBEDDING_MODELS.items(): - indexed = False - if model["enabled"]: - try: - es_client.indices.exists_alias(name=model["index"]) or \ - es_client.indices.exists(index=model["index"]) - result = es_client.search(index=model["index"], size=0, track_total_hits=True) - indexed = result["hits"]["total"]["value"] > 0 - except Exception: - pass - out[key] = {"label": model["label"], "enabled": model["enabled"], "indexed": indexed} - return jsonify(out) + return "

Welcome to sunnah.com search api.

" # ── Index management ────────────────────────────────────────────────────────── @@ -538,8 +517,6 @@ def build_lexical(query_type): "request_id": getattr(g, "request_id", None), "mode": mode, "model": model_key, "query": query, }) - if mode == "hybrid": - return _hybrid_search(search_index, query, filters, build_lexical, model_key) return _semantic_search(search_index, query, filters) # Lexical path @@ -561,38 +538,6 @@ def build_lexical(query_type): return jsonify(result.body) -def _hybrid_search(search_index, query, filters, build_lexical, model_key): - from_ = int(request.args.get("from", 0)) - size = int(request.args.get("size", 10)) - window = max(RRF_WINDOW, from_ + size) - common = {"from": 0, "size": window, "_source": {"excludes": [SEMANTIC_FIELD]}} - - def _run(qt): - return es_client.options(request_timeout=130).msearch(searches=[ - {"index": LEXICAL_INDEX}, - {**common, "highlight": {"number_of_fragments": 0, "fields": {"*": {}}}, - "suggest": get_suggest_block(query), "query": build_lexical(qt)}, - {"index": search_index}, - {**common, "query": build_semantic_query(query, filters)}, - ]) - - try: - result = _run("query_string") - if result["responses"][0].get("error"): - result = _run("simple_query_string") - except BadRequestError as e: - return malformed_query_response(e) - - lex, sem = result["responses"][0], result["responses"][1] - for resp, label in ((lex, "lexical"), (sem, "semantic")): - if resp.get("error"): - access_log.warning("rrf_leg_failed", extra={"leg": label, "error": resp["error"]}) - return jsonify({"error": "malformed query"}), 400 - - merged = _rrf_merge(lex, sem, RRF_K, from_, size) - return jsonify(merged) - - def _semantic_search(search_index, query, filters): try: result = es_client.options(request_timeout=130).search( @@ -608,30 +553,5 @@ def _semantic_search(search_index, query, filters): return jsonify(result.body) -def _rrf_merge(lex_resp, sem_resp, k, from_, size): - scores, hits_by_id = {}, {} - for rank, h in enumerate(lex_resp.get("hits", {}).get("hits", []), start=1): - scores[h["_id"]] = scores.get(h["_id"], 0.0) + 1.0 / (k + rank) - hits_by_id[h["_id"]] = h - for rank, h in enumerate(sem_resp.get("hits", {}).get("hits", []), start=1): - scores[h["_id"]] = scores.get(h["_id"], 0.0) + 1.0 / (k + rank) - hits_by_id.setdefault(h["_id"], h) - - sorted_ids = sorted(scores, key=scores.get, reverse=True) - merged = [] - for doc_id in sorted_ids[from_: from_ + size]: - h = dict(hits_by_id[doc_id]) - h["_score"] = scores[doc_id] - merged.append(h) - - total = lex_resp.get("hits", {}).get("total", {"value": len(sorted_ids), "relation": "eq"}) - max_score = scores[sorted_ids[0]] if sorted_ids else None - return { - "took": lex_resp.get("took", 0) + sem_resp.get("took", 0), - "hits": {"total": total, "max_score": max_score, "hits": merged}, - "suggest": lex_resp.get("suggest"), - } - - if __name__ == "__main__": app.run(host="0.0.0.0") diff --git a/templates/search.html b/templates/search.html deleted file mode 100644 index 38e05c1..0000000 --- a/templates/search.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - - - Sunnah Search — Embedding Testbed - - - - -
-

Sunnah Search — Embedding Testbed

-
- - -
-
- -
-
- - - - -
- - - -
- - -
-
- -
-
-
- -
-
- - - - From 18fc59c65cfcc0aac16b1a1f7128b8dabaf3998a Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Wed, 27 May 2026 06:25:52 -0500 Subject: [PATCH 13/32] more cleanup for prod --- README.md | 30 ++++++------------- docker-compose.override.yml | 4 --- docker-compose.yml | 2 ++ .../analyze_queries.py | 0 batch_search.py => tests/batch_search.py | 0 .../fetch_exact_knn.py | 0 6 files changed, 11 insertions(+), 25 deletions(-) delete mode 100644 docker-compose.override.yml rename analyze_queries.py => tests/analyze_queries.py (100%) rename batch_search.py => tests/batch_search.py (100%) rename fetch_exact_knn.py => tests/fetch_exact_knn.py (100%) diff --git a/README.md b/README.md index 17614cc..a0fb9a2 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,6 @@ Flask + Elasticsearch search service for sunnah.com. Supports lexical (BM25) and semantic search. -## What's in this branch - -This branch adds **semantic search** alongside the existing lexical (BM25) search, using `mxbai-embed-large` served via Ollama. - -### Key changes from main - -- **Dedicated lexical index** (`english-lexical`) — separated from the semantic index so it can be rebuilt quickly without re-embedding. -- **Semantic index** (`english-mxbai`) — `mxbai-embed-large` embeddings via Ollama, English corpus. - -Corresponding website changes (mode toggles in the production UI) are in the `semantic-search-ui-toggles` branch of the website repo. - --- ## Architecture @@ -62,7 +51,7 @@ ollama pull mxbai-embed-large docker compose up --build ``` -`docker-compose.override.yml` is applied automatically and exposes Flask on **port 5001**. +Flask is exposed on **port 5001**. ### 4. Build the indexes @@ -163,13 +152,13 @@ http://:7650/index/status mxbai runs via **Ollama on the host machine**, not inside Docker. The container reaches it at `http://host.docker.internal:11434`. Ollama exposes an OpenAI-compatible API, which ES 8.16's inference endpoint uses to embed queries and index documents. -### Adding a model in the future +### Adding a model 1. Add an entry to `EMBEDDING_MODELS` in `main.py` — copy the mxbai entry as a template (~8 lines). 2. Add `NEWMODEL_ENABLED=false` to `.env.sample`. 3. Pull the model: `ollama pull your-model-name` 4. Hit `/index?password=...&model=newmodel` to build its index. -5. Add the alias name to `SEMANTIC_INDEXES` in `batch_search.py`. +5. Add the alias name to `SEMANTIC_INDEXES` in `tests/batch_search.py`. --- @@ -202,8 +191,7 @@ Mode is passed as a query parameter: | File | When to use | |---|---| -| `docker-compose.yml` | Base definition. Do not run directly. | -| `docker-compose.override.yml` | Applied automatically on `docker compose up`. Exposes Flask on port 5001 (overrides default 5000 to avoid local conflicts). | +| `docker-compose.yml` | Local development. `docker compose up --build`. | | `docker-compose.prod.yml` | Production. Run with `-f docker-compose.prod.yml`. Uses uwsgi, persistent ES data volume, explicit JVM memory limits, no MySQL service. | **Why Elasticsearch has a fixed IP** (`172.31.250.10`): at high request rates, Docker's embedded DNS resolver becomes a bottleneck and throws `EAI_AGAIN` errors. Hardcoding the IP in `/etc/hosts` via `extra_hosts` makes every lookup instant. @@ -214,18 +202,18 @@ Mode is passed as a query parameter: ## Batch evaluation -`batch_search.py` runs a fixed set of queries across lexical and semantic and produces a CSV and markdown report for side-by-side comparison. +`tests/batch_search.py` runs a fixed set of queries across lexical and semantic and produces a CSV and markdown report for side-by-side comparison. ```bash # Copy script into container, run it, copy results back -docker cp search/batch_search.py search-web-1:/code/batch_search.py && \ +docker cp tests/batch_search.py search-web-1:/code/batch_search.py && \ docker exec search-web-1 python3 /code/batch_search.py && \ -docker cp search-web-1:/code/batch_results.csv search/batch_results.csv && \ -docker cp search-web-1:/code/batch_report.md search/batch_report.md +docker cp search-web-1:/code/batch_results.csv tests/batch_results.csv && \ +docker cp search-web-1:/code/batch_report.md tests/batch_report.md ``` The script runs inside the container because ES is not exposed to the host — it's only reachable at `http://elasticsearch:9200` from within the Docker network. -Edit `QUERIES` in `batch_search.py` to change which queries are tested. +Edit `QUERIES` in `tests/batch_search.py` to change which queries are tested. **Note:** always use commas between query strings in the list. Python silently concatenates adjacent string literals without a comma, producing wrong queries with no error. diff --git a/docker-compose.override.yml b/docker-compose.override.yml deleted file mode 100644 index f12a6e4..0000000 --- a/docker-compose.override.yml +++ /dev/null @@ -1,4 +0,0 @@ -services: - web: - ports: - - "5001:5000" diff --git a/docker-compose.yml b/docker-compose.yml index 4261b7d..ac531f9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,8 @@ services: command: flask run --host=0.0.0.0 volumes: - .:/code + ports: + - "5001:5000" env_file: - .env extra_hosts: diff --git a/analyze_queries.py b/tests/analyze_queries.py similarity index 100% rename from analyze_queries.py rename to tests/analyze_queries.py diff --git a/batch_search.py b/tests/batch_search.py similarity index 100% rename from batch_search.py rename to tests/batch_search.py diff --git a/fetch_exact_knn.py b/tests/fetch_exact_knn.py similarity index 100% rename from fetch_exact_knn.py rename to tests/fetch_exact_knn.py From 1e9cd71274df3de44ce34e1b7678d0b7269597e5 Mon Sep 17 00:00:00 2001 From: yug <> Date: Wed, 27 May 2026 21:40:21 -0400 Subject: [PATCH 14/32] Revert dev port to 5000 and remove test results directory Co-Authored-By: Claude Opus 4.7 (1M context) --- docker-compose.yml | 2 +- .../exact_knn_results.json | 290 --- .../exact_knn_texts.json | 25 - .../knn10k_results.json | 290 --- .../lexical vs hybrid vs semantic/report1.md | 704 ------- .../lexical vs semantic/test1/batch_report.md | 1344 -------------- .../test1/batch_results.csv | 391 ---- .../lexical vs semantic/test2/batch_report.md | 1627 ----------------- .../test2/batch_results.csv | 467 ----- .../search query analyses/search_analysis.md | 356 ---- .../top100_multiword_queries.md | 104 -- .../top100_multiword_zero_results.md | 104 -- test results & reports/semantic/report2.md | 301 --- test results & reports/semantic/report3.md | 296 --- 14 files changed, 1 insertion(+), 6300 deletions(-) delete mode 100644 test results & reports/lexical vs hybrid vs semantic/exact_knn_results.json delete mode 100644 test results & reports/lexical vs hybrid vs semantic/exact_knn_texts.json delete mode 100644 test results & reports/lexical vs hybrid vs semantic/knn10k_results.json delete mode 100644 test results & reports/lexical vs hybrid vs semantic/report1.md delete mode 100644 test results & reports/lexical vs semantic/test1/batch_report.md delete mode 100644 test results & reports/lexical vs semantic/test1/batch_results.csv delete mode 100644 test results & reports/lexical vs semantic/test2/batch_report.md delete mode 100644 test results & reports/lexical vs semantic/test2/batch_results.csv delete mode 100644 test results & reports/search query analyses/search_analysis.md delete mode 100644 test results & reports/search query analyses/top100_multiword_queries.md delete mode 100644 test results & reports/search query analyses/top100_multiword_zero_results.md delete mode 100644 test results & reports/semantic/report2.md delete mode 100644 test results & reports/semantic/report3.md diff --git a/docker-compose.yml b/docker-compose.yml index ac531f9..bf854e7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: volumes: - .:/code ports: - - "5001:5000" + - "5000:5000" env_file: - .env extra_hosts: diff --git a/test results & reports/lexical vs hybrid vs semantic/exact_knn_results.json b/test results & reports/lexical vs hybrid vs semantic/exact_knn_results.json deleted file mode 100644 index d79709c..0000000 --- a/test results & reports/lexical vs hybrid vs semantic/exact_knn_results.json +++ /dev/null @@ -1,290 +0,0 @@ -{ - "openai-small-en": [ - { - "rank": 1, - "collection": "adab", - "hadithNumber": "328", - "cosine": 0.3795, - "text": " Ibn 'Abbas said, \"When you want to mention your companion's faults,\nremember your own faults.\"" - }, - { - "rank": 2, - "collection": "bukhari", - "hadithNumber": "6490", - "cosine": 0.3789, - "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" - }, - { - "rank": 3, - "collection": "riyadussalihin", - "hadithNumber": "466", - "cosine": 0.3702, - "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" - }, - { - "rank": 4, - "collection": "ahmad", - "hadithNumber": "111", - "cosine": 0.3543, - "text": "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet \u2018Umar bin al-Khattab and ask him about three things. He came to Madinah and \u2018Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, \u2018Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah \ufdfa told me not to do them. He said: (And I asked) about stories (for preaching), because they wanted me to tell them stories. He said: Whatever you want. It was as if he did not want to tell him not to do that. He said: I only wanted to follow what you say. He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." - }, - { - "rank": 5, - "collection": "forty", - "hadithNumber": "18", - "cosine": 0.3507, - "text": "The felicitous person takes lessons from (the actions of) others." - }, - { - "rank": 6, - "collection": "muslim", - "hadithNumber": "2963 c", - "cosine": 0.3406, - "text": "

\nAbu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.\n\n

In the chain narrated by Abu Mu'awiya's he said: Upon you." - }, - { - "rank": 7, - "collection": "adab", - "hadithNumber": "592", - "cosine": 0.3337, - "text": " Abu Hurayra said, \"One of you looks at the mote in his brother's\neye while forgetting the stump in his own eye.\"" - }, - { - "rank": 8, - "collection": "muslim", - "hadithNumber": "2963 a", - "cosine": 0.3323, - "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - }, - { - "rank": 9, - "collection": "abudawud", - "hadithNumber": "4084", - "cosine": 0.3312, - "text": "\n

\n\nNarrated AbuJurayy Jabir ibn Salim al-Hujaymi:\n

\n\n\n\n

\n\nI saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say \"On you be peace,\" for \"On you be peace\" is a greeting for the dead, but say \"Peace be upon you\". \n

\n\n\n

\n\nI asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and you call Him, He returns it to you. \n

\n\n\n

\n\nI said: Give me some advice. He said: Do not abuse anyone. He said that he did not abuse a freeman, or a slave, or a camel or a sheep thenceforth. He said: Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. Have your lower garment halfway down your shin; if you cannot do it, have it up to the ankles. Beware of trailing the lower garment, for it is conceit and Allah does not like conceit. And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it.\n

\n\n\n" - }, - { - "rank": 10, - "collection": "bulugh", - "hadithNumber": "1471", - "cosine": 0.3276, - "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." - } - ], - "openai-small-multi": [ - { - "rank": 1, - "collection": "adab", - "hadithNumber": "328", - "cosine": 0.3795, - "text": " Ibn 'Abbas said, \"When you want to mention your companion's faults,\nremember your own faults.\"" - }, - { - "rank": 2, - "collection": "bukhari", - "hadithNumber": "6490", - "cosine": 0.3789, - "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" - }, - { - "rank": 3, - "collection": "riyadussalihin", - "hadithNumber": "466", - "cosine": 0.3702, - "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" - }, - { - "rank": 4, - "collection": "ahmad", - "hadithNumber": "111", - "cosine": 0.3542, - "text": "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet \u2018Umar bin al-Khattab and ask him about three things. He came to Madinah and \u2018Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, \u2018Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah \ufdfa told me not to do them. He said: (And I asked) about stories (for preaching), because they wanted me to tell them stories. He said: Whatever you want. It was as if he did not want to tell him not to do that. He said: I only wanted to follow what you say. He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." - }, - { - "rank": 5, - "collection": "forty", - "hadithNumber": "18", - "cosine": 0.3507, - "text": "The felicitous person takes lessons from (the actions of) others." - }, - { - "rank": 6, - "collection": "muslim", - "hadithNumber": "2963 c", - "cosine": 0.3406, - "text": "

\nAbu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.\n\n

In the chain narrated by Abu Mu'awiya's he said: Upon you." - }, - { - "rank": 7, - "collection": "adab", - "hadithNumber": "592", - "cosine": 0.3337, - "text": " Abu Hurayra said, \"One of you looks at the mote in his brother's\neye while forgetting the stump in his own eye.\"" - }, - { - "rank": 8, - "collection": "muslim", - "hadithNumber": "2963 a", - "cosine": 0.3323, - "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - }, - { - "rank": 9, - "collection": "abudawud", - "hadithNumber": "4084", - "cosine": 0.3312, - "text": "\n

\n\nNarrated AbuJurayy Jabir ibn Salim al-Hujaymi:\n

\n\n\n\n

\n\nI saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say \"On you be peace,\" for \"On you be peace\" is a greeting for the dead, but say \"Peace be upon you\". \n

\n\n\n

\n\nI asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and you call Him, He returns it to you. \n

\n\n\n

\n\nI said: Give me some advice. He said: Do not abuse anyone. He said that he did not abuse a freeman, or a slave, or a camel or a sheep thenceforth. He said: Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. Have your lower garment halfway down your shin; if you cannot do it, have it up to the ankles. Beware of trailing the lower garment, for it is conceit and Allah does not like conceit. And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it.\n

\n\n\n" - }, - { - "rank": 10, - "collection": "bulugh", - "hadithNumber": "1471", - "cosine": 0.3276, - "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." - } - ], - "nomic": [ - { - "rank": 1, - "collection": "bukhari", - "hadithNumber": "6490", - "cosine": 0.671, - "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" - }, - { - "rank": 2, - "collection": "bukhari", - "hadithNumber": "6061", - "cosine": 0.6323, - "text": "

\nNarrated Abu Bakra:\n\n

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, \n\"May Allah's Mercy be on you ! You have cut the neck of your friend.\" The Prophet repeated this \nsentence many times and said, \"If it is indispensable for anyone of you to praise someone, then he \nshould say, 'I think that he is so-and-so,\" if he really thinks that he is such. Allah is the One Who will \ntake his accounts (as He knows his reality) and no-one can sanctify anybody before Allah.\" (Khalid \nsaid, \"Woe to you,\" instead of \"Allah's Mercy be on you.\")" - }, - { - "rank": 3, - "collection": "bukhari", - "hadithNumber": "6530", - "cosine": 0.6227, - "text": "

\nNarrated Abu Sa`id:\n\n

The Prophet said, \"Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to \nYour Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' \nThen Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) \nare the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine \n(persons).' At that time children will become hoary-headed and every pregnant female will drop \nher load (have an abortion) and you will see the people as if they were drunk, yet not drunk; But \nAllah's punishment will be very severe.\" \nThat news distressed the companions of the Prophet too much, and they said, \"O Allah's Apostle! \nWho amongst us will be that man (the lucky one out of one-thousand who will be saved from the \nFire)?\" He said, \"Have the good news that one-thousand will be from Gog and Magog, and the one (to \nbe saved will be) from you.\" The Prophet added, \"By Him in Whose Hand my soul is, I Hope that \nyou (Muslims) will be one third of the people of Paradise.\" On that, we glorified and praised Allah \nand said, \"Allahu Akbar.\" The Prophet then said, \"By Him in Whose Hand my soul is, I hope that you \nwill be one half of the people of Paradise, as your (Muslims) example in comparison to the other \npeople (non-Muslims), is like that of a white hair on the skin of a black ox, or a round hairless spot on \nthe foreleg of a donkey.\"" - }, - { - "rank": 4, - "collection": "bulugh", - "hadithNumber": "1471", - "cosine": 0.6218, - "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." - }, - { - "rank": 5, - "collection": "muslim", - "hadithNumber": "2963 a", - "cosine": 0.6211, - "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - }, - { - "rank": 6, - "collection": "tirmidhi", - "hadithNumber": "2513", - "cosine": 0.6181, - "text": "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said:\n\"Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.\"" - }, - { - "rank": 7, - "collection": "nasai", - "hadithNumber": "3947", - "cosine": 0.6161, - "text": "It was narrated from Abu Musa that the Prophet said: \"The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.\"" - }, - { - "rank": 8, - "collection": "bukhari", - "hadithNumber": "6162", - "cosine": 0.6136, - "text": "

\nNarrated Abu Bakra:\n\n

A man praised another man in front of the Prophet. The Prophet said thrice, \"Wailaka (Woe on you) ! \nYou have cut the neck of your brother!\" The Prophet added, \"If it is indispensable for anyone of you \nto praise a person, then he should say, \"I think that such-and-such person (is so-and-so), and Allah is \nthe one who will take his accounts (as he knows his reality) and none can sanctify anybody before \nAllah (and that only if he knows well about that person.)\"." - }, - { - "rank": 9, - "collection": "abudawud", - "hadithNumber": "4627", - "cosine": 0.6096, - "text": "Ibn \u2018Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. \u2019Umar came next and then \u2018Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." - }, - { - "rank": 10, - "collection": "adab", - "hadithNumber": "1146", - "cosine": 0.6093, - "text": " Ibn 'Abbas said, \"The most precious of people in my opinion is\nmy sitting companion. This is so much the case that he can step over the\nshoulders of people until he sits with me.\"" - } - ], - "mxbai": [ - { - "rank": 1, - "collection": "forty", - "hadithNumber": "18", - "cosine": 0.6287, - "text": "The felicitous person takes lessons from (the actions of) others." - }, - { - "rank": 2, - "collection": "bukhari", - "hadithNumber": "6490", - "cosine": 0.6062, - "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" - }, - { - "rank": 3, - "collection": "forty", - "hadithNumber": "3", - "cosine": 0.5944, - "text": "A Muslim is a mirror of the Muslim." - }, - { - "rank": 4, - "collection": "muslim", - "hadithNumber": "2963 a", - "cosine": 0.5875, - "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - }, - { - "rank": 5, - "collection": "ibnmajah", - "hadithNumber": "4336", - "cosine": 0.5846, - "text": " Sa\u2019eed\nbin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said:\n\u201cI supplicate Allah to bring you and I together in the marketplace\nof Paradise,\u201d Sa\u2019eed said: \u201cIs there a marketplace there?\u201d He\nsaid: \u201cYes. The Messenger of Allah (saw) told me that when the\npeople of Paradise enter it, they will take their places according to\ntheir deeds, and they will be given permission for a length of time\nequivalent to Friday on earth, when they will visit Allah. His Throne\nwill be shown to them and He will appear to them in one of the\ngardens of Paradise. Chairs of light and chairs of pearls and chairs\nof rubies and chairs of chrysolite and chairs of gold and chairs of\nsilver will be placed for them. Those who are of a lower status than\nthem, and none of them will be regarded as insignificant, will sit on\nsandhills of musk and camphor, and they will not feel that those who\nare sitting on chairs are seated better than them.\u201d\n\nAbu Hurairah said: \u201cI said: \u2018O Messenger of Allah, will we see our Lord?\u2019 He said: \u2018Yes. Do you dispute that you see the sun and the moon on the night when it is full?\u2019 We said: \u2018No.\u2019 He said: \u2018Likewise, you will not dispute that you see your Lord, the Glorified. There will be no one left in that gathering with whom Allah does not speak face to face, until He will say to a man among you: \u201cDo you not remember, O so-and-so, the day you did such and such?\u201d And He will remind him of some of his sins in this world. He will say: \u201cO Lord, have You not forgiven me?\u201d He will say: \u201cYes, it is by the vastness of My forgiveness that You have reached the position you are in.\u201d While they are like that, a cloud will cover them from above and will rain down on them perfume the like of whose fragrance they have never smelled before. Then He will say: \u201cGet up and go to the honor that has been prepared for you, and take whatever you desire.\u201d So we will go to a marketplace surrounded by the angels, in which there will be such things as eyes have never seen, ears have never heard and it has not entered the heart of man. Whatever we desire will be carried for us. Nothing will be bought or sold therein. In that marketplace the people of Paradise will meet one another. A man of elevated status will meet those who are of lower status than him, but none shall be regarded as insignificant, and he will be dazzled by the clothes that he sees on him. He will not finish the last of his conversation before better clothes appear on him. That is because no one should be sad there.\u2019\u201d\n\u201cHe said: \u2018Then we will go back to our homes where we will be met by our wives, and they will say: \u2018Welcome. You have come looking more handsome and with a better fragrance than when you left us.\u2019 And we will say: \u2018Today we sat with our Lord, the Compeller, the Glorified, and we deserve to come back as we have come back.\u2019\u201d" - }, - { - "rank": 6, - "collection": "adab", - "hadithNumber": "159", - "cosine": 0.5824, - "text": " Abu'd-Darda' used to say to people. \"We know you better than the\nveterinarian knows his animals. We recognise the best of you from the worst\nof you. The best of you is the one whose good is hoped for and the one\nwhose evil you are safe from. As for the worst of you, that is the person\nwhose good is not hoped for and whose evil you are not safe from and he\ndoes not free slaves.\"" - }, - { - "rank": 7, - "collection": "bukhari", - "hadithNumber": "3348", - "cosine": 0.5786, - "text": "

\nNarrated Abu Sa`id Al-Khudri:\n\n

The Prophet said, \"Allah will say (on the Day of Resurrection), 'O Adam.' Adam will reply, 'Labbaik \nwa Sa`daik', and all the good is in Your Hand.' Allah will say: 'Bring out the people of the fire.' Adam \nwill say: 'O Allah! How many are the people of the Fire?' Allah will reply: 'From every one thousand, \ntake out nine-hundred-and ninety-nine.' At that time children will become hoary headed, every \npregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be \ndrunken, but dreadful will be the Wrath of Allah.\" The companions of the Prophet asked, \"O Allah's \nApostle! Who is that (excepted) one?\" He said, \"Rejoice with glad tidings; one person will be from \nyou and one-thousand will be from Gog and Magog.\" \nThe Prophet further said, \"By Him in Whose Hands my life is, hope that you will be one-fourth of the \npeople of Paradise.\" We shouted, \"Allahu Akbar!\" He added, \"I hope that you will be one-third of the \npeople of Paradise.\" We shouted, \"Allahu Akbar!\" He said, \"I hope that you will be half of the people \nof Paradise.\" We shouted, \"Allahu Akbar!\" He further said, \"You (Muslims) (compared with non \nMuslims) are like a black hair in the skin of a white ox or like a white hair in the skin of a black ox \n(i.e. your number is very small as compared with theirs)." - }, - { - "rank": 8, - "collection": "riyadussalihin", - "hadithNumber": "466", - "cosine": 0.5742, - "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" - }, - { - "rank": 9, - "collection": "muslim", - "hadithNumber": "2536", - "cosine": 0.5716, - "text": "

\n'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." - }, - { - "rank": 10, - "collection": "nasai", - "hadithNumber": "384b", - "cosine": 0.5656, - "text": "(Another chain) with similarity." - } - ] -} \ No newline at end of file diff --git a/test results & reports/lexical vs hybrid vs semantic/exact_knn_texts.json b/test results & reports/lexical vs hybrid vs semantic/exact_knn_texts.json deleted file mode 100644 index c5532e0..0000000 --- a/test results & reports/lexical vs hybrid vs semantic/exact_knn_texts.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "ibnmajah 4336": "Sa\u2019eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: \u201cI supplicate Allah to bring you and I together in the marketplace of Paradise,\u201d Sa\u2019eed said: \u201cIs there a marketplace there?\u201d He said: \u201cYes. The Messenger of Allah (saw) told me that when the people of Paradise enter it, they will take their places according to their deeds, and they will be given permission for a length of time equivalent to Friday on earth, when they will visit Allah. His Throne will be shown to them and He will appear to them in one of the gardens of Paradise. Chairs of light and chairs of pearls and chairs of rubies and chairs of chrysolite and chairs of gold and chairs of silver will be placed for them. Those who are of a lower status than them, and none of them will be regarded as insignificant, will sit on sandhills of musk and camphor, and they will not feel that those who are sitting on chairs are seated better than them.\u201d Abu Hurairah said: \u201cI said: \u2018O Messenger of Allah, will we see our Lord?\u2019 He said: \u2018Yes. Do you dispute that you see the sun and the moon on the night when it is full?\u2019 We said: \u2018No.\u2019 He said: \u2018Likewise, you will not dispute that you see your Lord, the Glorified. There will be no one left in that gathering with whom Allah does not speak face to face, until He will say to a man among you: \u201cDo you not remember, O so-and-so, the day you did such and such?\u201d And He will remind him of some of his sins in this world. He will say: \u201cO Lord, have You not forgiven me?\u201d He will say: \u201cYes, it is by the vastness of My forgiveness that You have reached the position you are in.\u201d While they are like that, a cloud will cover them from above and will rain down on them perfume the like of whose fragrance they have never smelled before. Then He will say: \u201cGet up and go to the honor that has been prepared for you, and take whatever you desire.\u201d So we will go to a marketplace surrounded by the angels, in which there will be such things as eyes have never seen, ears have never heard and it has not entered the heart of man. Whatever we desire will be carried for us. Nothing will be bought or sold therein. In that marketplace the people of Paradise will meet one another. A man of elevated status will meet those who are of lower status than him, but none shall be regarded as insignificant, and he will be dazzled by the clothes that he sees on him. He will not finish the last of his conversation before better clothes appear on him. That is because no one should be sad there.\u2019\u201d \u201cHe said: \u2018Then we will go back to our homes where we will be met by our wives, and they will say: \u2018Welcome. You have come looking more handsome and with a better fragrance than when you left us.\u2019 And we will say: \u2018Today we sat with our Lord, the Compeller, the Glorified, and we deserve to come back as we have come back.\u2019\u201d", - "bukhari 3348": "Narrated Abu Sa`id Al-Khudri: The Prophet said, \"Allah will say (on the Day of Resurrection), 'O Adam.' Adam will reply, 'Labbaik wa Sa`daik', and all the good is in Your Hand.' Allah will say: 'Bring out the people of the fire.' Adam will say: 'O Allah! How many are the people of the Fire?' Allah will reply: 'From every one thousand, take out nine-hundred-and ninety-nine.' At that time children will become hoary headed, every pregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be drunken, but dreadful will be the Wrath of Allah.\" The companions of the Prophet asked, \"O Allah's Apostle! Who is that (excepted) one?\" He said, \"Rejoice with glad tidings; one person will be from you and one-thousand will be from Gog and Magog.\" The Prophet further said, \"By Him in Whose Hands my life is, hope that you will be one-fourth of the people of Paradise.\" We shouted, \"Allahu Akbar!\" He added, \"I hope that you will be one-third of the people of Paradise.\" We shouted, \"Allahu Akbar!\" He said, \"I hope that you will be half of the people of Paradise.\" We shouted, \"Allahu Akbar!\" He further said, \"You (Muslims) (compared with non Muslims) are like a black hair in the skin of a white ox or like a white hair in the skin of a black ox (i.e. your number is very small as compared with theirs).", - "abudawud 4084": "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say \"On you be peace,\" for \"On you be peace\" is a greeting for the dead, but say \"Peace be upon you\". I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and you call Him, He returns it to you. I said: Give me some advice. He said: Do not abuse anyone. He said that he did not abuse a freeman, or a slave, or a camel or a sheep thenceforth. He said: Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. Have your lower garment halfway down your shin; if you cannot do it, have it up to the ankles. Beware of trailing the lower garment, for it is conceit and Allah does not like conceit. And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it.", - "muslim 2963 c": "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you.", - "muslim 2963 a": "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him).", - "bukhari 6490": "Narrated Abu Huraira: Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.", - "bulugh 1471": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih.", - "nasai 384b": "(Another chain) with similarity.", - "bukhari 6162": "Narrated Abu Bakra: A man praised another man in front of the Prophet. The Prophet said thrice, \"Wailaka (Woe on you) ! You have cut the neck of your brother!\" The Prophet added, \"If it is indispensable for anyone of you to praise a person, then he should say, \"I think that such-and-such person (is so-and-so), and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah (and that only if he knows well about that person.)\".", - "bukhari 6530": "Narrated Abu Sa`id: The Prophet said, \"Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) are the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine (persons).' At that time children will become hoary-headed and every pregnant female will drop her load (have an abortion) and you will see the people as if they were drunk, yet not drunk; But Allah's punishment will be very severe.\" That news distressed the companions of the Prophet too much, and they said, \"O Allah's Apostle! Who amongst us will be that man (the lucky one out of one-thousand who will be saved from the Fire)?\" He said, \"Have the good news that one-thousand will be from Gog and Magog, and the one (to be saved will be) from you.\" The Prophet added, \"By Him in Whose Hand my soul is, I Hope that you (Muslims) will be one third of the people of Paradise.\" On that, we glorified and praised Allah and said, \"Allahu Akbar.\" The Prophet then said, \"By Him in Whose Hand my soul is, I hope that you will be one half of the people of Paradise, as your (Muslims) example in comparison to the other people (non-Muslims), is like that of a white hair on the skin of a black ox, or a round hairless spot on the foreleg of a donkey.\"", - "ahmad 111": "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet \u2018Umar bin al-Khattab and ask him about three things. He came to Madinah and \u2018Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, \u2018Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah \ufdfa told me not to do them. He said: (And I asked) about stories (for preaching), because they wanted me to tell them stories. He said: Whatever you want. It was as if he did not want to tell him not to do that. He said: I only wanted to follow what you say. He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection.", - "adab 159": "Abu'd-Darda' used to say to people. \"We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves.\"", - "bukhari 6061": "Narrated Abu Bakra: A man was mentioned before the Prophet and another man praised him greatly The Prophet said, \"May Allah's Mercy be on you ! You have cut the neck of your friend.\" The Prophet repeated this sentence many times and said, \"If it is indispensable for anyone of you to praise someone, then he should say, 'I think that he is so-and-so,\" if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody before Allah.\" (Khalid said, \"Woe to you,\" instead of \"Allah's Mercy be on you.\")", - "adab 592": "Abu Hurayra said, \"One of you looks at the mote in his brother's eye while forgetting the stump in his own eye.\"", - "forty 18": "The felicitous person takes lessons from (the actions of) others.", - "forty 3": "A Muslim is a mirror of the Muslim.", - "tirmidhi 2513": "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: \"Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.\"", - "riyadussalihin 466": "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\" This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".", - "adab 328": "Ibn 'Abbas said, \"When you want to mention your companion's faults, remember your own faults.\"", - "abudawud 4627": "Ibn \u2018Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. \u2019Umar came next and then \u2018Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other.", - "nasai 3947": "It was narrated from Abu Musa that the Prophet said: \"The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.\"", - "adab 1146": "Ibn 'Abbas said, \"The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me.\"", - "muslim 2536": "'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." -} \ No newline at end of file diff --git a/test results & reports/lexical vs hybrid vs semantic/knn10k_results.json b/test results & reports/lexical vs hybrid vs semantic/knn10k_results.json deleted file mode 100644 index 50eb9ac..0000000 --- a/test results & reports/lexical vs hybrid vs semantic/knn10k_results.json +++ /dev/null @@ -1,290 +0,0 @@ -{ - "openai-small-en": [ - { - "rank": 1, - "collection": "adab", - "hadithNumber": "328", - "score": 0.6896, - "text": " Ibn 'Abbas said, \"When you want to mention your companion's faults,\nremember your own faults.\"" - }, - { - "rank": 2, - "collection": "bukhari", - "hadithNumber": "6490", - "score": 0.6896, - "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" - }, - { - "rank": 3, - "collection": "riyadussalihin", - "hadithNumber": "466", - "score": 0.6851, - "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" - }, - { - "rank": 4, - "collection": "ahmad", - "hadithNumber": "111", - "score": 0.6775, - "text": "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet \u2018Umar bin al-Khattab and ask him about three things. He came to Madinah and \u2018Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, \u2018Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah \ufdfa told me not to do them. He said: (And I asked) about stories (for preaching), because they wanted me to tell them stories. He said: Whatever you want. It was as if he did not want to tell him not to do that. He said: I only wanted to follow what you say. He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." - }, - { - "rank": 5, - "collection": "forty", - "hadithNumber": "18", - "score": 0.6753, - "text": "The felicitous person takes lessons from (the actions of) others." - }, - { - "rank": 6, - "collection": "muslim", - "hadithNumber": "2963 c", - "score": 0.6708, - "text": "

\nAbu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.\n\n

In the chain narrated by Abu Mu'awiya's he said: Upon you." - }, - { - "rank": 7, - "collection": "adab", - "hadithNumber": "592", - "score": 0.6669, - "text": " Abu Hurayra said, \"One of you looks at the mote in his brother's\neye while forgetting the stump in his own eye.\"" - }, - { - "rank": 8, - "collection": "muslim", - "hadithNumber": "2963 a", - "score": 0.6666, - "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - }, - { - "rank": 9, - "collection": "abudawud", - "hadithNumber": "4084", - "score": 0.6659, - "text": "\n

\n\nNarrated AbuJurayy Jabir ibn Salim al-Hujaymi:\n

\n\n\n\n

\n\nI saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say \"On you be peace,\" for \"On you be peace\" is a greeting for the dead, but say \"Peace be upon you\". \n

\n\n\n

\n\nI asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and you call Him, He returns it to you. \n

\n\n\n

\n\nI said: Give me some advice. He said: Do not abuse anyone. He said that he did not abuse a freeman, or a slave, or a camel or a sheep thenceforth. He said: Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. Have your lower garment halfway down your shin; if you cannot do it, have it up to the ankles. Beware of trailing the lower garment, for it is conceit and Allah does not like conceit. And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it.\n

\n\n\n" - }, - { - "rank": 10, - "collection": "bulugh", - "hadithNumber": "1471", - "score": 0.664, - "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." - } - ], - "openai-small-multi": [ - { - "rank": 1, - "collection": "adab", - "hadithNumber": "328", - "score": 0.6898, - "text": " Ibn 'Abbas said, \"When you want to mention your companion's faults,\nremember your own faults.\"" - }, - { - "rank": 2, - "collection": "bukhari", - "hadithNumber": "6490", - "score": 0.6894, - "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" - }, - { - "rank": 3, - "collection": "riyadussalihin", - "hadithNumber": "466", - "score": 0.685, - "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" - }, - { - "rank": 4, - "collection": "ahmad", - "hadithNumber": "111", - "score": 0.6779, - "text": "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet \u2018Umar bin al-Khattab and ask him about three things. He came to Madinah and \u2018Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, \u2018Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah \ufdfa told me not to do them. He said: (And I asked) about stories (for preaching), because they wanted me to tell them stories. He said: Whatever you want. It was as if he did not want to tell him not to do that. He said: I only wanted to follow what you say. He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." - }, - { - "rank": 5, - "collection": "forty", - "hadithNumber": "18", - "score": 0.6752, - "text": "The felicitous person takes lessons from (the actions of) others." - }, - { - "rank": 6, - "collection": "muslim", - "hadithNumber": "2963 c", - "score": 0.6709, - "text": "

\nAbu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.\n\n

In the chain narrated by Abu Mu'awiya's he said: Upon you." - }, - { - "rank": 7, - "collection": "adab", - "hadithNumber": "592", - "score": 0.6667, - "text": " Abu Hurayra said, \"One of you looks at the mote in his brother's\neye while forgetting the stump in his own eye.\"" - }, - { - "rank": 8, - "collection": "muslim", - "hadithNumber": "2963 a", - "score": 0.6666, - "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - }, - { - "rank": 9, - "collection": "abudawud", - "hadithNumber": "4084", - "score": 0.6655, - "text": "\n

\n\nNarrated AbuJurayy Jabir ibn Salim al-Hujaymi:\n

\n\n\n\n

\n\nI saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say \"On you be peace,\" for \"On you be peace\" is a greeting for the dead, but say \"Peace be upon you\". \n

\n\n\n

\n\nI asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and you call Him, He returns it to you. \n

\n\n\n

\n\nI said: Give me some advice. He said: Do not abuse anyone. He said that he did not abuse a freeman, or a slave, or a camel or a sheep thenceforth. He said: Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. Have your lower garment halfway down your shin; if you cannot do it, have it up to the ankles. Beware of trailing the lower garment, for it is conceit and Allah does not like conceit. And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it.\n

\n\n\n" - }, - { - "rank": 10, - "collection": "bulugh", - "hadithNumber": "1471", - "score": 0.6634, - "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." - } - ], - "nomic": [ - { - "rank": 1, - "collection": "bukhari", - "hadithNumber": "6490", - "score": 0.8354, - "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" - }, - { - "rank": 2, - "collection": "bukhari", - "hadithNumber": "6061", - "score": 0.8165, - "text": "

\nNarrated Abu Bakra:\n\n

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, \n\"May Allah's Mercy be on you ! You have cut the neck of your friend.\" The Prophet repeated this \nsentence many times and said, \"If it is indispensable for anyone of you to praise someone, then he \nshould say, 'I think that he is so-and-so,\" if he really thinks that he is such. Allah is the One Who will \ntake his accounts (as He knows his reality) and no-one can sanctify anybody before Allah.\" (Khalid \nsaid, \"Woe to you,\" instead of \"Allah's Mercy be on you.\")" - }, - { - "rank": 3, - "collection": "bulugh", - "hadithNumber": "1471", - "score": 0.8111, - "text": "Ibn \u2019Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, \u201cHe who imitates any people (in their actions) is considered to be one of them.\u201d Related by Abu Dawud and Ibn Hibban graded it as Sahih." - }, - { - "rank": 4, - "collection": "bukhari", - "hadithNumber": "6530", - "score": 0.8109, - "text": "

\nNarrated Abu Sa`id:\n\n

The Prophet said, \"Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to \nYour Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' \nThen Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) \nare the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine \n(persons).' At that time children will become hoary-headed and every pregnant female will drop \nher load (have an abortion) and you will see the people as if they were drunk, yet not drunk; But \nAllah's punishment will be very severe.\" \nThat news distressed the companions of the Prophet too much, and they said, \"O Allah's Apostle! \nWho amongst us will be that man (the lucky one out of one-thousand who will be saved from the \nFire)?\" He said, \"Have the good news that one-thousand will be from Gog and Magog, and the one (to \nbe saved will be) from you.\" The Prophet added, \"By Him in Whose Hand my soul is, I Hope that \nyou (Muslims) will be one third of the people of Paradise.\" On that, we glorified and praised Allah \nand said, \"Allahu Akbar.\" The Prophet then said, \"By Him in Whose Hand my soul is, I hope that you \nwill be one half of the people of Paradise, as your (Muslims) example in comparison to the other \npeople (non-Muslims), is like that of a white hair on the skin of a black ox, or a round hairless spot on \nthe foreleg of a donkey.\"" - }, - { - "rank": 5, - "collection": "muslim", - "hadithNumber": "2963 a", - "score": 0.8103, - "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - }, - { - "rank": 6, - "collection": "tirmidhi", - "hadithNumber": "2513", - "score": 0.809, - "text": "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said:\n\"Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.\"" - }, - { - "rank": 7, - "collection": "bukhari", - "hadithNumber": "6162", - "score": 0.8085, - "text": "

\nNarrated Abu Bakra:\n\n

A man praised another man in front of the Prophet. The Prophet said thrice, \"Wailaka (Woe on you) ! \nYou have cut the neck of your brother!\" The Prophet added, \"If it is indispensable for anyone of you \nto praise a person, then he should say, \"I think that such-and-such person (is so-and-so), and Allah is \nthe one who will take his accounts (as he knows his reality) and none can sanctify anybody before \nAllah (and that only if he knows well about that person.)\"." - }, - { - "rank": 8, - "collection": "nasai", - "hadithNumber": "3947", - "score": 0.8077, - "text": "It was narrated from Abu Musa that the Prophet said: \"The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.\"" - }, - { - "rank": 9, - "collection": "abudawud", - "hadithNumber": "4627", - "score": 0.8051, - "text": "Ibn \u2018Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. \u2019Umar came next and then \u2018Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." - }, - { - "rank": 10, - "collection": "adab", - "hadithNumber": "1146", - "score": 0.8041, - "text": " Ibn 'Abbas said, \"The most precious of people in my opinion is\nmy sitting companion. This is so much the case that he can step over the\nshoulders of people until he sits with me.\"" - } - ], - "mxbai": [ - { - "rank": 1, - "collection": "forty", - "hadithNumber": "18", - "score": 0.8147, - "text": "The felicitous person takes lessons from (the actions of) others." - }, - { - "rank": 2, - "collection": "bukhari", - "hadithNumber": "6490", - "score": 0.8022, - "text": "

\nNarrated Abu Huraira:\n\n

Allah's Apostle said, \"If anyone of you looked at a person who was made superior to him in property \nand (in good) appearance, then he should also look at the one who is inferior to him.\n\n" - }, - { - "rank": 3, - "collection": "forty", - "hadithNumber": "3", - "score": 0.7969, - "text": "A Muslim is a mirror of the Muslim." - }, - { - "rank": 4, - "collection": "muslim", - "hadithNumber": "2963 a", - "score": 0.794, - "text": "

\r\nAbu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - }, - { - "rank": 5, - "collection": "ibnmajah", - "hadithNumber": "4336", - "score": 0.792, - "text": " Sa\u2019eed\nbin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said:\n\u201cI supplicate Allah to bring you and I together in the marketplace\nof Paradise,\u201d Sa\u2019eed said: \u201cIs there a marketplace there?\u201d He\nsaid: \u201cYes. The Messenger of Allah (saw) told me that when the\npeople of Paradise enter it, they will take their places according to\ntheir deeds, and they will be given permission for a length of time\nequivalent to Friday on earth, when they will visit Allah. His Throne\nwill be shown to them and He will appear to them in one of the\ngardens of Paradise. Chairs of light and chairs of pearls and chairs\nof rubies and chairs of chrysolite and chairs of gold and chairs of\nsilver will be placed for them. Those who are of a lower status than\nthem, and none of them will be regarded as insignificant, will sit on\nsandhills of musk and camphor, and they will not feel that those who\nare sitting on chairs are seated better than them.\u201d\n\nAbu Hurairah said: \u201cI said: \u2018O Messenger of Allah, will we see our Lord?\u2019 He said: \u2018Yes. Do you dispute that you see the sun and the moon on the night when it is full?\u2019 We said: \u2018No.\u2019 He said: \u2018Likewise, you will not dispute that you see your Lord, the Glorified. There will be no one left in that gathering with whom Allah does not speak face to face, until He will say to a man among you: \u201cDo you not remember, O so-and-so, the day you did such and such?\u201d And He will remind him of some of his sins in this world. He will say: \u201cO Lord, have You not forgiven me?\u201d He will say: \u201cYes, it is by the vastness of My forgiveness that You have reached the position you are in.\u201d While they are like that, a cloud will cover them from above and will rain down on them perfume the like of whose fragrance they have never smelled before. Then He will say: \u201cGet up and go to the honor that has been prepared for you, and take whatever you desire.\u201d So we will go to a marketplace surrounded by the angels, in which there will be such things as eyes have never seen, ears have never heard and it has not entered the heart of man. Whatever we desire will be carried for us. Nothing will be bought or sold therein. In that marketplace the people of Paradise will meet one another. A man of elevated status will meet those who are of lower status than him, but none shall be regarded as insignificant, and he will be dazzled by the clothes that he sees on him. He will not finish the last of his conversation before better clothes appear on him. That is because no one should be sad there.\u2019\u201d\n\u201cHe said: \u2018Then we will go back to our homes where we will be met by our wives, and they will say: \u2018Welcome. You have come looking more handsome and with a better fragrance than when you left us.\u2019 And we will say: \u2018Today we sat with our Lord, the Compeller, the Glorified, and we deserve to come back as we have come back.\u2019\u201d" - }, - { - "rank": 6, - "collection": "adab", - "hadithNumber": "159", - "score": 0.7897, - "text": " Abu'd-Darda' used to say to people. \"We know you better than the\nveterinarian knows his animals. We recognise the best of you from the worst\nof you. The best of you is the one whose good is hoped for and the one\nwhose evil you are safe from. As for the worst of you, that is the person\nwhose good is not hoped for and whose evil you are not safe from and he\ndoes not free slaves.\"" - }, - { - "rank": 7, - "collection": "bukhari", - "hadithNumber": "3348", - "score": 0.7888, - "text": "

\nNarrated Abu Sa`id Al-Khudri:\n\n

The Prophet said, \"Allah will say (on the Day of Resurrection), 'O Adam.' Adam will reply, 'Labbaik \nwa Sa`daik', and all the good is in Your Hand.' Allah will say: 'Bring out the people of the fire.' Adam \nwill say: 'O Allah! How many are the people of the Fire?' Allah will reply: 'From every one thousand, \ntake out nine-hundred-and ninety-nine.' At that time children will become hoary headed, every \npregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be \ndrunken, but dreadful will be the Wrath of Allah.\" The companions of the Prophet asked, \"O Allah's \nApostle! Who is that (excepted) one?\" He said, \"Rejoice with glad tidings; one person will be from \nyou and one-thousand will be from Gog and Magog.\" \nThe Prophet further said, \"By Him in Whose Hands my life is, hope that you will be one-fourth of the \npeople of Paradise.\" We shouted, \"Allahu Akbar!\" He added, \"I hope that you will be one-third of the \npeople of Paradise.\" We shouted, \"Allahu Akbar!\" He said, \"I hope that you will be half of the people \nof Paradise.\" We shouted, \"Allahu Akbar!\" He further said, \"You (Muslims) (compared with non \nMuslims) are like a black hair in the skin of a white ox or like a white hair in the skin of a black ox \n(i.e. your number is very small as compared with theirs)." - }, - { - "rank": 8, - "collection": "riyadussalihin", - "hadithNumber": "466", - "score": 0.7864, - "text": " Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, \"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.\"
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: \"When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him\".

" - }, - { - "rank": 9, - "collection": "muslim", - "hadithNumber": "2536", - "score": 0.7854, - "text": "

\n'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." - }, - { - "rank": 10, - "collection": "nasai", - "hadithNumber": "384b", - "score": 0.7824, - "text": "(Another chain) with similarity." - } - ] -} \ No newline at end of file diff --git a/test results & reports/lexical vs hybrid vs semantic/report1.md b/test results & reports/lexical vs hybrid vs semantic/report1.md deleted file mode 100644 index 9bf8017..0000000 --- a/test results & reports/lexical vs hybrid vs semantic/report1.md +++ /dev/null @@ -1,704 +0,0 @@ -# Search Quality Report -**Query:** "comparing yourself to others" -**Date:** 2026-05-20 -**Modes tested:** lexical · hybrid · semantic -**Models tested:** openai-small-en · openai-small-multi · nomic · mxbai -**Results per case:** top 10 · semantic sections re-fetched with size=100 (matches production PHP behavior) - ---- - -## Models - -| Key | Full name | Params | Dimensions | Context | Provider | Cost | Index coverage | -|---|---|---|---|---|---|---|---| -| `openai-small-en` | text-embedding-3-small | Undisclosed | 1536 | 8191 tokens | OpenAI API | Per token (~$0.02/1M) | English only (~48k docs) | -| `openai-small-multi` | text-embedding-3-small | Undisclosed | 1536 | 8191 tokens | OpenAI API | Per token (~$0.02/1M) | English + Arabic (~180k docs) | -| `nomic` | nomic-embed-text-v1.5 | ~137M | 768 | 8192 tokens | Nomic AI — runs locally via Ollama | Free | English only (~48k docs) | -| `mxbai` | mxbai-embed-large-v1 | ~335M | 1024 | 512 tokens | mixedbread.ai — runs locally via Ollama | Free | English only (~48k docs) | - -**openai-small-en / openai-small-multi** — the same underlying OpenAI model (`text-embedding-3-small`), but indexed against different datasets. The `-en` variant embeds only English hadiths; the `-multi` variant embeds all English + Arabic hadiths (~180k total) so multilingual queries can surface Arabic-language results. Parameter count isn't published by OpenAI. Generally strong for English semantic matching. - -**nomic** (`nomic-embed-text-v1.5`) — 137M-parameter open-source model by Nomic AI. Standout feature: 8192-token context window, the longest of the four models, so even very long hadiths are embedded without truncation. Apache 2.0 licensed. Runs entirely locally via Ollama — no API cost, no data leaves the machine. - -**mxbai** (`mxbai-embed-large-v1`) — 335M-parameter model by mixedbread.ai, based on BERT-large architecture. The largest and most capable local model tested. The key trade-off: a short 512-token context window means longer hadiths get silently truncated at indexing time, which may affect recall on longer texts. Apache 2.0 licensed. Runs locally via Ollama. - ---- - -## LEXICAL ONLY - -### #1 — muslim 1776d · score: 17.99 -> "This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." - -**⚠ Misfire** — chain-of-transmission metadata. Keyword "compared" fires. - ---- - -### #2 — bukhari 3334 · score: 16.26 -> "Narrated Anas: The Prophet said, 'Allah will say to that person of the (Hell) Fire who will receive the least punishment, "If you had everything on the earth, would you give it as a ransom to free yourself (i.e. save yourself from this Fire)?" He will say, "Yes." Then Allah will say, "While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me."'" - -**⚠ Misfire** — "yourself" and "others" fire; topic is ransom on the Day of Judgment / shirk. - ---- - -### #3 — muslim 2431 · score: 16.19 -> "Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods." - -**⚠ Misfire** — "as compared to" fires; topic is the excellence of certain women. - ---- - -### #4 — bukhari 4816 · score: 14.90 -> "Narrated Ibn Mas'ud: (regarding) the Verse: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you.' (41.22) While two persons from Quraish and their brother-in-law from Thaqif were in a house, they said to each other, 'Do you think that Allah hears our talks?' Some said, 'He hears a portion thereof.' Others said, 'If He can hear a portion of it, He can hear all of it.' Then the following Verse was revealed: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you.' (41.22)" - -**⚠ Misfire** — "yourself" keyword; topic is Allah's knowledge of all things. - ---- - -### #5 — muslim 2939b · score: 14.88 -> "Mughira b. Shu'ba reported that none asked Allah's Apostle (may peace be upon him) about Dajjal more than I asked him. I said: What did you ask? Mughira replied: I said that the people alleged that he would have a mountain load of bread and mutton and rivers of water. Thereupon he said: He would be more insignificant in the eye of Allah compared with all this." - -**⚠ Misfire** — "compared" fires; topic is the Dajjal. - ---- - -### #6 — abudawud 4627 · score: 14.88 -> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." - -**⚠ Adjacent** — about ranking the Companions; not about self-comparison. - ---- - -### #7 — bukhari 6557 · score: 14.38 -> "Narrated Anas bin Malik: The Prophet said, 'Allah will say to the person who will have the minimum punishment in the Fire on the Day of Resurrection, "If you had things equal to whatever is on the earth, would you ransom yourself (from the punishment) with it?" He will reply, Yes. Allah will say, "I asked you a much easier thing than this while you were in the backbone of Adam, that is, not to worship others besides Me, but you refused and insisted to worship others besides Me."'" - -**⚠ Misfire** — duplicate of #2 concept; "yourself" and "others" fire. - ---- - -### #8 — bukhari 2219 · score: 14.33 -> "Narrated Sa'd that his father said: 'Abdur-Rahman bin 'Auf said to Suhaib, 'Fear Allah and do not ascribe yourself to somebody other than your father.' Suhaib replied, 'I would not like to say it even if I were given large amounts of money, but I say I was kidnapped in my childhood.'" - -**⚠ Misfire** — "ascribe yourself" fires; topic is lineage and identity. - ---- - -### #9 — bukhari 3628 · score: 14.19 -> "Narrated Ibn 'Abbas: Allah's Apostle in his fatal illness came out, wrapped with a sheet, and his head was wrapped with an oiled bandage. He sat on the pulpit, and praising and glorifying Allah, he said, 'Now then, people will increase but the Ansar will decrease in number, so much so that they, compared with the people, will be just like the salt in the meals. So, if any of you should take over the authority by which he can either benefit some people or harm some others, he should accept the goodness of their good people (i.e. Ansar) and excuse the faults of their wrong-doers.' That was the last gathering which the Prophet attended." - -**⚠ Misfire** — "compared with the people" fires; topic is the Prophet's last address about the Ansar. - ---- - -### #10 — bukhari 3655 · score: 14.04 -> "Narrated Ibn 'Umar: We used to compare the people as to who was better during the lifetime of Allah's Apostle. We used to regard Abu Bakr as the best, then 'Umar, and then 'Uthman." - -**⚠ Adjacent** — "compare the people" fires; topic is the ranking of the Companions. - ---- ---- - -## HYBRID — openai-small-en - -### #1 — abudawud 4627 · score: 0.0285 -> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." - -**⚠ Adjacent** — ranking Companions, not self-comparison. - ---- - -### #2 — muslim 2963a · score: 0.0261 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - -**✅ On topic** — directly about comparing yourself to those above and below. - ---- - -### #3 — bukhari 6407 · score: 0.0223 -> "Narrated Abu Musa: The Prophet said, 'The example of the one who celebrates the Praises of his Lord (Allah) in comparison to the one who does not celebrate the Praises of his Lord, is that of a living creature compared to a dead one.'" - -**⚠ Misfire** — "comparison" fires; topic is dhikr vs. no dhikr. - ---- - -### #4 — muslim 1776d · score: 0.0164 -> "This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." - -**⚠ Misfire** — pulled in from lexical leg. - ---- - -### #5 — adab 328 · score: 0.0164 -> "Ibn 'Abbas said, 'When you want to mention your companion's faults, remember your own faults.'" - -**✅ On topic** — self-reflection before judging others. - ---- - -### #6 — bukhari 3334 · score: 0.0161 -> "Narrated Anas: The Prophet said, 'Allah will say to that person of the (Hell) Fire who will receive the least punishment, "If you had everything on the earth, would you give it as a ransom to free yourself?" He will say, "Yes." Then Allah will say, "While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me."'" - -**⚠ Misfire** — pulled in from lexical leg; topic is the Day of Judgment. - ---- - -### #7 — bukhari 6490 · score: 0.0161 -> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" - -**✅ On topic** — the core teaching on self-comparison. - ---- - -### #8 — muslim 2431 · score: 0.0159 -> "Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods." - -**⚠ Misfire** — pulled in from lexical leg. - ---- - -### #9 — riyadussalihin 466 · score: 0.0159 -> "Abu Hurairah (May Allah be pleased with him) reported: Messenger of Allah (PBUH) said, 'Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.' [Al-Bukhari and Muslim]. The narration in Al-Bukhari is: 'When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him.'" - -**✅ On topic** — same teaching as #7, extended wording. - ---- - -### #10 — bukhari 4816 · score: 0.0156 -> "Narrated Ibn Mas'ud: (regarding) the Verse: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you.' (41.22) While two persons from Quraish and their brother-in-law from Thaqif were in a house, they said to each other, 'Do you think that Allah hears our talks?' Some said, 'He hears a portion thereof.' Others said, 'If He can hear a portion of it, He can hear all of it.'" - -**⚠ Misfire** — pulled in from lexical leg. - ---- - -## HYBRID — openai-small-multi - -### #1 — abudawud 4627 · score: 0.0283 -> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." - -**⚠ Adjacent** — ranking Companions. - ---- - -### #2 — muslim 2963a · score: 0.0261 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - -**✅ On topic** - ---- - -### #3 — bukhari 6407 · score: 0.0223 -> "Narrated Abu Musa: The Prophet said, 'The example of the one who celebrates the Praises of his Lord (Allah) in comparison to the one who does not celebrate the Praises of his Lord, is that of a living creature compared to a dead one.'" - -**⚠ Misfire** — "comparison" keyword; topic is dhikr. - ---- - -### #4 — tirmidhi 2323 · score: 0.0187 -> "Qa'is bin Abi Hazim said: I heard Mustawrid, a member of Banu Fihr, saying: The Messenger of Allah (s.a.w) said: 'The world compared to the Hereafter is but like what one of you gets when placing his finger into the sea, so look at what you draw from it.'" - -**⚠ Adjacent** — a comparison hadith, but the topic is the dunya vs. akhira, not self-comparison. Unique to this model (not in openai-small-en hybrid). - ---- - -### #5 — muslim 1776d · score: 0.0164 -> "This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." - -**⚠ Misfire** — lexical leg noise. - ---- - -### #6 — adab 328 · score: 0.0164 -> "Ibn 'Abbas said, 'When you want to mention your companion's faults, remember your own faults.'" - -**✅ On topic** - ---- - -### #7 — bukhari 3334 · score: 0.0161 -> "Narrated Anas: The Prophet said, 'Allah will say to that person of the (Hell) Fire who will receive the least punishment, "If you had everything on the earth, would you give it as a ransom to free yourself?" He will say, "Yes." Then Allah will say, "While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me."'" - -**⚠ Misfire** — lexical leg noise. - ---- - -### #8 — bukhari 6490 · score: 0.0161 -> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" - -**✅ On topic** - ---- - -### #9 — muslim 2431 · score: 0.0159 -> "Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods." - -**⚠ Misfire** — lexical leg noise. - ---- - -### #10 — riyadussalihin 466 · score: 0.0159 -> "Abu Hurairah (May Allah be pleased with him) reported: Messenger of Allah (PBUH) said, 'Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.' [Al-Bukhari and Muslim]. The narration in Al-Bukhari is: 'When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him.'" - -**✅ On topic** - ---- - -## HYBRID — nomic - -### #1 — abudawud 4627 · score: 0.0296 -> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." - -**⚠ Adjacent** — ranking Companions. - ---- - -### #2 — muslim 2963a · score: 0.0267 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - -**✅ On topic** - ---- - -### #3 — bukhari 3655 · score: 0.0249 -> "Narrated Ibn 'Umar: We used to compare the people as to who was better during the lifetime of Allah's Apostle. We used to regard Abu Bakr as the best, then 'Umar, and then 'Uthman." - -**⚠ Adjacent** — ranking Companions; "compare" fires. - ---- - -### #4 — mishkat 6025 · score: 0.0214 -> "Ibn 'Umar said: In the time of the Prophet, we did not compare anyone with Abu Bakr. 'Umar came next and then Uthman. We would then leave the Prophet's companions without treating any as superior to others. Bukhari transmitted it. In a version by Abu Dawud, he said: When God's messenger was alive, we used to say that the most excellent member of the Prophet's people after himself was Abu Bakr, then 'Umar, then 'Uthman." - -**⚠ Adjacent** — same concept as #1 and #3; Companions ranking. - ---- - -### #5 — bukhari 3791 · score: 0.0206 -> "Narrated Abu Humaid: The Prophet said, 'The best of the Ansar families (homes) are the families of Banu An-Najjar, and then that of Banu 'Abdul Ash-hal, and then that of Banu Al-Harith, and then that of Banu Saida; and there is good in all the families of the Ansar.' Sa'd bin 'Ubada followed us and said, 'O Abu Usaid! Don't you see that the Prophet compared the Ansar and made us the last of them in superiority?' Then Sa'd met the Prophet and said, 'O Allah's Apostle! In comparing the Ansar's families as to the degree of superiority, you have made us the last of them.' Allah's Apostle replied, 'Isn't it sufficient that you are regarded amongst the best?'" - -**⚠ Misfire** — "compared" fires; topic is ranking of Ansar tribes. - ---- - -### #6 — bukhari 6407 · score: 0.0194 -> "Narrated Abu Musa: The Prophet said, 'The example of the one who celebrates the Praises of his Lord (Allah) in comparison to the one who does not celebrate the Praises of his Lord, is that of a living creature compared to a dead one.'" - -**⚠ Misfire** — "comparison" fires; topic is dhikr. - ---- - -### #7 — bukhari 3348 · score: 0.0167 -> "Narrated Abu Sa'id Al-Khudri: The Prophet said, 'Allah will say, "O Adam." Adam will reply, "Labbaik wa Sa'daik." Allah will say, "Bring out the people of the fire." Adam will say, "O Allah! How many are the people of the Fire?" Allah will reply: "From every one thousand, take out nine-hundred-and-ninety-nine." At that time children will become hoary headed, every pregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be drunken, but dreadful will be the Wrath of Allah.' [...] The Prophet further said, 'By Him in Whose Hands my life is, hope that you will be one-fourth of the people of Paradise.' [...] 'You (Muslims) compared with non-Muslims are like a black hair in the skin of a white ox or like a white hair in the skin of a black ox (i.e. your number is very small as compared with theirs).'" - -**⚠ Misfire** — "compared" fires; topic is the Day of Judgment and the proportion of Muslims in Paradise. - ---- - -### #8 — muslim 1776d · score: 0.0164 -> "This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." - -**⚠ Misfire** — lexical leg noise. - ---- - -### #9 — bukhari 6490 · score: 0.0164 -> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" - -**✅ On topic** - ---- - -### #10 — bukhari 3334 · score: 0.0161 -> "Narrated Anas: The Prophet said, 'Allah will say to that person of the (Hell) Fire who will receive the least punishment, "If you had everything on the earth, would you give it as a ransom to free yourself?" He will say, "Yes." Then Allah will say, "While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me."'" - -**⚠ Misfire** — lexical leg noise. - ---- - -## HYBRID — mxbai - -### #1 — muslim 2963a · score: 0.0270 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - -**✅ On topic** - ---- - -### #2 — bukhari 3655 · score: 0.0259 -> "Narrated Ibn 'Umar: We used to compare the people as to who was better during the lifetime of Allah's Apostle. We used to regard Abu Bakr as the best, then 'Umar, and then 'Uthman." - -**⚠ Adjacent** — ranking Companions. - ---- - -### #3 — abudawud 4627 · score: 0.0218 -> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." - -**⚠ Adjacent** — ranking Companions; duplicate concept of #2. - ---- - -### #4 — muslim 1776d · score: 0.0164 -> "This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." - -**⚠ Misfire** — lexical leg noise. - ---- - -### #5 — forty 18 · score: 0.0164 -> "The felicitous person takes lessons from (the actions of) others." - -**✅ On topic** - ---- - -### #6 — bukhari 3334 · score: 0.0161 -> "Narrated Anas: The Prophet said, 'Allah will say to that person of the (Hell) Fire who will receive the least punishment, "If you had everything on the earth, would you give it as a ransom to free yourself?" He will say, "Yes." Then Allah will say, "While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me."'" - -**⚠ Misfire** — lexical leg noise. - ---- - -### #7 — bukhari 6490 · score: 0.0161 -> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" - -**✅ On topic** - ---- - -### #8 — muslim 2431 · score: 0.0159 -> "Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods." - -**⚠ Misfire** — lexical leg noise. - ---- - -### #9 — forty 3 · score: 0.0159 -> "A Muslim is a mirror of the Muslim." - -**✅ Adjacent** — metaphor about self-reflection through others. - ---- - -### #10 — bukhari 4816 · score: 0.0156 -> "Narrated Ibn Mas'ud: (regarding) the Verse: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you.' (41.22) While two persons from Quraish and their brother-in-law from Thaqif were in a house, they said to each other, 'Do you think that Allah hears our talks?' Some said, 'He hears a portion thereof.' Others said, 'If He can hear a portion of it, He can hear all of it.' Then the following Verse was revealed: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you.' (41.22)" - -**⚠ Misfire** — lexical leg noise. - ---- ---- - -## SEMANTIC — openai-small-en - -### #1 — adab 328 · score: 0.6896 -> "Ibn 'Abbas said, 'When you want to mention your companion's faults, remember your own faults.'" - -**✅ On topic** — self-reflection before judging others. - ---- - -### #2 — bukhari 6490 · score: 0.6896 -> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" - -**✅ On topic** — the core teaching on comparison. - ---- - -### #3 — riyadussalihin 466 · score: 0.6851 -> "Abu Hurairah (May Allah be pleased with him) reported: Messenger of Allah (PBUH) said, 'Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.' [Al-Bukhari and Muslim]. The narration in Al-Bukhari is: 'When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him.'" - -**✅ On topic** — same teaching with fuller wording. - ---- - -### #4 — ahmad 111 · score: 0.6775 -> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet 'Umar bin al-Khattab and ask him about three things. [...] He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." - -**✅ Adjacent** — the danger of feeling superior to others. - ---- - -### #5 — forty 18 · score: 0.6753 -> "The felicitous person takes lessons from (the actions of) others." - -**✅ On topic** - ---- - -### #6 — muslim 2963c · score: 0.6708 -> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors." - -**✅ On topic** — another narration of the core teaching; surfaces with size=100 (was absent from size=10 results). - ---- - -### #7 — adab 592 · score: 0.6669 -> "Abu Hurayra said, 'One of you looks at the mote in his brother's eye while forgetting the stump in his own eye.'" - -**✅ On topic** — self-awareness before judging others; Biblical parallel (Matthew 7:3). - ---- - -### #8 — muslim 2963a · score: 0.6666 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - -**✅ On topic** — core teaching on self-comparison; surfaces with size=100 (was absent from size=10 results). - ---- - -### #9 — abudawud 4084 · score: 0.6659 -> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: [...] I said: Give me some advice. He said: Do not abuse anyone. [...] Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. This is a good work. [...] And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it." - -**✅ Adjacent** — advice about treating others and not shaming them for faults you share. - ---- - -### #10 — bulugh 1471 · score: 0.6640 -> "Ibn 'Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, 'He who imitates any people (in their actions) is considered to be one of them.' Related by Abu Dawud and Ibn Hibban graded it as Sahih." - -**⚠ Adjacent** — imitation/identification with others; loosely related. - ---- - -## SEMANTIC — openai-small-multi - -### #1 — adab 328 · score: 0.6898 -> "Ibn 'Abbas said, 'When you want to mention your companion's faults, remember your own faults.'" - -**✅ On topic** - ---- - -### #2 — bukhari 6490 · score: 0.6894 -> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" - -**✅ On topic** - ---- - -### #3 — riyadussalihin 466 · score: 0.6850 -> "Abu Hurairah (May Allah be pleased with him) reported: Messenger of Allah (PBUH) said, 'Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.' [Al-Bukhari and Muslim]. The narration in Al-Bukhari is: 'When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him.'" - -**✅ On topic** - ---- - -### #4 — ahmad 111 · score: 0.6779 -> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet 'Umar bin al-Khattab and ask him about three things. [...] He said: I am afraid that if you tell them stories (for preaching), you will think that you are better than them, then you will tell them stories and think that you are better than them, until you imagine that you are as far above them as the Pleiades, then Allah will put you that far beneath their feet on the Day of Resurrection." - -**✅ Adjacent** — the danger of feeling superior to others; surfaces with size=100 (was absent from size=10 results). - ---- - -### #5 — forty 18 · score: 0.6752 -> "The felicitous person takes lessons from (the actions of) others." - -**✅ On topic** — surfaces with size=100 (was absent from size=10 results). - ---- - -### #6 — muslim 2963c · score: 0.6709 -> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you." - -**✅ On topic** - ---- - -### #7 — adab 592 · score: 0.6667 -> "Abu Hurayra said, 'One of you looks at the mote in his brother's eye while forgetting the stump in his own eye.'" - -**✅ On topic** - ---- - -### #8 — muslim 2963a · score: 0.6666 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - -**✅ On topic** - ---- - -### #9 — abudawud 4084 · score: 0.6655 -> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: [...] Do not abuse anyone. [...] Do not look down upon any good work, and when you speak to your brother, show him a cheerful face. [...] And if a man abuses and shames you for something which he finds in you, then do not shame him for something which you find in him; he will bear the evil consequences for it." - -**✅ Adjacent** — advice about treatment of others and not shaming. - ---- - -### #10 — bulugh 1471 · score: 0.6634 -> "Ibn 'Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, 'He who imitates any people (in their actions) is considered to be one of them.' Related by Abu Dawud and Ibn Hibban graded it as Sahih." - -**⚠ Adjacent** — imitation of others; loosely related. - ---- - -## SEMANTIC — nomic - -### #1 — bukhari 6490 · score: 0.8354 -> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" - -**✅ On topic** - ---- - -### #2 — bukhari 6061 · score: 0.8165 -> "Narrated Abu Bakra: A man was mentioned before the Prophet and another man praised him greatly. The Prophet said, 'May Allah's Mercy be on you! You have cut the neck of your friend.' The Prophet repeated this sentence many times and said, 'If it is indispensable for anyone of you to praise someone, then he should say, "I think that he is so-and-so," if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody before Allah.'" - -**⚠ Adjacent** — about praising others excessively / judging others. - ---- - -### #3 — bulugh 1471 · score: 0.8111 -> "Ibn 'Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, 'He who imitates any people (in their actions) is considered to be one of them.' Related by Abu Dawud and Ibn Hibban graded it as Sahih." - -**⚠ Adjacent** — imitation of others; loosely related. - ---- - -### #4 — bukhari 6530 · score: 0.8109 -> "Narrated Abu Sa'id: The Prophet said, 'Allah will say, "O Adam!" [...] "By Him in Whose Hand my soul is, I hope that you will be one half of the people of Paradise, as your (Muslims') example in comparison to the other people (non-Muslims), is like that of a white hair on the skin of a black ox, or a round hairless spot on the foreleg of a donkey."'" - -**⚠ Misfire** — "in comparison" fires; topic is the Day of Judgment and proportions of Paradise. - ---- - -### #5 — muslim 2963a · score: 0.8103 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - -**✅ On topic** - ---- - -### #6 — tirmidhi 2513 · score: 0.8090 -> "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: 'Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy (so that you will) not belittle Allah's favors upon you.'" - -**✅ On topic** - ---- - -### #7 — bukhari 6162 · score: 0.8085 -> "Narrated Abu Bakra: A man praised another man in front of the Prophet. The Prophet said thrice, 'Wailaka (Woe on you)! You have cut the neck of your brother!' The Prophet added, 'If it is indispensable for anyone of you to praise a person, then he should say, "I think that such-and-such person is so-and-so," and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah.'" - -**⚠ Adjacent** — duplicate of #2 concept; about excessive praise. - ---- - -### #8 — nasai 3947 · score: 0.8077 -> "It was narrated from Abu Musa that the Prophet said: 'The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.'" - -**⚠ Misfire** — "superiority to other" fires; topic is 'Aishah's excellence. - ---- - -### #9 — abudawud 4627 · score: 0.8051 -> "Ibn 'Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. 'Umar came next and then 'Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." - -**⚠ Adjacent** — ranking Companions, not self-comparison. - ---- - -### #10 — adab 1146 · score: 0.8041 -> "Ibn 'Abbas said, 'The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me.'" - -**⚠ Misfire** — off topic; about valuing a companion. - ---- - -## SEMANTIC — mxbai - -### #1 — forty 18 · score: 0.8147 -> "The felicitous person takes lessons from (the actions of) others." - -**✅ On topic** - ---- - -### #2 — bukhari 6490 · score: 0.8022 -> "Narrated Abu Huraira: Allah's Apostle said, 'If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him.'" - -**✅ On topic** - ---- - -### #3 — forty 3 · score: 0.7969 -> "A Muslim is a mirror of the Muslim." - -**✅ Adjacent** — metaphor about self-reflection through others. - ---- - -### #4 — muslim 2963a · score: 0.7940 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - -**✅ On topic** - ---- - -### #5 — ibnmajah 4336 · score: 0.7920 -> "Sa'eed bin Al-Musayyab said that he met Abu Hurairah... [lengthy hadith about the marketplace of Paradise] '...Those who are of a lower status than them, and none of them will be regarded as insignificant, will sit on sandhills of musk and camphor, and they will not feel that those who are sitting on chairs are seated better than them.' [...] 'A man of elevated status will meet those who are of lower status than him, but none shall be regarded as insignificant... That is because no one should be sad there.'" - -**[needs review]** — lengthy hadith about the marketplace of Paradise; includes passages on people of different status meeting without any feeling of inferiority. - ---- - -### #6 — adab 159 · score: 0.7897 -> "Abu'd-Darda' used to say to people: 'We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves.'" - -**[needs review]** — about discerning the best and worst among people. - ---- - -### #7 — riyadussalihin 466 · score: 0.7864 -> "Abu Hurairah (May Allah be pleased with him) reported: Messenger of Allah (PBUH) said, 'Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.' [Al-Bukhari and Muslim]. The narration in Al-Bukhari is: 'When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him.'" - -**✅ On topic** - ---- - -### #8 — muslim 2536 · score: 0.7854 -> "'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." - -**⚠ Adjacent** — ranking generations; "best" comparison but not about self. - ---- - -### #9 — tirmidhi 2513 · score: 0.7821 -> "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: 'Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy (so that you will) not belittle Allah's favors upon you.'" - -**✅ On topic** - ---- - -### #10 — abudawud 4092 · score: 0.7821 -> "Narrated AbuHurayrah: A man who was beautiful came to the Prophet (saws). He said: Messenger of Allah, I am a man who likes beauty, and I have been given some of it, as you see. And I do not like that anyone excels me (in respect of beauty). Is it pride? He replied: No, pride is disdaining what is true and despising people." - -**[needs review]** — about a man concerned with being excelled by others in beauty; the Prophet defines pride as disdaining truth and despising people. This is the result that appeared in the UI but was absent from the original size=10 report. - ---- ---- - -## Summary - -| Case | On-topic / 10 | Notes | -|---|---|---| -| Lexical (all models) | 0 / 10 | All keyword misfires — "yourself", "others", "compared" dominate | -| Hybrid – openai-small-en | 3 / 10 | #7 and #9 rescued by semantic leg; heavy lexical noise in #4, #6, #8, #10 | -| Hybrid – openai-small-multi | 3 / 10 | Nearly identical to en-only; tirmidhi 2323 unique at #4 (adjacent) | -| Hybrid – nomic | 2 / 10 | Companions-ranking cluster (#1, #3, #4, #5) dominates; lexical noise in #8, #10 | -| Hybrid – mxbai | 2 / 10 | Companions-ranking cluster again; lexical noise throughout | -| Semantic – openai-small-en | 4 or 5 / 10 [needs review] | size=100: #6/#8 are new on-topic results (muslim 2963c/2963a); tirmidhi 2513 and bukhari 7528 drop out | -| Semantic – openai-small-multi | 4 or 5 / 10 [needs recount] | size=100: ahmad 111 at #4, forty 18 at #5 (both new); tirmidhi 2513 and bukhari 7528 drop out | -| Semantic – nomic | 4 / 10 | size=100: abudawud 4627 enters at #9, nasai 3948 drops; #1–#8 unchanged | -| Semantic – mxbai | 6 / 10 | size=100: ibnmajah 4336 (#5) and adab 159 (#6) and abudawud 4092 (#10) are new; riyadussalihin 7 / forty 19 / forty 29 drop out | - -> **Note on size=100:** Semantic sections were re-fetched with size=100 to match production PHP behavior. HNSW with larger size explores more candidates, surfacing higher-scoring docs that were missed at size=10. Rows marked [needs review] have either duplicate entries or results arguably not entirely on topic. - -**openai-small-en vs openai-small-multi (semantic):** With size=100 the two models converge further — both now show ahmad 111, forty 18, muslim 2963c and 2963a in top-10. The models use the same underlying embedding (text-embedding-3-small) and the same inference endpoint, so divergence only comes from index coverage (English-only vs English+Arabic). Arabic-query testing would reveal more meaningful differences. - -**Consistently correct hadiths across models (size=100):** -- **bukhari 6490** — appears in top-3 of every semantic case and in hybrid top-10 for all models. Ground-truth correct. -- **muslim 2963a** — appears in all 4 semantic cases (nomic #5, mxbai #4, en #8, multi #8) and all hybrid cases. Ground-truth correct. -- **riyadussalihin 466** — full-wording version of the same teaching; in openai en #3, openai multi #3, mxbai #7. -- **tirmidhi 2513** — now only in nomic (#6) and mxbai (#9); drops from openai semantic with size=100. -- **adab 328** — self-reflection angle; surfaces in both openai semantic cases at #1. -- **forty 18** — brief but on-topic; in mxbai #1, openai en #5, openai multi #5. - -**Recurring issue:** muslim 1776d (a chain-of-transmission note with no substantive content) appears in hybrid results for all four models at a tied score of 0.0164, pulled in from the lexical leg. Worth filtering out hadiths with very short or content-free text at indexing time. diff --git a/test results & reports/lexical vs semantic/test1/batch_report.md b/test results & reports/lexical vs semantic/test1/batch_report.md deleted file mode 100644 index 42e5651..0000000 --- a/test results & reports/lexical vs semantic/test1/batch_report.md +++ /dev/null @@ -1,1344 +0,0 @@ -# Batch Semantic Search Report -**Date:** 2026-05-25 -**Method:** Semantic search (HNSW), `size=100`, report shows top 10 per model -**Queries:** 13 - ---- - -## Query: "comparing yourself to others" - -### openai-small-en - -**#1** — adab 328 · score: 0.6896 -> Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults." - -**#2** — bukhari 6490 · score: 0.6896 ->

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is… - -**#3** — riyadussalihin 466 · score: 0.6851 -> Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you… - -**#4** — ahmad 111 · score: 0.6775 -> It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He… - -**#5** — forty 18 · score: 0.6753 -> The felicitous person takes lessons from (the actions of) others. - -**#6** — muslim 2963 c · score: 0.6708 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that… - -**#7** — adab 592 · score: 0.6669 -> Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye." - -**#8** — muslim 2963 a · score: 0.6666 ->

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should… - -**#9** — abudawud 4084 · score: 0.6659 ->

Narrated AbuJurayy Jabir ibn Salim al-Hujaymi:

I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the… - -**#10** — bulugh 1471 · score: 0.664 -> Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as… - - -### nomic - -**#1** — bukhari 6490 · score: 0.8354 ->

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is… - -**#2** — bukhari 6061 · score: 0.8165 ->

Narrated Abu Bakra:

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, "May Allah's Mercy be on you ! You have cut the neck of your friend." The… - -**#3** — bulugh 1471 · score: 0.8111 -> Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as… - -**#4** — bukhari 6530 · score: 0.8109 ->

Narrated Abu Sa`id:

The Prophet said, "Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the… - -**#5** — muslim 2963 a · score: 0.8103 ->

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should… - -**#6** — tirmidhi 2513 · score: 0.809 -> Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not… - -**#7** — bukhari 6162 · score: 0.8085 ->

Narrated Abu Bakra:

A man praised another man in front of the Prophet. The Prophet said thrice, "Wailaka (Woe on you) ! You have cut the neck of your brother!" The Prophet added, "If it is… - -**#8** — nasai 3947 · score: 0.8077 -> It was narrated from Abu Musa that the Prophet said: "The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food." - -**#9** — abudawud 4627 · score: 0.8051 -> Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the… - -**#10** — adab 1146 · score: 0.8041 -> Ibn 'Abbas said, "The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me." - - -### mxbai - -**#1** — forty 18 · score: 0.8147 -> The felicitous person takes lessons from (the actions of) others. - -**#2** — bukhari 6490 · score: 0.8022 ->

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is… - -**#3** — forty 3 · score: 0.7969 -> A Muslim is a mirror of the Muslim. - -**#4** — muslim 2963 a · score: 0.794 ->

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should… - -**#5** — ibnmajah 4336 · score: 0.792 -> Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace… - -**#6** — adab 159 · score: 0.7897 -> Abu'd-Darda' used to say to people. "We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for… - -**#7** — riyadussalihin 466 · score: 0.7864 -> Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you… - -**#8** — muslim 2536 · score: 0.7854 ->

'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second… - -**#9** — tirmidhi 2513 · score: 0.7821 -> Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not… - -**#10** — abudawud 4092 · score: 0.7821 ->

Narrated AbuHurayrah:

A man who was beautiful came to the Prophet (saws). He said: Messenger of Allah, I am a man who likes beauty, and I have been given some of it, as you see. And I do… - - ---- - -## Query: "aisha six years" - -### openai-small-en - -**#1** — bukhari 5134 · score: 0.7911 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained… - -**#2** — bukhari 5133 · score: 0.7872 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till… - -**#3** — muslim 1422 d · score: 0.7823 -> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house… - -**#4** — muslim 1422 b · score: 0.7807 ->

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old. - -**#5** — muslim 1422 c · score: 0.78 ->

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and… - -**#6** — mishkat 3129 · score: 0.7723 -> ‘A’isha said that the Prophet married her when she was seven, she was brought to live with him when she was nine bringing her toys with her, and he died when she was eighteen. Muslim transmitted it. - -**#7** — muslim 334 d · score: 0.7658 ->

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years," and the rest of the hadith is the same… - -**#8** — nasai 3378 · score: 0.7618 -> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls." - -**#9** — ibnmajah 1877 · score: 0.7572 -> It was narrated that: Abdullah said: “The Prophet married Aishah when she was seven years old, and consummated the marriage with her when she was nine, and he passed away when she was eighteen.” - -**#10** — nasai 3379 · score: 0.7566 -> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine." - - -### nomic - -**#1** — muslim 1422 d · score: 0.7981 -> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house… - -**#2** — bukhari 3948 · score: 0.7872 ->

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. - -**#3** — muslim 334 d · score: 0.7823 ->

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years," and the rest of the hadith is the same… - -**#4** — muslim 1422 b · score: 0.7789 ->

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old. - -**#5** — bulugh 228 · score: 0.7779 -> It is mentioned in al-Bazzar through another chain with the addition: "forty years." - -**#6** — abudawud 2240 · score: 0.7756 ->

Narrated Abdullah ibn Abbas:

The Messenger of Allah (saws) restored his daughter Zaynab to Abul'As on the basis of the previous marriage, and he did not do anything afresh.

… - -**#7** — shamail 380 · score: 0.7728 -> Mu'awiya said in a sermon: "The Prophet died (Allah bless him and give him peace) when he was sixty-three years of age, as did Abu Bakr and 'Umar, and I am now sixty-three years of age.” - -**#8** — muslim 1422 c · score: 0.771 ->

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and… - -**#9** — mishkat 5489 · score: 0.7701 -> Asma' daughter of Yazid b. as-Sakan reported the Prophet a saying, "The dajjal will remain in the earth forty years, a year being like a month, a month like a week, a week like a day, and a day like… - -**#10** — bukhari 5133 · score: 0.7689 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till… - - -### mxbai - -**#1** — bukhari 3894 · score: 0.8627 ->

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on… - -**#2** — nasai 3255 · score: 0.8612 -> It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine. - -**#3** — bukhari 5133 · score: 0.86 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till… - -**#4** — ibnmajah 1876 · score: 0.8522 -> It was narrated that: Aishah said: “The Messenger of Allah married me when I was six years old. Then we came to Al-Madinah and settled among Banu Harith bin Khazraj. I became ill and my hair fell… - -**#5** — bukhari 5134 · score: 0.8507 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained… - -**#6** — bukhari 5158 · score: 0.849 ->

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him… - -**#7** — nasai 3378 · score: 0.8465 -> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls." - -**#8** — nasai 3379 · score: 0.8449 -> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine." - -**#9** — muslim 1422 d · score: 0.8446 -> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house… - -**#10** — nasai 3258 · score: 0.8426 -> It was narrated from 'Aishah that the Messenger of Allah married her when she was nine and he died when she was eighteen years old. - - ---- - -## Query: "music" - -### openai-small-en - -**#1** — mishkat 3153 · score: 0.6246 -> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn… - -**#2** — malik 1748 · score: 0.6187 ->

Yahya related to me from Malik from Abu Hazim ibn Dinar that Abu Idris al-Khawlani said, "I entered the Damascus mosque and there was a young man with a beautiful mouth and white teeth sitting… - -**#3** — abudawud 1468 · score: 0.617 ->

Narrated Al-Bara' ibn Azib:

The Prophet (saws) said: Beautify the Qur'an with your voices.

- -**#4** — adab 786 · score: 0.6146 -> Ibn 'Abbas said about "There are some people who trade in distracting tales" (31:5) that it means singing and things like it. - -**#5** — bukhari 439 · score: 0.6132 ->

Narrated `Aisha:

There was a black slave girl belonging to an 'Arab tribe and they manumitted her but she remained with them. The slave girl said, "Once one of their girls (of that tribe) came… - -**#6** — muslim 2114 · score: 0.6126 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. - -**#7** — adab 1265 · score: 0.6111 -> Ibn 'Abbas said that the words of Allah in Luqman (35:6), "There are people who trade in distracting tales" mean "singing and things like it." - -**#8** — muslim 793 d · score: 0.6071 ->

Buraida reported on the authority of his father that the Messenger of Allah (may peace be upon him) had said: 'Abdullah b. Qais or al-Ash'ari has been gifted with a sweet melodious voice out of… - -**#9** — forty 19 · score: 0.6067 -> Indeed, in poetry there is wisdom and in eloquence there is magic. - -**#10** — forty 25 · score: 0.606 ->

Also on the authority of Abu Dharr (may Allah be pleased with him): Some people from amongst the Companions of the Messenger of Allah (peace and blessings of Allah be upon him) said to the Prophet… - - -### nomic - -**#1** — muslim 2114 · score: 0.8074 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. - -**#2** — mishkat 3153 · score: 0.8052 -> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn… - -**#3** — tirmidhi 3728 · score: 0.7873 -> Narrated Anas bin Malik: "The advent of the Prophet (SAW) was on Monday and 'Ali performed Salat on Tuesday." - -**#4** — muslim 892 a · score: 0.7864 ->

'A'isha reported: Abu Bakr came to see me and I had two girls with me from among the girls of the Ansar and they were singing what the Ansar recited to one another at the Battle of Bu'ath. They… - -**#5** — tirmidhi 3734 · score: 0.7863 -> Narrated Ibn 'Abbas: "The first to perform Salat was 'Ali." - -**#6** — nasai 342 · score: 0.7859 -> It was narrated that Ibn 'Umar said: "Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH)." - -**#7** — bukhari 952 · score: 0.7855 ->

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said… - -**#8** — nasai 71 · score: 0.7854 -> It was narrated that Ibn 'Umar said: "Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH)." - -**#9** — bukhari 1621 · score: 0.7853 ->

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf of the Ka`ba tied with a string or something else. So the Prophet cut that string. - -**#10** — ibnmajah 1898 · score: 0.7842 -> It was narrated that 'Aishah said: “Abu Bakr entered upon me, and there were two girls from the Ansar with me, singing about the Day of Bu'ath.” She said: “And they were not really singers. Abu Bakr… - - -### mxbai - -**#1** — muslim 892 b · score: 0.7705 ->

This hadith has been narrated by Hisham with the same chain of transmitters, but there the words are:" Two girls were playing upon a tambourine." - -**#2** — tirmidhi 2780b · score: 0.7596 -> Another chain with a similar narration - -**#3** — tirmidhi 2783b · score: 0.7578 -> (Another chain) with a similar narration - -**#4** — tirmidhi 1599 · score: 0.7559 -> Another chain with similar narration. - -**#5** — mishkat 2214 · score: 0.752 -> Ibn ‘Abbās reported God’s messenger as saying, “Gabriel taught me to recite in one mode, and when I replied to him and kept asking him to give me more he did so till he reached seven modes." Ibn… - -**#6** — mishkat 3153 · score: 0.7513 -> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn… - -**#7** — hisn 94 · score: 0.7495 -> Subḥānallāhi wa biḥamdih: `adada khalqih, wa riḍā nafsih, wa zinata `arshih, wa midāda kalimātih. Glory is to Allah and praise is to… - -**#8** — abudawud 942 · score: 0.7494 -> ‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. - -**#9** — hisn 181 · score: 0.7488 -> Alhamdu lillāhi ḥamdan kathīran tayyiban mubārakan fīh, ghayra makfiyyin wa lā muwadda`in, wa lā mustaghnan `anhu Rabbanā. All praise… - -**#10** — bukhari 5944b · score: 0.7477 ->

Narrated `Abdullah:

(As above 827). - - ---- - -## Query: "actions are by intentions" - -### openai-small-en - -**#1** — forty 33 · score: 0.9241 -> Actions are through intentions. - -**#2** — nasai 75 · score: 0.7223 -> It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: "The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus… - -**#3** — nasai 3794 · score: 0.7109 -> It was narrated from 'Umar bin Al-Khattab that the Prophet said: "Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of… - -**#4** — ibnmajah 4229 · score: 0.7081 -> It was narrated from Abu Hurairah that the Messenger of Allah (saw) said: “People will be resurrected (and judged) according to their intentions.” - -**#5** — ahmad 168 · score: 0.7077 -> Umar said: I heard the Messenger of Allah ﷺ say: `Deeds are but by intentions and each man will have but that which he intended. If a man's migration was for the sake of Allah, then his migration was… - -**#6** — abudawud 2201 · score: 0.6958 -> ‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His… - -**#7** — nasai 3437 · score: 0.6949 -> It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: "Actions are but by intentions, and each man will have but that which he intended.… - -**#8** — tirmidhi 1647 · score: 0.6894 -> Narrated 'Umar bin Al-Khattab:

That the Messenger of Allah (saws) said: "Deeds are but with intentions, and for the man is only what he intended. So one whose emigration was to Allah and His… - -**#9** — muslim 130 · score: 0.6872 ->

It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him) observed: He who intended to do good, but did not do it, one good was recorded for him, and he… - -**#10** — ibnmajah 4230 · score: 0.6857 -> It was narrated from Jabir that the Messenger of Allah (saw) said: “People will be gathered (on the Day of Resurrection) according to their intentions.” - - -### nomic - -**#1** — bukhari 6607 · score: 0.826 ->

Narrated Sahl bin Sa`d:

There was a man who fought most bravely of all the Muslims on behalf of the Muslims in a battle (Ghazwa) in the company of the Prophet. The Prophet looked at him and… - -**#2** — abudawud 1368 · score: 0.8197 -> Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those… - -**#3** — ahmad 184 · score: 0.8165 -> It was narrated that Yahya bin Ya'mar and Humaid bin ‘Abdur­-Rahman al­-Himyari said: We met 'Abdullah bin 'Umar and discussed the divine decree (al qadar) and what others said concerning it. He… - -**#4** — bukhari 1559 · score: 0.8164 ->

Narrated Abu Musa:

The Prophet sent me to some people in Yemen and when I returned, I found him at Al-Batha. He asked me, "With what intention have you assumed Ihram (i.e. for Hajj or for Umra… - -**#5** — mishkat 3444 · score: 0.8156 -> ‘Imran b. Husain told that he heard God’s Messenger say, “Vows are of two kinds, so if anyone vows to do an act of obedience, that is for God and must be fulfilled; but if anyone vows, to do an act… - -**#6** — bulugh 918 · score: 0.8098 -> Narrated [Ibn 'Abbas (RA)]: Allah's Messenger (SAW) said, "There should neither be harming (of others without cause), nor reciprocating harm (between two parties)." [Reported by Ahmad and Ibn Majah]. - -**#7** — ibnmajah 2120 · score: 0.8093 -> It was narrated from Abu Hurairah that the Messenger of Allah (SAW) said: "The oath is only according to the intention of the one who requests the oath to be taken."' - -**#8** — bukhari 7551 · score: 0.8077 ->

Narrated `Imran:

I said, "O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, "Everybody will find easy to do such deeds as will lead him to his destined… - -**#9** — adab 490 · score: 0.8071 -> Abu Dharr reported that the Prophet, may Allah bless him and grant him peace, reported that Allah, the Blessed and Exalted, said: "My slaves! I have forbidden injustice for Myself and I have made it… - -**#10** — tirmidhi 2007 · score: 0.807 -> Hudhaifah narrated that the Messenger of Allah said: “Do not be a people without a will of your own, saying: 'If people treat us well, we will treat them well; and if they do wrong, we will do… - - -### mxbai - -**#1** — forty 33 · score: 0.988 -> Actions are through intentions. - -**#2** — forty 5 · score: 0.864 -> The person guiding (someone) to do a good deed, is like the one performing the good deed. - -**#3** — forty 18 · score: 0.8358 -> The felicitous person takes lessons from (the actions of) others. - -**#4** — abudawud 1368 · score: 0.8291 -> Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those… - -**#5** — nasai 3794 · score: 0.8226 -> It was narrated from 'Umar bin Al-Khattab that the Prophet said: "Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of… - -**#6** — nasai 75 · score: 0.8221 -> It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: "The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus… - -**#7** — muslim 2648 b · score: 0.8211 ->

This hadith has been transmitted on the authority of Jabir b. Abdullah with the same wording (and includes these words):" Allah's Messenger (may peace be upon him) said: Every doer of deed is… - -**#8** — bukhari 7551 · score: 0.8187 ->

Narrated `Imran:

I said, "O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, "Everybody will find easy to do such deeds as will lead him to his destined… - -**#9** — forty 1 · score: 0.8183 ->

It is narrated on the authority of Amirul Mu'minin, Abu Hafs 'Umar bin al-Khattab (ra) who said: I heard the Messenger of Allah (saws) say: "Actions are (judged) by motives (niyyah), so each man… - -**#10** — nasai 4484 · score: 0.8169 -> It was narrated from Ibn 'Umar that: a man told the Messenger of Allah that he was always being cheated. The Messenger of Allah said to him: "When you make a deal, say: There is no intention of… - - ---- - -## Query: "ramadan" - -### openai-small-en - -**#1** — mishkat 1962 · score: 0.7704 -> Abu Huraira reported God’s messenger as saying, “Ramadan, a blessed month, has come to you during which God has made it obligatory for you to fast. In it the gates of heaven are opened, the gates of… - -**#2** — muslim 1081 a · score: 0.7665 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal)… - -**#3** — muslim 1079 c · score: 0.7643 ->

This hadith is reported by Abu Huraira (with a slight alteration of words) that the Messenger of Allah (may peace be upon him) said:" When (the month of) Ramadan begins." - -**#4** — riyadussalihin 1194 · score: 0.7628 -> 'Aishah (May Allah be pleased with her) reported: The Messenger of Allah (PBUH) used to strive more in worship during Ramadan than he strove in any other time of the year; and he would devote himself… - -**#5** — muslim 1163 a · score: 0.7614 ->

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent… - -**#6** — muslim 1145 b · score: 0.7592 ->

Salama b. Akwa' reported: We, during the lifetime of the Messenger of Allah (may peace be upon him), in one month of Ramadan (observed fast according to our liking). He who wished to fast lasted… - -**#7** — muslim 1080 b · score: 0.7579 ->

Ibn Umar reported that Allah's Messenger (may peace be upon him) made a mention of Ramadan and he with the gesture of his hand said: The month is thus and thus. (He then withdrew his thumb at the… - -**#8** — muslim 1080 e · score: 0.7564 ->

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have… - -**#9** — abudawud 2429 · score: 0.7543 -> Narrated Abu Hurairah: The Messenger of Allah (saws) as saying: The most excellent fast after Ramadan is Allah's month al-Muharram, and the most excellent prayer after the prescribed prayer is the… - -**#10** — ibnmajah 3925 · score: 0.7539 -> It was narrated from Talhah bin ‘Ubaidullah that two men from Bali came to the Messenger of Allah (saw). They had become Muslim together, but one of them used to strive harder than the other. The one… - - -### nomic - -**#1** — muslim 1157 a · score: 0.8212 ->

Ibn Abbas (Allah be pleased with both of them) reported: The Messenger of Allah (may peace be upon him) did not fast throughout any month except during ramadan. And when he observed fast (he… - -**#2** — bulugh 163 · score: 0.819 -> Narrated Abu Sa'id al-Khudri (RA): I heard Allah's Messenger (SAW) saying: "No Salat (prayer) is to be offered after the morning prayer until the sun rises, or after the afternoon prayer until the… - -**#3** — abudawud 1611 · score: 0.8174 -> Ibn ‘Umar said : The Messenger of Allah(may peace be upon him) prescribed as zakat payable by slave and freeman, male and female, among the muslims on closing the fast of Ramadan one sa of dried… - -**#4** — ahmad 163 · score: 0.813 -> Abu ‘Ubaid said: I was present at Eid with ‘Umar, and he started with the prayer before the khutbah. He said: The Messenger of Allah ﷺ forbade fasting on these two days. The day of al-Fitr is the day… - -**#5** — malik 629 · score: 0.8107 ->

Yahya related to me from Malik from Nafi from Abdullah ibn Umar that the Messenger of Allah, may Allah bless him and grant him peace, made the zakat of breaking the fast at the end of Ramadan… - -**#6** — abudawud 1357 · score: 0.8107 -> Narrated Ibn 'Abbas: I spent a night in the house of my maternal aunt Maimunah, daughter of al-Harith. The Prophet (saws) offered the night prayer. He then came and prayed four rak'ahs and slept. He… - -**#7** — mishkat 2048 · score: 0.8106 -> Abu Sa'id al-Khudri said God’s messenger forbade fasting on the day of breaking the fast of Ramadan and on the day of sacrifice. (Bukhari and Muslim.) - -**#8** — muslim 979 a · score: 0.81 ->

Abu Sa'id al-Khudri reported Allah's Messenger (way peace be upon him) as saying: No sadaqa (zakat) is payable on less than five wasqs of (dates or grains), on less than five camel-heads and on… - -**#9** — malik · score: 0.8099 ->

Malik said, "There is no harm in someone who is in itikaf entering into a marriage contract as long as there is no physical relationship. A woman in itikaf may also be betrothed as long as there… - -**#10** — muslim 1167 a · score: 0.8096 ->

Abu Sa'id al-Khudri (Allah be pleased with him) reported that Allah's Messenger (may peace be upon him) spent in devotion (in i'tikaf) the middle ten nights of the month of Ramadan, and when… - - -### mxbai - -**#1** — muslim 1080 e · score: 0.8869 ->

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have… - -**#2** — muslim 1080 f · score: 0.882 ->

'Abdullah b. 'Umar (Allah be pleased with both of them) reported Allah's Messenger (may peace be upon him) as saying: The month (of Ramadan) may consist of twenty nine days; so when you see the… - -**#3** — muslim 1163 a · score: 0.8815 ->

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent… - -**#4** — bukhari 1900 · score: 0.8801 ->

Narrated Ibn `Umar:

I heard Allah's Apostle saying, "When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting;… - -**#5** — mishkat 2047 · score: 0.8797 -> Abu Ayyub al-Ansari told that God’s messenger said, “If anyone fasts during Ramadan, then follows it with six days in Shawwal, it will be like a perpetual fast.” Muslim transmitted it. - -**#6** — mishkat 1817 · score: 0.8785 -> Ibn 'Abbas said, “At the end of Ramadan bring forth the sadaqa relating to your fast. God's messenger prescribed this sadaqa as a sa' of dried dates or barley, or half a sa' of wheat… - -**#7** — riyadussalihin 1167 · score: 0.8784 -> Abu Hurairah (May Allah be pleased with him) reported: The Messenger of Allah (PBUH) said, "The best month for observing Saum (fasting) after Ramadan is Muharram, and the best Salat after the… - -**#8** — muslim 1116 a · score: 0.8783 ->

Abu Sa'id al-Khudri (Allah be pleased with him) reported: We went out on an expedition with Allah's Messenger (may peace be upon him) on the 16th of Ramadan. Some of us fasted and some of us… - -**#9** — muslim 1081 a · score: 0.878 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal)… - -**#10** — riyadussalihin 1225 · score: 0.876 -> Ibn 'Abbas (May Allah be pleased with them) reported: The Messenger of Allah (PBUH) said, "Do not observe Saum (fasting) before the advent of Ramadan. Observe Saum at sighting of the crescent of… - - ---- - -## Query: "jesus" - -### openai-small-en - -**#1** — bukhari 3444 · score: 0.6949 ->

Narrated Abu Huraira:

The Prophet said, "Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus… - -**#2** — muslim 2937 a · score: 0.6918 ->

An-Nawwas b. Sam`an reported that Allah's Messenger (may peace be upon him) made a mention of the Dajjal one day in the morning. He (saws) sometimes described him to be insignificant and… - -**#3** — mishkat 5716 · score: 0.6859 -> Abu Huraira reported God's messenger as saying, "On the night when I was taken up to heaven, I met Moses who may be described as a lanky man with somewhat curly hair who resembled one of the men of… - -**#4** — bukhari 3448 · score: 0.6841 ->

Narrated Abu Huraira:

Allah's Apostle said, "By Him in Whose Hands my soul is, surely (Jesus,) the son of Mary will soon descend amongst you and will judge mankind justly (as a Just Ruler); he… - -**#5** — muslim 2897 · score: 0.6785 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The Last Hour would not come until the Romans would land at al-A'maq or in Dabiq. An army consisting of the best… - -**#6** — muslim 2365 c · score: 0.6774 ->

Abu Huraira reported many ahadith from Allah's Messenger (may peace be upon him) and one is that Allah's Messenger (may peace be upon him) said: I am most close to Jesus, son of Mary, among the… - -**#7** — muslim 2365 b · score: 0.6765 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to… - -**#8** — abudawud 4324 · score: 0.6757 ->

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of… - -**#9** — mishkat 2288 · score: 0.6753 -> Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate,… - -**#10** — mishkat 5608 · score: 0.6739 -> Hudhaifa and Abu Huraira reported God's messenger as saying, "God who is blessed and exalted will collect mankind and the believers will stand till paradise is brought near them. They will then go to… - - -### nomic - -**#1** — mishkat 1214 · score: 0.7989 -> ‘A’isha told how God’s Messenger said when he awoke during the night, “There is no god but Thee. Glory be to Thee, O God, and praise be to Thee. I ask for Thy forgiveness of my sin, and I ask for Thy… - -**#2** — bukhari 1209 · score: 0.7957 ->

Narrated Aisha:

I used to stretch my legs towards the Qibla of the Prophet while he was praying; whenever he prostrated he touched me, and I would withdraw my legs, and whenever he stood up, I… - -**#3** — bukhari 3392 · score: 0.7952 ->

Narrated `Aisha:

The Prophet returned to Khadija while his heart was beating rapidly. She took him to Waraqa bin Naufal who was a Christian convert and used to read the Gospels in Arabic… - -**#4** — muslim 196 c · score: 0.792 ->

Anas b. Malik said: The Apostle of Allah (may peace be upon him) said: I would be the first intercessor in the Paradise and no apostle amongst the apostles has been testified (by such a large… - -**#5** — muslim 201 · score: 0.7917 ->

Abu Zubair heard Jabir b. Abdullah reporting it from the Apostle of Allah (may peace be upon him): For every apostle was a prayer with which he prayed (to his Lord) for his Ummah, but I have… - -**#6** — bukhari 516 · score: 0.7907 ->

Narrated Abu Qatada Al-Ansari:

Allah's Apostle was praying and he was carrying Umama the daughters of Zainab, the daughter of Allah's Apostle and she was the daughter of 'As bin Rabi`a bin… - -**#7** — bulugh 226 · score: 0.7903 -> Narrated Abu Qatada (RA): Allah's Messenger (SAW) was (one time) offering prayer while he was carrying Umama, daughter of Zainab, when he prostrated he put her down and when he stood up he lifted her… - -**#8** — mishkat 936 · score: 0.7895 -> Ruwaih' reported God’s Messenger as saying, “If anyone invokes a blessing on Muhammad saying, ‘O God, cause him to occupy the place near Thee on the day of resurrection’, he will be guaranteed my… - -**#9** — mishkat 5572 · score: 0.7893 -> Anas reported the Prophet as saying, "The believers will be restrained on the day of resurrection so that they will be concerned about that and express a desire to find an intercessor with their Lord… - -**#10** — muslim 200 a · score: 0.789 ->

Anas b. Malik reported: Verily the Apostle of Allah (may peace be upon him) said: There is for every apostle a prayer with which he prays (to Allah) for his Ummah. I have reserved my prayer for… - - -### mxbai - -**#1** — abudawud 4324 · score: 0.826 ->

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of… - -**#2** — mishkat 2288 · score: 0.8246 -> Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate,… - -**#3** — bukhari 3438 · score: 0.8234 ->

Narrated Ibn `Abbas:

The Prophet said, "I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of… - -**#4** — muslim 194 a · score: 0.8198 ->

Abu Huraira reported: Meat was one day brought to the Messenger of Allah (may peace be upon him) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of… - -**#5** — mishkat 1897 · score: 0.8186 -> ‘A’isha reported God’s messenger as saying, “Everyone of the children of Adam has been created with three hundred and sixty joints, so he who declares God’s greatness, praises God, declares that He… - -**#6** — abudawud 4641 · score: 0.8183 -> ‘Awf said: I heard al-Hajjaj addressing the people say: The similitude of ‘Uthman with Allah is like the similitude of Jesus son of Mary. He then recited the following verse and explained it:… - -**#7** — muslim 2368 · score: 0.8175 ->

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person… - -**#8** — bukhari 7510 · score: 0.8169 ->

Narrated Ma`bad bin Hilal Al-`Anzi:

We, i.e., some people from Basra gathered and went to Anas bin Malik, and we went in company with Thabit Al-Bunnani so that he might ask him about the… - -**#9** — bukhari 3441 · score: 0.816 ->

Narrated Salim from his father:

No, By Allah, the Prophet did not tell that Jesus was of red complexion but said, "While I was asleep circumambulating the Ka`ba (in my dream), suddenly I saw a… - -**#10** — bukhari 3443 · score: 0.8156 ->

Narrated Abu Huraira:

Allah's Apostle said, "Both in this world and in the Hereafter, I am the nearest of all the people to Jesus, the son of Mary. The prophets are paternal brothers; their… - - ---- - -## Query: "sex" - -### openai-small-en - -**#1** — bukhari 1545 · score: 0.6616 ->

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He… - -**#2** — malik 1824 · score: 0.6498 ->

Malik related to me from Zayd ibn Aslam from Ata ibn Yasar that the Messenger of Allah, may Allah bless him and grant him peace, said, "Whomever Allah protects from the evil of two things will… - -**#3** — bulugh 1012 · score: 0.6451 -> Sa'id (bin Mansur) also reported something similar from 'Ali (RA) and added: "And (if) she has something like a horn (Qarn) (coming out of her vagina), her husband then has the right to divorce her… - -**#4** — mishkat 3190 · score: 0.6449 -> Abu Sa'id al-Khudri reported God's Messenger as saying, “The most serious breach of trust in God’s sight on the day of resurrection ...” A version has, “Among those who will have the worst position… - -**#5** — mishkat 3341 · score: 0.6443 -> Ibn ‘Umar said that when a girl with whom intercourse might be had was given as a present, or sold, or set free, it was necessary to wait till she had had a menstrual period, but that this was… - -**#6** — muslim 1435 a · score: 0.6418 ->

Jabir (Allah be pleased with him) declared that the Jews used to say: When a man has intercourse with his wife through the vagina but being on her back. the child will have squint, so the verse… - -**#7** — mishkat 86 · score: 0.6409 -> Abu Huraira reported God's messenger as saying, “God has decreed for man his portion of fornication which he will inevitably commit. The fornication of the eye consists in looking, and of the tongue… - -**#8** — malik 1135 · score: 0.6395 ->

Yahya related to me from Malik from Ibn Shihab, and he had heard from al-Qasim ibn Muhammad that they said, "When a free man marries a slave-girl and consummates the marriage, she makes him… - -**#9** — muslim 1438 a · score: 0.6379 ->

Abu Sirma said to Abu Sa'id al Khadri (Allah he pleased with him): 0 Abu Sa'id, did you hear Allah's Messenger (may peace be upon him) mentioning al-'azl? He said: Yes, and added: We went out… - -**#10** — bukhari 6818 · score: 0.6361 ->

Narrated Abu Huraira:

The Prophet said, "The boy is for (the owner of) the bed and the stone is for the person who commits illegal sexual intercourse.' - - -### nomic - -**#1** — mishkat 3143 · score: 0.8485 -> ‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful." (Bukhari and Muslim.) - -**#2** — muslim 348 a · score: 0.8351 ->

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar… - -**#3** — bulugh 995 · score: 0.8327 -> Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, "The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)." [Agreed… - -**#4** — bulugh 119 · score: 0.8325 -> Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash… - -**#5** — bulugh 110 · score: 0.8277 -> Narrated Abu Huraira (rad): Allah’s Messenger (saw) said that, “If one of you sits between her legs (of a woman) and penetrates her, Ghusl (bath) is obligatory.” [Agreed upon]. - -**#6** — muslim 1418 · score: 0.8261 ->

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse… - -**#7** — abudawud 265 · score: 0.826 -> Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given) - -**#8** — muslim 346 b · score: 0.8254 ->

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his… - -**#9** — bulugh 117 · score: 0.8218 -> Narrated Abu Sa’id Al-Khudri (rad): Allah’s Messenger (saw) said, “If one of you has sexual intercourse with his wife and wishes to repeat he should perform ablution between them” [Reported by… - -**#10** — muslim 321 c · score: 0.8205 ->

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. - - -### mxbai - -**#1** — bulugh 117 · score: 0.8391 -> A-Hakim added: “Ablution makes one active for repeating (the sexual act).” - -**#2** — muslim 321 c · score: 0.8145 ->

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. - -**#3** — muslim 348 a · score: 0.8112 ->

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar… - -**#4** — bukhari 1545 · score: 0.8087 ->

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He… - -**#5** — mishkat 3143 · score: 0.8082 -> ‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful." (Bukhari and Muslim.) - -**#6** — abudawud 265 · score: 0.8081 -> Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given) - -**#7** — mishkat 330 · score: 0.8072 -> Ibn ‘Umar used to say, “A man’s kiss to his wife and his touching her with his hand are connected with sexual intercourse, and anyone who kisses his wife or touches her with his hand must perform… - -**#8** — muslim 1418 · score: 0.8048 ->

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse… - -**#9** — bukhari 293 · score: 0.804 ->

Narrated Ubai bin Ka`b:

I asked Allah's Apostle about a man who engages in sexual intercourse with his wife but does not discharge. He replied, "He should wash the parts which comes in contact… - -**#10** — muslim 346 b · score: 0.8031 ->

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his… - - ---- - -## Query: "marriage" - -### openai-small-en - -**#1** — ibnmajah 1847 · score: 0.7042 -> It was narrated from Ibn Abbas that: the Messenger of Allah said: “There is nothing like marriage, for two who love one another.” - -**#2** — abudawud 2272 · score: 0.7 -> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative… - -**#3** — bukhari 5127 · score: 0.6987 -> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the… - -**#4** — malik · score: 0.6956 ->

Yahya said that he heard Malik say, "The way of doing things in our community about which there is no dispute, is that if a man gives sadaqa to his son - sadaqa which the son takes possession of… - -**#5** — abudawud 2130 · score: 0.689 ->

Narrated AbuHurayrah:

When the Prophet (saws) congratulated a man on his marriage, he said: May Allah bless for you, and may He bless on you, and combine both of you in good (works).

- -**#6** — tirmidhi 1101 · score: 0.6872 -> Abu Musa narrated that : the Messenger of Allah said: "There is no marriage except with a Wali." - -**#7** — ibnmajah 1846 · score: 0.687 -> It was narrated from Aishah that: the Messenger of Allah said: “Marriage is part of my sunnah, and whoever does not follow my sunnah has nothing to do with me. Get married, for I will boast of your… - -**#8** — mishkat 3093 · score: 0.6862 -> Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted. - -**#9** — muslim 1405 d · score: 0.6861 ->

Jabir b. 'Abdullah reported: We contracted temporary marriage giving a handful of (tales or flour as a dower during the lifetime of Allah's Messenger (may peace be upon him) and durnig the time… - -**#10** — bukhari 5150 · score: 0.6859 ->

Narrated Sahl bin Sa`d:

The Prophet said to a man, "Marry, even with (a Mahr equal to) an iron ring." - - -### nomic - -**#1** — bulugh 993 · score: 0.8659 -> Narrated Ibn 'Abbas (RA): The Prophet (SAW) married Maimunah (RA) when he was in the state of Ihram (during pilgrimage). [Agreed upon]. - -**#2** — mishkat 2682 · score: 0.8642 -> Ibn ‘Abbas said that the Prophet married Maimuna when he was on pilgrimage. Bukhari and Muslim. - -**#3** — bukhari 1837 · score: 0.8626 ->

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held). - -**#4** — bukhari 5114 · score: 0.8606 ->

Narrated Ibn `Abbas:

The Prophet got married while he was in the state of Ihram. - -**#5** — mishkat 3093 · score: 0.8564 -> Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted. - -**#6** — abudawud 2272 · score: 0.8557 -> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative… - -**#7** — bukhari 5127 · score: 0.8551 -> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the… - -**#8** — bukhari 5261 · score: 0.8543 ->

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could… - -**#9** — ibnmajah 1991 · score: 0.8543 -> It was narrated from 'Abdul-Malik bin Harith bin Hisham, from his father, that: the Prophet married Umm Salamah in Shawwal, and consummated the marriage with her in Shawwal. - -**#10** — abudawud 2047 · score: 0.8542 -> Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper… - - -### mxbai - -**#1** — forty 21 · score: 0.8446 -> A man will be with whom he loves. - -**#2** — abudawud 2047 · score: 0.8333 -> Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper… - -**#3** — bulugh 967 · score: 0.8322 -> Narrated 'Abdullah bin Mas'ud (RA): Allah's Messenger (SAW) said to us, "O young men, those of you who can support a wife should marry, for it (marriage) controls the gaze and preserves one from… - -**#4** — bukhari 2721 · score: 0.831 ->

Narrated `Uqba bin Amir:

Allah's Apostle said, "From among all the conditions which you have to fulfill, the conditions which make it legal for you to have sexual relations (i.e. the marriage… - -**#5** — bulugh 1127 · score: 0.829 -> Narrated 'Aishah (RA): Allah's Messenger (SAW) said, "One or two sucks do not make (marriage) unlawful." [Muslim reported it]. - -**#6** — bukhari 5090 · score: 0.8282 ->

Narrated Abu Huraira:

The Prophet said, "A woman is married for four things, i.e., her wealth, her family status, her beauty and her religion. So you should marry the religious woman… - -**#7** — bulugh 995 · score: 0.8278 -> Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, "The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)." [Agreed… - -**#8** — bukhari 5119 · score: 0.8278 -> Salama bin Al-Akwa` said: Allah's Apostle's said, "If a man and a woman agree (to marry temporarily), their marriage should last for three nights, and if they like to continue, they can do so; and if… - -**#9** — tirmidhi 1084 · score: 0.8271 -> Abu Hurairah narrated that: The Messenger of Allah said: "When someone whose religion and character you are pleased with proposes to (someone under the care) of one of you, then marry to him. If you… - -**#10** — bulugh 1034 · score: 0.827 -> It is a portion of the long Hadith preceding in the beginning of the Book of Marriage. - - ---- - -## Query: "masturbation" - -### openai-small-en - -**#1** — muslim 348 a · score: 0.678 ->

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar… - -**#2** — ibnmajah 480 · score: 0.6764 -> It was narrated that Jabir bin 'Abdullah said: "The Messenger of Allah said: 'If anyone of you touches his penis, then he has to perform ablution.'" - -**#3** — abudawud 206 · score: 0.6756 -> ‘Ali said: My prostatic fluid flowed excessively. I used to take a bath until my back cracked (because of frequent washing). I mentioned it to the prophet (May peace be upon him), or the fact was… - -**#4** — muslim 346 b · score: 0.6744 ->

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his… - -**#5** — bulugh 72 · score: 0.6734 -> Narrated Talq bin ‘Ali (rad): A man said: “I touched my penis” or he said, “Does a man who touch his penis during the prayer should perform Wudu (ablution)?” The Prophet (saw) replied, “No, it is… - -**#6** — abudawud 211 · score: 0.6726 ->

Narrated Abdullah ibn Sa'd al-Ansari:

I asked the Messenger of Allah (saws) as to what makes it necessary to take a bath and about the (prostatic) fluid that flows after taking a bath.… - -**#7** — ibnmajah 479 · score: 0.6693 -> It was narrated that Busrah bint Safwan said: "The Messenger of Allah said: 'If anyone of you touches his penis, let him perform ablution.'" - -**#8** — tirmidhi 82 · score: 0.669 -> Busrah bint Safwan narrated that : the Prophet said: "Whoever touches his penis, then he is not to pray until he performs Wudu" - -**#9** — muslim 303 c · score: 0.6682 ->

Ibn 'Abbas reported it from 'Ali: We sent al-Miqdad b. al-Aswad to the Messenger of Allah (may peace be upon him) to ask him what must be done about prostatic fluid which flows from (the private… - -**#10** — bukhari 260 · score: 0.6676 ->

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and… - - -### nomic - -**#1** — bulugh 119 · score: 0.8129 -> Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash… - -**#2** — bukhari 464 · score: 0.8127 ->

Narrated Um Salama:

I complained to Allah's Apostle that I was sick. He told me to perform the Tawaf behind the people while riding. So I did so and Allah's Apostle was praying beside the… - -**#3** — ahmad 847 · score: 0.8107 -> It was narrated that ‘Ali (رضي الله عنه) said: I was a man who emitted a great deal of madhi. I asked the Prophet (ﷺ) and he said: “If you ejaculate, then do ghusl for janabah, and if you do not… - -**#4** — bulugh 111 · score: 0.8105 -> Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon] - -**#5** — bukhari 260 · score: 0.8079 ->

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and… - -**#6** — muslim 316 d · score: 0.807 ->

'Urwa has narrated it on the authority of 'A'isha that when Allah's Messenger (may peace be upon him) took a bath because of sexual intercourse, he first washed his hands before dipping one of… - -**#7** — mishkat 340 · score: 0.8065 -> Abu Qatada reported God’s messenger as saying, "When one of you drinks he must not breathe into the vessel, and when he goes to relieve himself he must not touch his penis with his right hand, or… - -**#8** — bukhari 258 · score: 0.8061 ->

Narrated `Aisha:

Whenever the Prophet took the bath of Janaba (sexual relation or wet dream) he asked for the Hilab or some other scent. He used to take it in his hand, rub it first over the… - -**#9** — nasai 387 · score: 0.8043 -> It was narrated that 'Aishah said: "The Prophet (PBUH) would put his head out while he was performing I'tikaf and I would wash it, while I was menstruating." - -**#10** — muslim 346 b · score: 0.804 ->

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his… - - -### mxbai - -**#1** — bulugh 117 · score: 0.8507 -> A-Hakim added: “Ablution makes one active for repeating (the sexual act).” - -**#2** — bulugh 64 · score: 0.82 -> Narrated ‘Umar (rad), in a Mawquf (untraceable) and Anas in a Marfu (traceable) Hadith: “If one of you performs ablution and puts on his two leather socks, let him perform Mash (wipe) over them and… - -**#3** — bulugh 110 · score: 0.8168 -> And Muslim added: “Even if he does not ejaculate”. - -**#4** — bulugh 73 · score: 0.8162 -> Narrated Busra bint Safwan (rad): Allah’s Messenger (saw) said, “He who touches his penis should perform ablution”. [Reported by Al-Khamsa, and At-Tirmidhi and Ibn Hibban graded it Sahih (sound). - -**#5** — bulugh 28 · score: 0.8143 -> In yet another version of Muslim: Verily! I (‘Aisha) used to scrape it (the semen) off his garment with my nails while it was dry. - -**#6** — mishkat 287 · score: 0.8135 -> ‘Uthman performed ablution, pouring water over his hands three times, then rinsing his mouth and snuffing up water, then washing his face three times, then washing his right arm up to the elbow three… - -**#7** — bulugh 111 · score: 0.8128 -> Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon] - -**#8** — bulugh 109 · score: 0.812 -> Narrated Abu Sa’id Al-Khudri (rad): Allah’s Mesenger (saw) said: “The water (of the ghusl) is due to the water (of sexual emission)”. [Reported by Muslim] - -**#9** — tirmidhi 3415 · score: 0.8118 -> Maslamah bin `Amr said: “`Umair bin Hani used to perform a thousand prostrations every day and recite a hundred thousand Tasbīḥs every day.” - -**#10** — shamail 32 · score: 0.8108 -> A’isha said: “I used to comb the hair of Allah’s Messenger (Allah bless him and give him peace) while I was menstruating.” - - ---- - -## Query: "racism" - -### openai-small-en - -**#1** — ahmad 614 · score: 0.6237 -> It was narrated that `Ali (رضي الله عنه)said: The Messenger of Allah (ﷺ) said: “No one hates the Arabs except a hypocrite.” - -**#2** — ibnmajah 69 · score: 0.6207 -> It was narrated that 'Abdullah said: "The Messenger of Allah (SAW) said: 'Verbally abusing a Muslim is immorality and fighting him is Kufr (disbelief).'" - -**#3** — malik 1831 · score: 0.6196 ->

Malik related to me that he heard that Abdullah ibn Masud used to say, "The slave continues to lie and a black spot grows in his heart until all his heart becomes black. Then he is written, in… - -**#4** — abudawud 4877 · score: 0.6188 ->

Narrated AbuHurayrah:

The Prophet (saws) said: The gravest sin is going to lengths in talking unjustly against a Muslim's honour, and it is a major sin to abuse twice for abusing once.… - -**#5** — malik 1600 · score: 0.6177 ->

Yahya said that Malik said, "The way of doing things in our community about which there is no dispute is that women do not swear in the swearing for the intentional act. If the murdered man only… - -**#6** — ahmad 467 · score: 0.6177 -> It was narrated that Rabah said: My masters married me to a Roman slave girl of theirs and she bore me a black boy. Then she fell in love with a Roman slave whose name was Yuhannas, and he spoke to… - -**#7** — malik 1521 · score: 0.6169 ->

Malik related to me from Hisham ibn Urwa that his father said that there was only one hadd against a man who slandered a group of people.

Malik said, "If they are on separate occasions… - -**#8** — riyadussalihin 338 · score: 0.6141 -> 'Abdullah bin 'Amr bin Al-'as (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said, "It is one of the gravest sins to abuse one's parents." It was asked (by the people): "O… - -**#9** — mishkat 3311 · score: 0.614 -> He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he… - -**#10** — nasai 4105 · score: 0.6118 -> It was narrated that 'Abdullah said: "Defaming a Muslim is evildoing and fighting him is Kufr." (Sahih Mawquf) - - -### nomic - -**#1** — bukhari 6847 · score: 0.7889 ->

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, "My wife has delivered a black child." The Prophet said to him, "Have you camels?" He replied, "Yes." The Prophet said, "What… - -**#2** — bukhari 5305 · score: 0.7871 ->

Narrated Abu Huraira:

A man came to the Prophet and said, "O Allah's Apostle! A black child has been born for me." The Prophet asked him, "Have you got camels?" The man said, "Yes." The… - -**#3** — bukhari 7314 · score: 0.7846 ->

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, "My wife has delivered a black boy, and I suspect that he is not my child." Allah's Apostle said to him, "Have you got… - -**#4** — nasai 1594 · score: 0.7836 -> It was narrated that 'Aishah said: "The black people came and played in front of the Prophet (SAW) on the day of 'Eid. He called me and I watched them from over his shoulder, and I continued to watch… - -**#5** — abudawud 2253 · score: 0.7781 -> ‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her… - -**#6** — ibnmajah 2003 · score: 0.7776 -> It was narrated from Ibn 'Umar that: a man frorn the desert people came to the Prophet and said: "O Messenger of Allah, my wife has given birth on my bed to a black boy, and there are no black people… - -**#7** — abudawud 2260 · score: 0.7772 -> Abu Hurairah said A man from Banu Fazarah came to the Prophet (saws) and said “My wife has given birth to a black son”. He said “Have you any camels?” He said “They are red”. He asked “Is there a… - -**#8** — bulugh 1102 · score: 0.7765 -> Narrated Abu Hurairah (RA): A man said, "O Allah's Messenger, my wife has given birth to a black son." He asked, "Have you any camels?" He replied, "Yes." He asked, "What is their color?" He replied,… - -**#9** — nasai 3479 · score: 0.7759 -> It was narrated that Abu Hurairah said: "A man from Banu Fazarah came to the Prophet and said: 'My wife has given birth to a black boy' -and he wanted to disown him. He said: 'Do you have camels?' He… - -**#10** — mishkat 3311 · score: 0.7753 -> He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he… - - -### mxbai - -**#1** — mishkat 4327 · score: 0.7839 -> ‘Abdallah b. ‘Amr b. al-‘As told that when God's messenger saw him wearing two garments dyed with saffron he said, “These are the garments worn by infidels ; do not wear them.” A version says that… - -**#2** — abudawud 2253 · score: 0.7826 -> ‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her… - -**#3** — bulugh 1518 · score: 0.7821 -> 'A’ishah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “The most despicable amongst people in the sight of Allah is the ruthless argumentative (person).” Related by Muslim. - -**#4** — bukhari 30 · score: 0.7805 ->

Narrated Al-Ma'rur:

At Ar-Rabadha I met Abu Dhar who was wearing a cloak, and his slave, too, was wearing a similar one. I asked about the reason for it. He replied, "I abused a person by… - -**#5** — mishkat 3688 · score: 0.7792 -> ‘A’idh b. ‘Amr told that he heard God’s Messenger say, “The worst shepherds are those who are ungentle.” Muslim transmitted it. - -**#6** — bukhari 5940 · score: 0.7787 ->

Narrated Ibn `Umar:

The Prophet has cursed the lady who lengthens her hair artificially and the one who gets her hair lengthened, and also the lady who tattoos (herself or others) and the one… - -**#7** — mishkat 1874 · score: 0.778 -> Abu Huraira reported God’s messenger as saying, “The worst things in a man are anxious niggardliness and unrestrained cowardice.” Abd Dawud transmitted it. - -**#8** — bulugh 1201 · score: 0.7779 -> Sahl bin Abi Khaithamah (RAA) narrated on the authority of some honored men from his people that 'Abdullah bin Sahl and Muhaiysah bin Mas'ud, went out to Khaibar because of a hardship they were… - -**#9** — ibnmajah 1859 · score: 0.7776 -> It was narrated from Abdullah bin Amr that: the Prophet said: “Do not marry women for their beauty for it may lead to their doom. Do not marry them for their wealth, for it may lead them to fall into… - -**#10** — bulugh 1500 · score: 0.7772 -> Abu Hurairah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “When two men insult one another, what they say is mainly the fault of the one who began it, so long as the one who is… - - ---- - -## Query: "polygamy" - -### openai-small-en - -**#1** — bukhari 5127 · score: 0.7243 -> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the… - -**#2** — muslim 1451 a · score: 0.7217 ->

Umm al-Fadl reported: A bedouin came to Allah's Apostle (may peace be upon him) when he was in my house and said: Allah's Apostle, I have had a wife and I married another besides her, and my… - -**#3** — bukhari 5068 · score: 0.7182 ->

Narrated Anas:

The Prophet used to go round (have sexual relations with) all his wives in one night, and he had nine wives. - -**#4** — malik 1238 · score: 0.7156 ->

Yahya related to me from Malik that Ibn Shihab said, "I have heard that the Messenger of Allah, may Allah bless him and grant him peace, said to a man from Thaqif who had ten wives when he became… - -**#5** — abudawud 2243 · score: 0.7142 ->

Al-Dahhak b. Firuz reported on the authority of his father: I said: Messenger of Allah, I have embraced Islam and two sisters are my wives. He said: Divorce any one of them you wish.

- -**#6** — muslim 1408 b · score: 0.7136 ->

Abu Huraira (Allah be pleased with him) reported: that Allah's Messenger (may peace be upon him) forbade combining of four women in marriage: a woman with her father's sister, and a woman with… - -**#7** — ibnmajah 1953 · score: 0.7113 -> It was narrated that Ibn 'Umar said: “Ghailan bin Salamah became Muslim and he had ten wives. The Prophet said to him: 'Choose four of them.' ” - -**#8** — mishkat 3091 · score: 0.7109 -> Ma'qil b. Yasar reported God’s Messenger as saying, “Marry women who are loving and very prolific, for I shall outnumber the peoples by you." Abu Dawud and Nasa’i transmitted it. - -**#9** — bukhari 5215 · score: 0.7104 ->

Narrated Anas bin Malik:

The Prophet used to pass by (have sexual relation with) all his wives in one night, and at that time he had nine wives. - -**#10** — malik 1149 · score: 0.7087 ->

Yahya related to me from Malik from Rabia ibn Abi Abd ar-Rahman that al-Qasim ibn Muhammad and Urwa ibn az-Zubayr said that a man who had four wives and then divorced one of them irrevocably,… - - -### nomic - -**#1** — mishkat 3170 · score: 0.8259 -> Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s… - -**#2** — muslim 1456 a · score: 0.8245 ->

Abu Sa'id al-Khudri (Allah her pleased with him) reported that at the Battle of Hanain Allah's Messenger (may peace be upon him) sent an army to Autas and encountered the enemy and fought with… - -**#3** — mishkat 2554 · score: 0.8172 -> Ibn ‘Abbas said that the polytheists used to say, “Labbaik, Thou hast no partner," whereupon God’s messenger would say, “Woe to you ! Enough, enough; [do not add] ‘except a partner who is… - -**#4** — bukhari 5127 · score: 0.8167 -> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the… - -**#5** — abudawud 2272 · score: 0.8164 -> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative… - -**#6** — muslim 122 · score: 0.8163 ->

It is narrated on the authority of Ibn 'Abbas that some persons amongst the polytheist had committed a large number of murders and had excessively indulged in fornication. Then they came to… - -**#7** — nasai 3415 · score: 0.8123 -> It was narrated that Ibn 'Umar said: "The Prophet was asked about a man who divorced his wife three times, then another man married her and he closed the door and drew the curtain, then divorced her… - -**#8** — mishkat 3419 · score: 0.8112 -> Ibn Umar told that he heard God’s Messenger say, “He who swears by anyone but God is a polytheist.” Tirmidhi transmitted it. - -**#9** — bulugh 1287 · score: 0.811 -> Samurah (RAA) narrated that The Messenger of Allah (P.B.U.H.) said, “Kill the mature men of the polytheists but spare their children.” Related by Abu Dawud and At-Tirmidhi graded it as Sahih. - -**#10** — bukhari 5105 · score: 0.81 -> Ibn 'Abbas further said, "Seven types of marriages are unlawful because of blood relations, and seven because of marriage relations." Then Ibn 'Abbas recited the Verse: "Forbidden for you (for… - - -### mxbai - -**#1** — abudawud 2088 · score: 0.8486 ->

Narrated Samurah:

The Prophet (saws) said: Any woman who is married by two guardians (to two different men) belongs to the first woman who is married by two guardians (to two different… - -**#2** — abudawud 2133 · score: 0.8341 ->

Narrated AbuHurayrah:

The Prophet (saws) said: When a man has two wives and he is inclined to one of them, he will come on the Day of resurrection with a side hanging down.

- -**#3** — abudawud 2067 · score: 0.8335 ->

Narrated Abdullah ibn Abbas:

The Prophet (saws) abominated the combination of paternal and maternal aunts and the combination of two maternal aunts and two paternal aunts in marriage.… - -**#4** — bulugh 1001 · score: 0.8334 -> Narrated 'Aishah (RA): A man divorced his wife by three pronouncements and another man married her and divorced her before cohabiting with her. Then, her first husband intended to remarry her and… - -**#5** — bukhari 5127 · score: 0.8334 -> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the… - -**#6** — mishkat 3170 · score: 0.8306 -> Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s… - -**#7** — bukhari 4528 · score: 0.8297 ->

Narrated Jabir:

Jews used to say: "If one has sexual intercourse with his wife from the back, then she will deliver a squint-eyed child." So this Verse was revealed:-- "Your wives are a tilth… - -**#8** — bukhari 5261 · score: 0.8295 ->

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could… - -**#9** — abudawud 2272 · score: 0.8286 -> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative… - -**#10** — bukhari 5104 · score: 0.8278 ->

Narrated `Uqba bin Al-Harith:

I married a woman and then a black lady came to us and said, "I have suckled you both (you and your wife)." So I came to the Prophet and said, "I married so-and-… - - ---- - -## Query: "pork" - -### openai-small-en - -**#1** — abudawud 3489 · score: 0.6549 ->

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

- -**#2** — bukhari 5506 · score: 0.6408 ->

Narrated Rafi` bin Khadij:

The Prophet said, "Eat what is slaughtered (with any instrument) that makes blood flow out, except what is slaughtered with a tooth or a nail.' - -**#3** — bukhari 1824 · score: 0.6392 ->

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu… - -**#4** — shamail 170 · score: 0.6351 -> 'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” - -**#5** — muslim 1938 c · score: 0.6349 ->

Bara was heard saying: We were forbidden (to eat) the flesh of the domestic asses. - -**#6** — abudawud 2796 · score: 0.6344 ->

Narrated AbuSa'id al-Khudri:

The Messenger of Allah (saws) used to sacrifice a choice, horned ram with black round the eyes, the mouth and the feet.

- -**#7** — malik 621 · score: 0.6315 ->

Yahya related to me from Malik from Zayd ibn Aslam from his father that he said to Umar ibn al-Khattab, "There is a blind she- camel behind the house,'' soUmar said, "Hand it over to a household… - -**#8** — malik · score: 0.6298 ->

Yahya related to me from Malik that the best of what he had heard about a man who is forced by necessity to eat carrion is that he ate it until he was full and then he took provision from it. If… - -**#9** — ibnmajah 3146 · score: 0.6296 -> It was narrated that Abu Sa’eed Al-Khudri said: “We bought a ram for sacrifice, then a wolf tore some flesh from its rump and ears. We asked the Prophet (saw) and he told us to offer it as a… - -**#10** — bukhari 5527 · score: 0.6295 ->

Narrated Abu Tha'alba:

Allah's Apostle prohibited the eating of donkey's meat.

Narrated Az-Zuhri:

The Prophet prohibited the eating of beasts having fangs.

- - -### nomic - -**#1** — bukhari 1495 · score: 0.795 ->

Narrated Anas:

Some meat was presented to the Prophet (p.b.u.h) and it had been given to Barira (the freed slave-girl of Aisha) in charity. He said, "This meat is a thing of charity for Barira… - -**#2** — tirmidhi 1509 · score: 0.7935 -> Narrated Ibn 'Umar: That the Prophet (saws) said: "None of you should eat from the meat of his sacrificial animal beyond three days." - -**#3** — bukhari 1824 · score: 0.7908 ->

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu… - -**#4** — shamail 169 · score: 0.7896 -> 'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he… - -**#5** — abudawud 2814 · score: 0.7892 -> Narrated Thawban: The Messenger of Allah (saws) sacrificed during a journey and then said: Thawban, mend the meat of this goat. I then kept on supplying its meat until we reached Medina. - -**#6** — bulugh 15 · score: 0.7864 -> Narrated Abu Waqid Al-Laithi: Narrated Abu Waqid Al-Laithi (rad): Allah’s Messenger (saw) said, “Whatever (portion) is cut off from an animal when it is alive is dead (meat). [Reported by Abu Da’ud… - -**#7** — adab 1276 · score: 0.7855 -> Ya'la ibn Murra reported that he heard Abu Hurayra speaking about someone who plays backgammon and bets on it, saying that he is like someone who eats pig meat and that the person who plays it… - -**#8** — shamail 166 · score: 0.7843 -> Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.” - -**#9** — ibnmajah 3216 · score: 0.783 -> It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).” - -**#10** — muslim 1975 a · score: 0.7829 ->

Thauban reported that Allah's Messenger (way peace be upon him) slaughtered his sacrificial animal and then said: Thauban, make his meat usable (for journey), and I continuously served him that… - - -### mxbai - -**#1** — shamail 170 · score: 0.7987 -> 'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” - -**#2** — ibnmajah 3216 · score: 0.7976 -> It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).” - -**#3** — shamail 169 · score: 0.7928 -> 'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he… - -**#4** — ibnmajah 3314 · score: 0.7917 -> It was narrated from ‘Abdullah bin ‘Umar that the Messenger of Allah (saw) said: “Two kinds of dead meat and two kinds of blood have been permitted to us. The two kinds of dead meat are fish and… - -**#5** — mishkat 4215 · score: 0.7913 -> ‘A’isha reported God’s messenger as saying, “Do not cut meat with a knife, for it is a foreign practice, but bite it, for that is more beneficial and wholesome.” Abu Dawud and Baihaqi, in Shu'ab… - -**#6** — shamail 166 · score: 0.7905 -> Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.” - -**#7** — abudawud 3489 · score: 0.7894 ->

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

- -**#8** — nasai 4425 · score: 0.7879 -> 'Ali bin Abi Talib Said: "The Messenger of Allah has forbidden you from eating the meat of your sacrificaial animals for more than three day." (Sahih ) - -**#9** — bukhari 1492 · score: 0.7863 ->

Narrated Ibn `Abbas:

The Prophet saw a dead sheep which had been given in charity to a freed slave-girl of Maimuna, the wife of the Prophet . The Prophet said, "Why don't you get the benefit… - -**#10** — bukhari 1824 · score: 0.7858 ->

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu… - - ---- - -## Query: "dance" - -### openai-small-en - -**#1** — malik 75 · score: 0.6113 ->

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, "I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his… - -**#2** — abudawud 4854 · score: 0.5992 ->

Narrated AbudDarda':

The Messenger of Allah (saws) would sit and we would also sit around him. If he got up intending to return, he would take off his sandals or something he was… - -**#3** — abudawud 4923 · score: 0.5977 ->

Narrated Anas ibn Malik:

When the Messenger of Allah (saws) came to Medina, the Abyssinians played for his coming out of joy; they played with spears.

- -**#4** — bukhari 1591 · score: 0.597 ->

Narrated Abu Huraira:

The Prophet;; said, "Dhus-Suwaiqa-tain (literally: One with two lean legs) from Ethiopia will demolish the Ka`ba." - -**#5** — abudawud 652 · score: 0.5956 ->

Narrated Aws ibn Thabit al-Ansari:

The Messenger of Allah (saws) said: Act differently from the Jews, for they do not pray in their sandals or their shoes.

- -**#6** — bukhari 2628 · score: 0.5948 ->

Narrated Aiman:

I went to `Aisha and she was wearing a coarse dress costing five Dirhams. `Aisha said, "Look up and see my slave-girl who refuses to wear it in the house though during the… - -**#7** — mishkat 765 · score: 0.5945 -> Shaddad b. Aus reported God’s Messenger as saying, “Act differently from the Jews, for they do not pray in their sandals or their shoes.”* * Khuff (pl. khifaf), an article of footwear… - -**#8** — ibnmajah 2939 · score: 0.594 -> It was narrated that ‘Abdullah bin ‘Abbas said: “The Prophets used to enter the Haram walking barefoot. They would circumambulate the House and complete all the rituals barefoot and walking.” - -**#9** — forty 33 · score: 0.5939 -> Actions are through intentions. - -**#10** — forty 18 · score: 0.5936 -> The felicitous person takes lessons from (the actions of) others. - - -### nomic - -**#1** — tirmidhi 40 · score: 0.7981 -> Al-Mustawrid bin Shaddad Al-Fihri said : "I saw the Prophet when he was performing Wudu doing that to the toes on his feet with his pinky." - -**#2** — tirmidhi 3734 · score: 0.7957 -> Narrated Ibn 'Abbas: "The first to perform Salat was 'Ali." - -**#3** — tirmidhi 39 · score: 0.7927 -> Ibn Abbas narrated that : Allah's Messenger said: "When performing Wudu go between the fingers of your hands and (toes of) your feet." - -**#4** — bulugh 55 · score: 0.7924 -> Narrated Anas (rad): The Prophet (saw) saw a man on whose foot appeared a portion like the size of a nail which was not touched by water. He then said, “Go back and perform your Wudu properly.”… - -**#5** — bukhari 6702 · score: 0.7916 ->

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf around the Ka`ba, tied with a rope or something else (while another person was holding him). The Prophet cut that rope off. - -**#6** — bukhari 5910 · score: 0.7911 ->

Narrated Anas: The Prophet had big feet and hands. - -**#7** — abudawud 1986 · score: 0.791 -> Narrated Ibn 'Umar: The Messenger of Allah (saws) performed 'Umrah before performing Hajj. - -**#8** — nasai 50 · score: 0.789 -> It was narrated from Abu Hurairah that the Prophet (PBUH) performed Wudu', and when he had performed Istinja' he rubbed his hand on the ground. - -**#9** — bulugh 1443 · score: 0.7884 -> In a version by Muslim, “And the one who is riding should salute the one who is walking.” - -**#10** — bulugh 45 · score: 0.7884 -> Narrated Abu Huraira (rad): Allah’s Messenger (rad) said, “When you perform ablution, begin with your right limbs”. [Reported by Al-Arba’a and garded Sahih by Ibn Khuzaima]. - - -### mxbai - -**#1** — muslim 819 a · score: 0.7711 ->

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached… - -**#2** — abudawud 727 · score: 0.7646 -> The above tradition has been transmitted by ‘Asim b. Kulaib through a different chain of narrators and to the same effect. This version has: “He then placed his right hand on the back of his left… - -**#3** — abudawud 942 · score: 0.76 -> ‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. - -**#4** — tirmidhi 3418 · score: 0.7595 -> `Abdullah bin `Abbas [may Allah be pleased with them] narrated, : that when the Messenger of Allah (saws) would stand for prayer during the middle of the night, he would say: “O Allah, to You is the… - -**#5** — malik 75 · score: 0.7591 ->

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, "I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his… - -**#6** — abudawud 958 · score: 0.7588 -> 'Abdullah bin 'Umar said: "A Sunnah of the prayer is that you should raise your right foot, and make your left foot lie (on the ground)." - -**#7** — mishkat 4416 · score: 0.7583 -> Al-Qasim b. Muhammad quoted ‘A’isha as saying the Prophet often walked wearing one sandal. A version says she walked wearing one sandal. Tirmidhi transmitted it, saying this is sounder - -**#8** — muslim 2099 d · score: 0.7576 ->

Jabir. b. Abdullah reported Allah's Messenger (may peace be upon him) as saying: Do not walk in one sandal and do not wrap the lower garment round your knees and do not eat with your left hand… - -**#9** — muslim 2097 a · score: 0.7554 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: "When one of you puts on sandals, he should first put in the right foot, and when he takes off he should take off the… - -**#10** — abudawud 859 · score: 0.7548 -> This tradition has also been transmitted through a different chain of narrators by Rifa’ah b. Rafi. This version goes: When you get up and face the qiblah, what Allah wishes you to recite. And when… - - diff --git a/test results & reports/lexical vs semantic/test1/batch_results.csv b/test results & reports/lexical vs semantic/test1/batch_results.csv deleted file mode 100644 index d59e675..0000000 --- a/test results & reports/lexical vs semantic/test1/batch_results.csv +++ /dev/null @@ -1,391 +0,0 @@ -query,model,rank,collection,hadithNumber,urn,score,text_snippet -comparing yourself to others,openai-small-en,1,adab,328,2203280,0.6896,"Ibn 'Abbas said, ""When you want to mention your companion's faults, remember your own faults.""" -comparing yourself to others,openai-small-en,2,bukhari,6490,61050,0.6896,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " -comparing yourself to others,openai-small-en,3,riyadussalihin,466,1604630,0.6851,"Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, ""Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.""
This is the wording in Sahih Muslim.

[Al-…" -comparing yourself to others,openai-small-en,4,ahmad,111,5001110,0.6775,"It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be…" -comparing yourself to others,openai-small-en,5,forty,18,1430180,0.6753,The felicitous person takes lessons from (the actions of) others. -comparing yourself to others,openai-small-en,6,muslim,2963 c,270700,0.6708,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.

In the chain narrated by Abu…" -comparing yourself to others,openai-small-en,7,adab,592,2205770,0.6669,"Abu Hurayra said, ""One of you looks at the mote in his brother's eye while forgetting the stump in his own eye.""" -comparing yourself to others,openai-small-en,8,muslim,2963 a,270680,0.6666,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a… -comparing yourself to others,openai-small-en,9,abudawud,4084,840730,0.6659,"

Narrated AbuJurayy Jabir ibn Salim al-Hujaymi:

I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say…" -comparing yourself to others,openai-small-en,10,bulugh,1471,2054330,0.664,"Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." -comparing yourself to others,nomic,1,bukhari,6490,61050,0.8354,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " -comparing yourself to others,nomic,2,bukhari,6061,56910,0.8165,"

Narrated Abu Bakra:

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, ""May Allah's Mercy be on you ! You have cut the neck of your friend."" The Prophet repeated this sentence many times and said, ""If it is indispensable for anyone of you to praise…" -comparing yourself to others,nomic,3,bulugh,1471,2054330,0.8111,"Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." -comparing yourself to others,nomic,4,bukhari,6530,61450,0.8109,"

Narrated Abu Sa`id:

The Prophet said, ""Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam…" -comparing yourself to others,nomic,5,muslim,2963 a,270680,0.8103,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a… -comparing yourself to others,nomic,6,tirmidhi,2513,678190,0.809,"Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: ""Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.""" -comparing yourself to others,nomic,7,bukhari,6162,57880,0.8085,"

Narrated Abu Bakra:

A man praised another man in front of the Prophet. The Prophet said thrice, ""Wailaka (Woe on you) ! You have cut the neck of your brother!"" The Prophet added, ""If it is indispensable for anyone of you to praise a person, then he should say, ""I think that such-and-such…" -comparing yourself to others,nomic,8,nasai,3947,1039620,0.8077,"It was narrated from Abu Musa that the Prophet said: ""The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.""" -comparing yourself to others,nomic,9,abudawud,4627,846100,0.8051,Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other. -comparing yourself to others,nomic,10,adab,1146,2211010,0.8041,"Ibn 'Abbas said, ""The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me.""" -comparing yourself to others,mxbai,1,forty,18,1430180,0.8147,The felicitous person takes lessons from (the actions of) others. -comparing yourself to others,mxbai,2,bukhari,6490,61050,0.8022,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " -comparing yourself to others,mxbai,3,forty,3,1430030,0.7969,A Muslim is a mirror of the Muslim. -comparing yourself to others,mxbai,4,muslim,2963 a,270680,0.794,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a… -comparing yourself to others,mxbai,5,ibnmajah,4336,1294390,0.792,"Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace there?” He said: “Yes. The Messenger of Allah (saw) told me that when the people of Paradise enter it,…" -comparing yourself to others,mxbai,6,adab,159,2201600,0.7897,"Abu'd-Darda' used to say to people. ""We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is…" -comparing yourself to others,mxbai,7,riyadussalihin,466,1604630,0.7864,"Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, ""Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.""
This is the wording in Sahih Muslim.

[Al-…" -comparing yourself to others,mxbai,8,muslim,2536,261590,0.7854,"

'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the…" -comparing yourself to others,mxbai,9,tirmidhi,2513,678190,0.7821,"Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: ""Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.""" -comparing yourself to others,mxbai,10,abudawud,4092,840810,0.7821,"

Narrated AbuHurayrah:

A man who was beautiful came to the Prophet (saws). He said: Messenger of Allah, I am a man who likes beauty, and I have been given some of it, as you see. And I do not like that anyone excels me (in respect of beauty). Perhaps he said: ""even to the extent of…" -aisha six years,openai-small-en,1,bukhari,5134,48040,0.7911,

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). -aisha six years,openai-small-en,2,bukhari,5133,48030,0.7872,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." -aisha six years,openai-small-en,3,muslim,1422 d,233115,0.7823,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" -aisha six years,openai-small-en,4,muslim,1422 b,233100,0.7807,"

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old." -aisha six years,openai-small-en,5,muslim,1422 c,233110,0.78,"

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old." -aisha six years,openai-small-en,6,mishkat,3129,5830500,0.7723,"‘A’isha said that the Prophet married her when she was seven, she was brought to live with him when she was nine bringing her toys with her, and he died when she was eighteen. Muslim transmitted it." -aisha six years,openai-small-en,7,muslim,334 d,206570,0.7658,"

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years,"" and the rest of the hadith is the same (as mentioned above)." -aisha six years,openai-small-en,8,nasai,3378,1033890,0.7618,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls.""" -aisha six years,openai-small-en,9,ibnmajah,1877,1261950,0.7572,"It was narrated that: Abdullah said: “The Prophet married Aishah when she was seven years old, and consummated the marriage with her when she was nine, and he passed away when she was eighteen.”" -aisha six years,openai-small-en,10,nasai,3379,1033900,0.7566,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine.""" -aisha six years,nomic,1,muslim,1422 d,233115,0.7981,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" -aisha six years,nomic,2,bukhari,3948,36900,0.7872,

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. -aisha six years,nomic,3,muslim,334 d,206570,0.7823,"

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years,"" and the rest of the hadith is the same (as mentioned above)." -aisha six years,nomic,4,muslim,1422 b,233100,0.7789,"

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old." -aisha six years,nomic,5,bulugh,228,2002780,0.7779,"It is mentioned in al-Bazzar through another chain with the addition: ""forty years.""" -aisha six years,nomic,6,abudawud,2240,822320,0.7756,"

Narrated Abdullah ibn Abbas:

The Messenger of Allah (saws) restored his daughter Zaynab to Abul'As on the basis of the previous marriage, and he did not do anything afresh.

Muhammad b. 'Amr said in his version: After six years. Al-Hasan b. 'Ali said: After two years.

" -aisha six years,nomic,7,shamail,380,1803620,0.7728,"Mu'awiya said in a sermon: ""The Prophet died (Allah bless him and give him peace) when he was sixty-three years of age, as did Abu Bakr and 'Umar, and I am now sixty-three years of age.”" -aisha six years,nomic,8,muslim,1422 c,233110,0.771,"

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old." -aisha six years,nomic,9,mishkat,5489,5961160,0.7701,"Asma' daughter of Yazid b. as-Sakan reported the Prophet a saying, ""The dajjal will remain in the earth forty years, a year being like a month, a month like a week, a week like a day, and a day like the time it takes to burn a palm-branch."" It is transmitted in Sharh as sunna." -aisha six years,nomic,10,bukhari,5133,48030,0.7689,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." -aisha six years,mxbai,1,bukhari,3894,36400,0.8627,"

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on my hair grew (again) and my mother, Um Ruman, came to me while I was playing in a swing with some of…" -aisha six years,mxbai,2,nasai,3255,1032660,0.8612,"It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine." -aisha six years,mxbai,3,bukhari,5133,48030,0.86,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." -aisha six years,mxbai,4,ibnmajah,1876,1261940,0.8522,"It was narrated that: Aishah said: “The Messenger of Allah married me when I was six years old. Then we came to Al-Madinah and settled among Banu Harith bin Khazraj. I became ill and my hair fell out, then it grew back and became abundant. My mother Umm Ruman came to me while I was on an Urjuhah…" -aisha six years,mxbai,5,bukhari,5134,48040,0.8507,

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). -aisha six years,mxbai,6,bukhari,5158,48270,0.849,

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him for nine years (i.e. till his death). -aisha six years,mxbai,7,nasai,3378,1033890,0.8465,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls.""" -aisha six years,mxbai,8,nasai,3379,1033900,0.8449,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine.""" -aisha six years,mxbai,9,muslim,1422 d,233115,0.8446,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" -aisha six years,mxbai,10,nasai,3258,1032690,0.8426,It was narrated from 'Aishah that the Messenger of Allah married her when she was nine and he died when she was eighteen years old. -music,openai-small-en,1,mishkat,3153,5830700,0.6246,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." -music,openai-small-en,2,malik,1748,418052,0.6187,"

Yahya related to me from Malik from Abu Hazim ibn Dinar that Abu Idris al-Khawlani said, ""I entered the Damascus mosque and there was a young man with a beautiful mouth and white teeth sitting with some people. When they disagreed about something, they referred it to him and proceeded from his…" -music,openai-small-en,3,abudawud,1468,814630,0.617,

Narrated Al-Bara' ibn Azib:

The Prophet (saws) said: Beautify the Qur'an with your voices.

-music,openai-small-en,4,adab,786,2207420,0.6146,"Ibn 'Abbas said about ""There are some people who trade in distracting tales"" (31:5) that it means singing and things like it." -music,openai-small-en,5,bukhari,439,4320,0.6132,"

Narrated `Aisha:

There was a black slave girl belonging to an 'Arab tribe and they manumitted her but she remained with them. The slave girl said, ""Once one of their girls (of that tribe) came out wearing a red leather scarf decorated with precious stones. It fell from her or she placed it…" -music,openai-small-en,6,muslim,2114,252790,0.6126,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. -music,openai-small-en,7,adab,1265,2212210,0.6111,"Ibn 'Abbas said that the words of Allah in Luqman (35:6), ""There are people who trade in distracting tales"" mean ""singing and things like it.""" -music,openai-small-en,8,muslim,793 d,217340,0.6071,

Buraida reported on the authority of his father that the Messenger of Allah (may peace be upon him) had said: 'Abdullah b. Qais or al-Ash'ari has been gifted with a sweet melodious voice out of the voices of the family of David. -music,openai-small-en,9,forty,19,1430190,0.6067,"Indeed, in poetry there is wisdom and in eloquence there is magic." -music,openai-small-en,10,forty,25,1400250,0.606,"

Also on the authority of Abu Dharr (may Allah be pleased with him): Some people from amongst the Companions of the Messenger of Allah (peace and blessings of Allah be upon him) said to the Prophet (peace and blessings of Allah be upon him), ""O Messenger of Allah, the affluent have made off with…" -music,nomic,1,muslim,2114,252790,0.8074,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. -music,nomic,2,mishkat,3153,5830700,0.8052,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." -music,nomic,3,tirmidhi,3728,636080,0.7873,"Narrated Anas bin Malik: ""The advent of the Prophet (SAW) was on Monday and 'Ali performed Salat on Tuesday.""" -music,nomic,4,muslim,892 a,219380,0.7864,"

'A'isha reported: Abu Bakr came to see me and I had two girls with me from among the girls of the Ansar and they were singing what the Ansar recited to one another at the Battle of Bu'ath. They were not, however, singing girls. Upon this Abu Bakr said: What I (the playing of) this wind…" -music,nomic,5,tirmidhi,3734,636130,0.7863,"Narrated Ibn 'Abbas: ""The first to perform Salat was 'Ali.""" -music,nomic,6,nasai,342,1003440,0.7859,"It was narrated that Ibn 'Umar said: ""Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH).""" -music,nomic,7,bukhari,952,9070,0.7855,"

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said protestingly, ""Musical instruments of Satan in the house of Allah's Apostle !"" It happened on the `Id…" -music,nomic,8,nasai,71,1000710,0.7854,"It was narrated that Ibn 'Umar said: ""Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH).""" -music,nomic,9,bukhari,1621,15270,0.7853,

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf of the Ka`ba tied with a string or something else. So the Prophet cut that string. -music,nomic,10,ibnmajah,1898,1262170,0.7842,"It was narrated that 'Aishah said: “Abu Bakr entered upon me, and there were two girls from the Ansar with me, singing about the Day of Bu'ath.” She said: “And they were not really singers. Abu Bakr said: 'The wind instruments of Satan in the house of the Prophet ?' That was on the day of 'Eid(Al-…" -music,mxbai,1,muslim,892 b,219390,0.7705,"

This hadith has been narrated by Hisham with the same chain of transmitters, but there the words are:"" Two girls were playing upon a tambourine.""" -music,mxbai,2,tirmidhi,2780b,630011,0.7596,Another chain with a similar narration -music,mxbai,3,tirmidhi,2783b,630051,0.7578,(Another chain) with a similar narration -music,mxbai,4,tirmidhi,1599,616910,0.7559,Another chain with similar narration. -music,mxbai,5,mishkat,2214,5780970,0.752,"Ibn ‘Abbās reported God’s messenger as saying, “Gabriel taught me to recite in one mode, and when I replied to him and kept asking him to give me more he did so till he reached seven modes."" Ibn Shihāb said he had heard that those seven modes are essentially one, not differing about what is…" -music,mxbai,6,mishkat,3153,5830700,0.7513,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." -music,mxbai,7,hisn,94,1420950,0.7495,"Subḥānallāhi wa biḥamdih: `adada khalqih, wa riḍā nafsih, wa zinata `arshih, wa midāda kalimātih. Glory is to Allah and praise is to Him, by the multitude of His creation, by His Pleasure, by the weight of His Throne, and by the extent…" -music,mxbai,8,abudawud,942,809420,0.7494,‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. -music,mxbai,9,hisn,181,1421820,0.7488,"Alhamdu lillāhi ḥamdan kathīran tayyiban mubārakan fīh, ghayra makfiyyin wa lā muwadda`in, wa lā mustaghnan `anhu Rabbanā. All praise is to Allah, praise in abundance, good and blessed. It cannot [be compensated for, nor can it] be…" -music,mxbai,10,bukhari,5944b,55780,0.7477,

Narrated `Abdullah:

(As above 827). -actions are by intentions,openai-small-en,1,forty,33,1430330,0.9241,Actions are through intentions. -actions are by intentions,openai-small-en,2,nasai,75,1000750,0.7223,"It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: ""The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger,…" -actions are by intentions,openai-small-en,3,nasai,3794,1038080,0.7109,"It was narrated from 'Umar bin Al-Khattab that the Prophet said: ""Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose…" -actions are by intentions,openai-small-en,4,ibnmajah,4229,1293320,0.7081,It was narrated from Abu Hurairah that the Messenger of Allah (saw) said: “People will be resurrected (and judged) according to their intentions.” -actions are by intentions,openai-small-en,5,ahmad,168,5001680,0.7077,"Umar said: I heard the Messenger of Allah ﷺ say: `Deeds are but by intentions and each man will have but that which he intended. If a man's migration was for the sake of Allah, then his migration was for that for which he migrated, but if his migration was to achieve some worldly aim or to take…" -actions are by intentions,openai-small-en,6,abudawud,2201,821950,0.6958,"‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His Apostle, his emigration is to Allaah and His Apostle but his emigration is to a worldly end at which…" -actions are by intentions,openai-small-en,7,nasai,3437,1034480,0.6949,"It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: ""Actions are but by intentions, and each man will have but that which he intended. Whoever emigrated for the sake of Allah and His Messenger, his emigration was for the sake of Allah and…" -actions are by intentions,openai-small-en,8,tirmidhi,1647,617430,0.6894,"Narrated 'Umar bin Al-Khattab:

That the Messenger of Allah (saws) said: ""Deeds are but with intentions, and for the man is only what he intended. So one whose emigration was to Allah and His Messenger, then his emigration was to Allah and His Messenger. And one whose emigration was to the…" -actions are by intentions,openai-small-en,9,muslim,130,202360,0.6872,"

It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him) observed: He who intended to do good, but did not do it, one good was recorded for him, and he who intended to do good and also did it, ten to seven hundred good deeds were recorded for him. And…" -actions are by intentions,openai-small-en,10,ibnmajah,4230,1293330,0.6857,It was narrated from Jabir that the Messenger of Allah (saw) said: “People will be gathered (on the Day of Resurrection) according to their intentions.” -actions are by intentions,nomic,1,bukhari,6607,62130,0.826,"

Narrated Sahl bin Sa`d:

There was a man who fought most bravely of all the Muslims on behalf of the Muslims in a battle (Ghazwa) in the company of the Prophet. The Prophet looked at him and said. ""If anyone would like to see a man from the people of the Fire, let him look at this (brave…" -actions are by intentions,nomic,2,abudawud,1368,813630,0.8197,"Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he…" -actions are by intentions,nomic,3,ahmad,184,5001840,0.8165,"It was narrated that Yahya bin Ya'mar and Humaid bin ‘Abdur­-Rahman al­-Himyari said: We met 'Abdullah bin 'Umar and discussed the divine decree (al qadar) and what others said concerning it. He said: When you go back to them, say; Ibn ‘Umar has nothing to do with you and you have nothing to do…" -actions are by intentions,nomic,4,bukhari,1559,14690,0.8164,"

Narrated Abu Musa:

The Prophet sent me to some people in Yemen and when I returned, I found him at Al-Batha. He asked me, ""With what intention have you assumed Ihram (i.e. for Hajj or for Umra or for both?"") I replied, ""I have assumed Ihram with an intention like that of the Prophet."" He…" -actions are by intentions,nomic,5,mishkat,3444,5840551,0.8156,"‘Imran b. Husain told that he heard God’s Messenger say, “Vows are of two kinds, so if anyone vows to do an act of obedience, that is for God and must be fulfilled; but if anyone vows, to do an act of disobedience, that is for the devil and must not be fulfilled, but he must make atonement for it…" -actions are by intentions,nomic,6,bulugh,918,2011240,0.8098,"Narrated [Ibn 'Abbas (RA)]: Allah's Messenger (SAW) said, ""There should neither be harming (of others without cause), nor reciprocating harm (between two parties)."" [Reported by Ahmad and Ibn Majah]." -actions are by intentions,nomic,7,ibnmajah,2120,1264390,0.8093,"It was narrated from Abu Hurairah that the Messenger of Allah (SAW) said: ""The oath is only according to the intention of the one who requests the oath to be taken.""'" -actions are by intentions,nomic,8,bukhari,7551,71000,0.8077,"

Narrated `Imran:

I said, ""O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, ""Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.'" -actions are by intentions,nomic,9,adab,490,2204900,0.8071,"Abu Dharr reported that the Prophet, may Allah bless him and grant him peace, reported that Allah, the Blessed and Exalted, said: ""My slaves! I have forbidden injustice for Myself and I have made it forbidden among you, so do not wrong one another. ""My slaves! You err by night and day and I forgive…" -actions are by intentions,nomic,10,tirmidhi,2007,673100,0.807,"Hudhaifah narrated that the Messenger of Allah said: “Do not be a people without a will of your own, saying: 'If people treat us well, we will treat them well; and if they do wrong, we will do wrong,' but accustom yourselves to do good if people do good, and do not behave unjustly if they do evil.”" -actions are by intentions,mxbai,1,forty,33,1430330,0.988,Actions are through intentions. -actions are by intentions,mxbai,2,forty,5,1430050,0.864,"The person guiding (someone) to do a good deed, is like the one performing the good deed." -actions are by intentions,mxbai,3,forty,18,1430180,0.8358,The felicitous person takes lessons from (the actions of) others. -actions are by intentions,mxbai,4,abudawud,1368,813630,0.8291,"Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he…" -actions are by intentions,mxbai,5,nasai,3794,1038080,0.8226,"It was narrated from 'Umar bin Al-Khattab that the Prophet said: ""Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose…" -actions are by intentions,mxbai,6,nasai,75,1000750,0.8221,"It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: ""The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger,…" -actions are by intentions,mxbai,7,muslim,2648 b,264030,0.8211,"

This hadith has been transmitted on the authority of Jabir b. Abdullah with the same wording (and includes these words):"" Allah's Messenger (may peace be upon him) said: Every doer of deed is facilitated in his action.""" -actions are by intentions,mxbai,8,bukhari,7551,71000,0.8187,"

Narrated `Imran:

I said, ""O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, ""Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.'" -actions are by intentions,mxbai,9,forty,1,1400010,0.8183,"

It is narrated on the authority of Amirul Mu'minin, Abu Hafs 'Umar bin al-Khattab (ra) who said: I heard the Messenger of Allah (saws) say: ""Actions are (judged) by motives (niyyah), so each man will have what he intended. Thus, he whose migration (hijrah) was to Allah and His Messenger, his…" -actions are by intentions,mxbai,10,nasai,4484,1085075,0.8169,"It was narrated from Ibn 'Umar that: a man told the Messenger of Allah that he was always being cheated. The Messenger of Allah said to him: ""When you make a deal, say: There is no intention of cheating"" So, whenever the man engages in a deal he says, 'There is no intention of cheating."" ""(Sahih )" -ramadan,openai-small-en,1,mishkat,1962,5770060,0.7704,"Abu Huraira reported God’s messenger as saying, “Ramadan, a blessed month, has come to you during which God has made it obligatory for you to fast. In it the gates of heaven are opened, the gates of al-Jahim are locked, and the rebellious devils are chained. In it God has a night which is better…" -ramadan,openai-small-en,2,muslim,1081 a,223780,0.7665,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days." -ramadan,openai-small-en,3,muslim,1079 c,223620,0.7643,"

This hadith is reported by Abu Huraira (with a slight alteration of words) that the Messenger of Allah (may peace be upon him) said:"" When (the month of) Ramadan begins.""" -ramadan,openai-small-en,4,riyadussalihin,1194,1622380,0.7628,'Aishah (May Allah be pleased with her) reported: The Messenger of Allah (PBUH) used to strive more in worship during Ramadan than he strove in any other time of the year; and he would devote himself more (in the worship of Allah) in the last ten nights of Ramadan than he strove in earlier part of… -ramadan,openai-small-en,5,muslim,1163 a,226110,0.7614,"

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night." -ramadan,openai-small-en,6,muslim,1145 b,225480,0.7592,"

Salama b. Akwa' reported: We, during the lifetime of the Messenger of Allah (may peace be upon him), in one month of Ramadan (observed fast according to our liking). He who wished to fast lasted and he who wished to break broke it and fed a needy person as an expiation 1544 till this verse was…" -ramadan,openai-small-en,7,muslim,1080 b,223640,0.7579,"

Ibn Umar reported that Allah's Messenger (may peace be upon him) made a mention of Ramadan and he with the gesture of his hand said: The month is thus and thus. (He then withdrew his thumb at the third time). He then said: Fast when you see it, and break your fast when you see it, and if the…" -ramadan,openai-small-en,8,muslim,1080 e,223670,0.7564,"

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and…" -ramadan,openai-small-en,9,abudawud,2429,824230,0.7543,"Narrated Abu Hurairah: The Messenger of Allah (saws) as saying: The most excellent fast after Ramadan is Allah's month al-Muharram, and the most excellent prayer after the prescribed prayer is the prayer during night." -ramadan,openai-small-en,10,ibnmajah,3925,1290230,0.7539,"It was narrated from Talhah bin ‘Ubaidullah that two men from Bali came to the Messenger of Allah (saw). They had become Muslim together, but one of them used to strive harder than the other. The one who used to strive harder went out to fight and was martyred. The other one stayed for a year…" -ramadan,nomic,1,muslim,1157 a,225830,0.8212,"

Ibn Abbas (Allah be pleased with both of them) reported: The Messenger of Allah (may peace be upon him) did not fast throughout any month except during ramadan. And when he observed fast (he fasted so continuously) that one would say that he would not break (them) and when he Abandoned, he…" -ramadan,nomic,2,bulugh,163,2001950,0.819,"Narrated Abu Sa'id al-Khudri (RA): I heard Allah's Messenger (SAW) saying: ""No Salat (prayer) is to be offered after the morning prayer until the sun rises, or after the afternoon prayer until the sun sets."" [Agreed upon]." -ramadan,nomic,3,abudawud,1611,816070,0.8174,"Ibn ‘Umar said : The Messenger of Allah(may peace be upon him) prescribed as zakat payable by slave and freeman, male and female, among the muslims on closing the fast of Ramadan one sa of dried dates or one sa’ of barley. (This tradition was read out byu ‘Abd Allah b. Maslamah to Malik)" -ramadan,nomic,4,ahmad,163,5001630,0.813,"Abu ‘Ubaid said: I was present at Eid with ‘Umar, and he started with the prayer before the khutbah. He said: The Messenger of Allah ﷺ forbade fasting on these two days. The day of al-Fitr is the day when you break your fast, and on the day of al-Adha, eat the meat of your sacrifices." -ramadan,nomic,5,malik,629,406310,0.8107,"

Yahya related to me from Malik from Nafi from Abdullah ibn Umar that the Messenger of Allah, may Allah bless him and grant him peace, made the zakat of breaking the fast at the end of Ramadan obligatory on every muslim, whether freeman or slave, male or female, and stipulated it as a sa' of…" -ramadan,nomic,6,abudawud,1357,813520,0.8107,"Narrated Ibn 'Abbas: I spent a night in the house of my maternal aunt Maimunah, daughter of al-Harith. The Prophet (saws) offered the night prayer. He then came and prayed four rak'ahs and slept. He then stood up and prayed. I stood at his left side. He made me go round and made me stand at his…" -ramadan,nomic,7,mishkat,2048,5770910,0.8106,Abu Sa'id al-Khudri said God’s messenger forbade fasting on the day of breaking the fast of Ramadan and on the day of sacrifice. (Bukhari and Muslim.) -ramadan,nomic,8,muslim,979 a,221340,0.81,"

Abu Sa'id al-Khudri reported Allah's Messenger (way peace be upon him) as saying: No sadaqa (zakat) is payable on less than five wasqs of (dates or grains), on less than five camel-heads and on less than five uqiyas (of silver)." -ramadan,nomic,9,malik,,407060,0.8099,"

Malik said, ""There is no harm in someone who is in itikaf entering into a marriage contract as long as there is no physical relationship. A woman in itikaf may also be betrothed as long as there is no physical relationship. What is haram for someone in itikaf in relation to his womenfolk during…" -ramadan,nomic,10,muslim,1167 a,226250,0.8096,"

Abu Sa'id al-Khudri (Allah be pleased with him) reported that Allah's Messenger (may peace be upon him) spent in devotion (in i'tikaf) the middle ten nights of the month of Ramadan, and when twenty nights were over and it was the twenty-first night, he went back to his residence and those who…" -ramadan,mxbai,1,muslim,1080 e,223670,0.8869,"

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and…" -ramadan,mxbai,2,muslim,1080 f,223680,0.882,

'Abdullah b. 'Umar (Allah be pleased with both of them) reported Allah's Messenger (may peace be upon him) as saying: The month (of Ramadan) may consist of twenty nine days; so when you see the new moon observe fast and when you see (the new moon again at the commencement of the month of… -ramadan,mxbai,3,muslim,1163 a,226110,0.8815,"

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night." -ramadan,mxbai,4,bukhari,1900,17860,0.8801,"

Narrated Ibn `Umar:

I heard Allah's Apostle saying, ""When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting; and if the sky is overcast (and you can't see it) then regard the month of Ramadan as of 30 days.""" -ramadan,mxbai,5,mishkat,2047,5770900,0.8797,"Abu Ayyub al-Ansari told that God’s messenger said, “If anyone fasts during Ramadan, then follows it with six days in Shawwal, it will be like a perpetual fast.” Muslim transmitted it." -ramadan,mxbai,6,mishkat,1817,5760460,0.8785,"Ibn 'Abbas said, “At the end of Ramadan bring forth the sadaqa relating to your fast. God's messenger prescribed this sadaqa as a sa' of dried dates or barley, or half a sa' of wheat payable by every free¬man or slave, male or female, young or old."" Abu Dawud and Nasa’i transmitted it." -ramadan,mxbai,7,riyadussalihin,1167,1622110,0.8784,"Abu Hurairah (May Allah be pleased with him) reported: The Messenger of Allah (PBUH) said, ""The best month for observing Saum (fasting) after Ramadan is Muharram, and the best Salat after the prescribed Salat is Salat at night.""

[Muslim].

" -ramadan,mxbai,8,muslim,1116 a,224770,0.8783,"

Abu Sa'id al-Khudri (Allah be pleased with him) reported: We went out on an expedition with Allah's Messenger (may peace be upon him) on the 16th of Ramadan. Some of us fasted and some of us broke the fast. But neither the observer of the fast found fault with one who broke it, nor the breaker…" -ramadan,mxbai,9,muslim,1081 a,223780,0.878,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days." -ramadan,mxbai,10,riyadussalihin,1225,1622690,0.876,"Ibn 'Abbas (May Allah be pleased with them) reported: The Messenger of Allah (PBUH) said, ""Do not observe Saum (fasting) before the advent of Ramadan. Observe Saum at sighting of the crescent of Ramadan and terminate it at sighting the crescent (of Shawwal). If the sky is overcast, complete (the…" -jesus,openai-small-en,1,bukhari,3444,32170,0.6949,"

Narrated Abu Huraira:

The Prophet said, ""Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus said, 'I believe in Allah and suspect my eyes.""" -jesus,openai-small-en,2,muslim,2937 a,270150,0.6918,

An-Nawwas b. Sam`an reported that Allah's Messenger (may peace be upon him) made a mention of the Dajjal one day in the morning. He (saws) sometimes described him to be insignificant and sometimes described (his turmoil) as very significant (and we felt) as if he were in the cluster of the… -jesus,openai-small-en,3,mishkat,5716,5972920,0.6859,"Abu Huraira reported God's messenger as saying, ""On the night when I was taken up to heaven, I met Moses who may be described as a lanky man with somewhat curly hair who resembled one of the men of Shanu'a; I met Jesus who was of medium height and red as though he had come out of a dimas…" -jesus,openai-small-en,4,bukhari,3448,32210,0.6841,"

Narrated Abu Huraira:

Allah's Apostle said, ""By Him in Whose Hands my soul is, surely (Jesus,) the son of Mary will soon descend amongst you and will judge mankind justly (as a Just Ruler); he will break the Cross and kill the pigs and there will be no Jizya (i.e. taxation taken from non…" -jesus,openai-small-en,5,muslim,2897,269240,0.6785,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The Last Hour would not come until the Romans would land at al-A'maq or in Dabiq. An army consisting of the best (soldiers) of the people of the earth at that time will come from Medina (to counteract them). When they… -jesus,openai-small-en,6,muslim,2365 c,258360,0.6774,"

Abu Huraira reported many ahadith from Allah's Messenger (may peace be upon him) and one is that Allah's Messenger (may peace be upon him) said: I am most close to Jesus, son of Mary, among the whole of mankind in this worldly life and the next life. They said: Allah's Messenger how is it?…" -jesus,openai-small-en,7,muslim,2365 b,258350,0.6765,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to one religion and no Prophet was raised between me and Jesus." -jesus,openai-small-en,8,abudawud,4324,843100,0.6757,"

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down…" -jesus,openai-small-en,9,mishkat,2288,5790640,0.6753,"Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the…" -jesus,openai-small-en,10,mishkat,5608,5971830,0.6739,"Hudhaifa and Abu Huraira reported God's messenger as saying, ""God who is blessed and exalted will collect mankind and the believers will stand till paradise is brought near them. They will then go to Adam and say, `Ask, father, that paradise may be opened for us,' but he will reply, `Has anything…" -jesus,nomic,1,mishkat,1214,5746270,0.7989,"‘A’isha told how God’s Messenger said when he awoke during the night, “There is no god but Thee. Glory be to Thee, O God, and praise be to Thee. I ask for Thy forgiveness of my sin, and I ask for Thy mercy. O God, increase me in knowledge, and do not let my heart swerve after Thou hast guided me.…" -jesus,nomic,2,bukhari,1209,11380,0.7957,"

Narrated Aisha:

I used to stretch my legs towards the Qibla of the Prophet while he was praying; whenever he prostrated he touched me, and I would withdraw my legs, and whenever he stood up, I would restretch my legs." -jesus,nomic,3,bukhari,3392,31690,0.7952,"

Narrated `Aisha:

The Prophet returned to Khadija while his heart was beating rapidly. She took him to Waraqa bin Naufal who was a Christian convert and used to read the Gospels in Arabic Waraqa asked (the Prophet), ""What do you see?"" When he told him, Waraqa said, ""That is the same angel…" -jesus,nomic,4,muslim,196 c,203830,0.792,

Anas b. Malik said: The Apostle of Allah (may peace be upon him) said: I would be the first intercessor in the Paradise and no apostle amongst the apostles has been testified (by such a large number of people) as I have been testified. And verily there woald be an apostle among the apostles who… -jesus,nomic,5,muslim,201,203960,0.7917,"

Abu Zubair heard Jabir b. Abdullah reporting it from the Apostle of Allah (may peace be upon him): For every apostle was a prayer with which he prayed (to his Lord) for his Ummah, but I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection." -jesus,nomic,6,bukhari,516,4980,0.7907,"

Narrated Abu Qatada Al-Ansari:

Allah's Apostle was praying and he was carrying Umama the daughters of Zainab, the daughter of Allah's Apostle and she was the daughter of 'As bin Rabi`a bin `Abd Shams. When he prostrated, he put her down and when he stood, he carried her (on his neck)." -jesus,nomic,7,bulugh,226,2002740,0.7903,"Narrated Abu Qatada (RA): Allah's Messenger (SAW) was (one time) offering prayer while he was carrying Umama, daughter of Zainab, when he prostrated he put her down and when he stood up he lifted her up. [Agreed upon]." -jesus,nomic,8,mishkat,936,5743580,0.7895,"Ruwaih' reported God’s Messenger as saying, “If anyone invokes a blessing on Muhammad saying, ‘O God, cause him to occupy the place near Thee on the day of resurrection’, he will be guaranteed my intercession.” Ahmad transmitted it." -jesus,nomic,9,mishkat,5572,5971500,0.7893,"Anas reported the Prophet as saying, ""The believers will be restrained on the day of resurrection so that they will be concerned about that and express a desire to find an intercessor with their Lord that He may relieve them from the position in which they are placed. They will go to Adam and say,…" -jesus,nomic,10,muslim,200 a,203920,0.789,

Anas b. Malik reported: Verily the Apostle of Allah (may peace be upon him) said: There is for every apostle a prayer with which he prays (to Allah) for his Ummah. I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection. -jesus,mxbai,1,abudawud,4324,843100,0.826,"

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down…" -jesus,mxbai,2,mishkat,2288,5790640,0.8246,"Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the…" -jesus,mxbai,3,bukhari,3438,32120,0.8234,"

Narrated Ibn `Abbas:

The Prophet said, ""I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of brown complexion, straight hair and tall stature as if he was from the people of Az-Zutt.""" -jesus,mxbai,4,muslim,194 a,203780,0.8198,"

Abu Huraira reported: Meat was one day brought to the Messenger of Allah (may peace be upon him) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of it and said: I shall be the leader of mankind on the Day of Resurrection. Do you know why? Allah…" -jesus,mxbai,5,mishkat,1897,5761250,0.8186,"‘A’isha reported God’s messenger as saying, “Everyone of the children of Adam has been created with three hundred and sixty joints, so he who declares God’s greatness, praises God, declares that He is the only God, glorifies God, asks forgiveness of God, removes a stone, a thorn, or a bone from…" -jesus,mxbai,6,abudawud,4641,846240,0.8183,‘Awf said: I heard al-Hajjaj addressing the people say: The similitude of ‘Uthman with Allah is like the similitude of Jesus son of Mary. He then recited the following verse and explained it: “Behold! Allah said: O Jesus! I will take thee and raise thee to Myself and clear thee (of the falsehood)… -jesus,mxbai,7,muslim,2368,258400,0.8175,

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person committing theft; thereupon Jesus said to him: You committed theft. He said: Nay. By Him besides Whom there… -jesus,mxbai,8,bukhari,7510,70600,0.8169,"

Narrated Ma`bad bin Hilal Al-`Anzi:

We, i.e., some people from Basra gathered and went to Anas bin Malik, and we went in company with Thabit Al-Bunnani so that he might ask him about the Hadith of Intercession on our behalf. Behold, Anas was in his palace, and our arrival coincided with his…" -jesus,mxbai,9,bukhari,3441,32140,0.816,"

Narrated Salim from his father:

No, By Allah, the Prophet did not tell that Jesus was of red complexion but said, ""While I was asleep circumambulating the Ka`ba (in my dream), suddenly I saw a man of brown complexion and lank hair walking between two men, and water was dropping from his…" -jesus,mxbai,10,bukhari,3443,32160,0.8156,"

Narrated Abu Huraira:

Allah's Apostle said, ""Both in this world and in the Hereafter, I am the nearest of all the people to Jesus, the son of Mary. The prophets are paternal brothers; their mothers are different, but their religion is one.""" -sex,openai-small-en,1,bukhari,1545,14560,0.6616,

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they… -sex,openai-small-en,2,malik,1824,418780,0.6498,"

Malik related to me from Zayd ibn Aslam from Ata ibn Yasar that the Messenger of Allah, may Allah bless him and grant him peace, said, ""Whomever Allah protects from the evil of two things will enter the Garden."" A man said, ""Messenger of Allah, do not tell us!"" The Messenger of Allah, may Allah…" -sex,openai-small-en,3,bulugh,1012,2012600,0.6451,"Sa'id (bin Mansur) also reported something similar from 'Ali (RA) and added: ""And (if) she has something like a horn (Qarn) (coming out of her vagina), her husband then has the right to divorce her or keep her. And if he had intercourse with her, she gets her dowry for the intercourse her husband…" -sex,openai-small-en,4,mishkat,3190,5831050,0.6449,"Abu Sa'id al-Khudri reported God's Messenger as saying, “The most serious breach of trust in God’s sight on the day of resurrection ...” A version has, “Among those who will have the worst position in God’s sight on the day of resurrection is the man who has intercourse with his wife, and she with…" -sex,openai-small-en,5,mishkat,3341,5832530,0.6443,"Ibn ‘Umar said that when a girl with whom intercourse might be had was given as a present, or sold, or set free, it was necessary to wait till she had had a menstrual period, but that this was unnecessary in the case of a virgin. Razin transmitted." -sex,openai-small-en,6,muslim,1435 a,233630,0.6418,"

Jabir (Allah be pleased with him) declared that the Jews used to say: When a man has intercourse with his wife through the vagina but being on her back. the child will have squint, so the verse came down:"" Your wives are your tilth; go then unto your tilth as you may desire"" (ii. 223)" -sex,openai-small-en,7,mishkat,86,5710800,0.6409,"Abu Huraira reported God's messenger as saying, “God has decreed for man his portion of fornication which he will inevitably commit. The fornication of the eye consists in looking, and of the tongue in speech. The soul wishes and desires, and the private parts accord with that or reject it.”…" -sex,openai-small-en,8,malik,1135,411670,0.6395,"

Yahya related to me from Malik from Ibn Shihab, and he had heard from al-Qasim ibn Muhammad that they said, ""When a free man marries a slave-girl and consummates the marriage, she makes him muhsan.""

Malik said, ""All (of the people of knowledge) I have seen said that a slave-girl makes…" -sex,openai-small-en,9,muslim,1438 a,233710,0.6379,"

Abu Sirma said to Abu Sa'id al Khadri (Allah he pleased with him): 0 Abu Sa'id, did you hear Allah's Messenger (may peace be upon him) mentioning al-'azl? He said: Yes, and added: We went out with Allah's Messenger (may peace be upon him) on the expedition to the Bi'l-Mustaliq and took captive…" -sex,openai-small-en,10,bukhari,6818,64180,0.6361,"

Narrated Abu Huraira:

The Prophet said, ""The boy is for (the owner of) the bed and the stone is for the person who commits illegal sexual intercourse.'" -sex,nomic,1,mishkat,3143,5830620,0.8485,"‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful."" (Bukhari and Muslim.)" -sex,nomic,2,muslim,348 a,206820,0.8351,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." -sex,nomic,3,bulugh,995,2012380,0.8327,"Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, ""The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)."" [Agreed upon]." -sex,nomic,4,bulugh,119,2001460,0.8325,"Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through…" -sex,nomic,5,bulugh,110,2001320,0.8277,"Narrated Abu Huraira (rad): Allah’s Messenger (saw) said that, “If one of you sits between her legs (of a woman) and penetrates her, Ghusl (bath) is obligatory.” [Agreed upon]." -sex,nomic,6,muslim,1418,233020,0.8261,"

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word"" condition"" ) it is""…" -sex,nomic,7,abudawud,265,802650,0.826,"Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given)" -sex,nomic,8,muslim,346 b,206780,0.8254,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." -sex,nomic,9,bulugh,117,2001430,0.8218,"Narrated Abu Sa’id Al-Khudri (rad): Allah’s Messenger (saw) said, “If one of you has sexual intercourse with his wife and wishes to repeat he should perform ablution between them” [Reported by Muslim]." -sex,nomic,10,muslim,321 c,206290,0.8205,

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. -sex,mxbai,1,bulugh,117,2001440,0.8391,A-Hakim added: “Ablution makes one active for repeating (the sexual act).” -sex,mxbai,2,muslim,321 c,206290,0.8145,

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. -sex,mxbai,3,muslim,348 a,206820,0.8112,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." -sex,mxbai,4,bukhari,1545,14560,0.8087,

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they… -sex,mxbai,5,mishkat,3143,5830620,0.8082,"‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful."" (Bukhari and Muslim.)" -sex,mxbai,6,abudawud,265,802650,0.8081,"Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given)" -sex,mxbai,7,mishkat,330,5730430,0.8072,"Ibn ‘Umar used to say, “A man’s kiss to his wife and his touching her with his hand are connected with sexual intercourse, and anyone who kisses his wife or touches her with his hand must perform ablution.” Malik and Shafi‘i transmitted it." -sex,mxbai,8,muslim,1418,233020,0.8048,"

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word"" condition"" ) it is""…" -sex,mxbai,9,bukhari,293,2930,0.804,"

Narrated Ubai bin Ka`b:

I asked Allah's Apostle about a man who engages in sexual intercourse with his wife but does not discharge. He replied, ""He should wash the parts which comes in contact with the private parts of the woman, perform ablution and then pray."" (Abu `Abdullah said, ""Taking…" -sex,mxbai,10,muslim,346 b,206780,0.8031,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." -marriage,openai-small-en,1,ibnmajah,1847,1261640,0.7042,"It was narrated from Ibn Abbas that: the Messenger of Allah said: “There is nothing like marriage, for two who love one another.”" -marriage,openai-small-en,2,abudawud,2272,822650,0.7,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was… -marriage,openai-small-en,3,bukhari,5127,47975,0.6987,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for…" -marriage,openai-small-en,4,malik,,414990,0.6956,"

Yahya said that he heard Malik say, ""The way of doing things in our community about which there is no dispute, is that if a man gives sadaqa to his son - sadaqa which the son takes possession of or which is in the father's keeping and the father has had his sadaqa witnessed, he cannot take back…" -marriage,openai-small-en,5,abudawud,2130,821250,0.689,"

Narrated AbuHurayrah:

When the Prophet (saws) congratulated a man on his marriage, he said: May Allah bless for you, and may He bless on you, and combine both of you in good (works).

" -marriage,openai-small-en,6,tirmidhi,1101,671000,0.6872,"Abu Musa narrated that : the Messenger of Allah said: ""There is no marriage except with a Wali.""" -marriage,openai-small-en,7,ibnmajah,1846,1261630,0.687,"It was narrated from Aishah that: the Messenger of Allah said: “Marriage is part of my sunnah, and whoever does not follow my sunnah has nothing to do with me. Get married, for I will boast of your great numbers before the nations. Whoever has the means, let him get married, and whoever does not,…" -marriage,openai-small-en,8,mishkat,3093,5830140,0.6862,"Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted." -marriage,openai-small-en,9,muslim,1405 d,232490,0.6861,

Jabir b. 'Abdullah reported: We contracted temporary marriage giving a handful of (tales or flour as a dower during the lifetime of Allah's Messenger (may peace be upon him) and durnig the time of Abu Bakr until 'Umar forbade it in the case of 'Amr b. Huraith. -marriage,openai-small-en,10,bukhari,5150,48190,0.6859,"

Narrated Sahl bin Sa`d:

The Prophet said to a man, ""Marry, even with (a Mahr equal to) an iron ring.""" -marriage,nomic,1,bulugh,993,2012360,0.8659,Narrated Ibn 'Abbas (RA): The Prophet (SAW) married Maimunah (RA) when he was in the state of Ihram (during pilgrimage). [Agreed upon]. -marriage,nomic,2,mishkat,2682,5815560,0.8642,Ibn ‘Abbas said that the Prophet married Maimuna when he was on pilgrimage. Bukhari and Muslim. -marriage,nomic,3,bukhari,1837,17250,0.8626,"

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held)." -marriage,nomic,4,bukhari,5114,47880,0.8606,

Narrated Ibn `Abbas:

The Prophet got married while he was in the state of Ihram. -marriage,nomic,5,mishkat,3093,5830140,0.8564,"Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted." -marriage,nomic,6,abudawud,2272,822650,0.8557,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was… -marriage,nomic,7,bukhari,5127,47975,0.8551,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for…" -marriage,nomic,8,bukhari,5261,49270,0.8543,"

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, ""No, she cannot marry the first husband…" -marriage,nomic,9,ibnmajah,1991,1263100,0.8543,"It was narrated from 'Abdul-Malik bin Harith bin Hisham, from his father, that: the Prophet married Umm Salamah in Shawwal, and consummated the marriage with her in Shawwal." -marriage,nomic,10,abudawud,2047,820430,0.8542,"Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).”" -marriage,mxbai,1,forty,21,1430210,0.8446,A man will be with whom he loves. -marriage,mxbai,2,abudawud,2047,820430,0.8333,"Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).”" -marriage,mxbai,3,bulugh,967,2011910,0.8322,"Narrated 'Abdullah bin Mas'ud (RA): Allah's Messenger (SAW) said to us, ""O young men, those of you who can support a wife should marry, for it (marriage) controls the gaze and preserves one from immorality. And whoever cannot (marry) should fast, for it is a means of reducing the sexual desire.""…" -marriage,mxbai,4,bukhari,2721,25460,0.831,"

Narrated `Uqba bin Amir:

Allah's Apostle said, ""From among all the conditions which you have to fulfill, the conditions which make it legal for you to have sexual relations (i.e. the marriage contract) have the greatest right to be fulfilled.""" -marriage,mxbai,5,bulugh,1127,2014020,0.829,"Narrated 'Aishah (RA): Allah's Messenger (SAW) said, ""One or two sucks do not make (marriage) unlawful."" [Muslim reported it]." -marriage,mxbai,6,bukhari,5090,47660,0.8282,"

Narrated Abu Huraira:

The Prophet said, ""A woman is married for four things, i.e., her wealth, her family status, her beauty and her religion. So you should marry the religious woman (otherwise) you will be a losers." -marriage,mxbai,7,bulugh,995,2012380,0.8278,"Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, ""The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)."" [Agreed upon]." -marriage,mxbai,8,bukhari,5119,47912,0.8278,"Salama bin Al-Akwa` said: Allah's Apostle's said, ""If a man and a woman agree (to marry temporarily), their marriage should last for three nights, and if they like to continue, they can do so; and if they want to separate, they can do so."" I do not know whether that was only for us or for all the…" -marriage,mxbai,9,tirmidhi,1084,670830,0.8271,"Abu Hurairah narrated that: The Messenger of Allah said: ""When someone whose religion and character you are pleased with proposes to (someone under the care) of one of you, then marry to him. If you do not do so, then there will be turmoil (Fitnah) in the land and abounding discord (Fasad).""" -marriage,mxbai,10,bulugh,1034,2012880,0.827,It is a portion of the long Hadith preceding in the beginning of the Book of Marriage. -masturbation,openai-small-en,1,muslim,348 a,206820,0.678,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." -masturbation,openai-small-en,2,ibnmajah,480,1254790,0.6764,"It was narrated that Jabir bin 'Abdullah said: ""The Messenger of Allah said: 'If anyone of you touches his penis, then he has to perform ablution.'""" -masturbation,openai-small-en,3,abudawud,206,802060,0.6756,"‘Ali said: My prostatic fluid flowed excessively. I used to take a bath until my back cracked (because of frequent washing). I mentioned it to the prophet (May peace be upon him), or the fact was mentioned to him (by someone else). The Messenger of Allah (May peace be upon him) said; Do not do so.…" -masturbation,openai-small-en,4,muslim,346 b,206780,0.6744,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." -masturbation,openai-small-en,5,bulugh,72,2000870,0.6734,"Narrated Talq bin ‘Ali (rad): A man said: “I touched my penis” or he said, “Does a man who touch his penis during the prayer should perform Wudu (ablution)?” The Prophet (saw) replied, “No, it is only a part of your body”. [Reported by Al-Khamsa. Ibn Hibban graded it Sahih (sound)." -masturbation,openai-small-en,6,abudawud,211,802110,0.6726,

Narrated Abdullah ibn Sa'd al-Ansari:

I asked the Messenger of Allah (saws) as to what makes it necessary to take a bath and about the (prostatic) fluid that flows after taking a bath. He replied: that is called madhi (prostatic fluid). It flows from every male. You should wash your… -masturbation,openai-small-en,7,ibnmajah,479,1254780,0.6693,"It was narrated that Busrah bint Safwan said: ""The Messenger of Allah said: 'If anyone of you touches his penis, let him perform ablution.'""" -masturbation,openai-small-en,8,tirmidhi,82,660820,0.669,"Busrah bint Safwan narrated that : the Prophet said: ""Whoever touches his penis, then he is not to pray until he performs Wudu""" -masturbation,openai-small-en,9,muslim,303 c,205950,0.6682,

Ibn 'Abbas reported it from 'Ali: We sent al-Miqdad b. al-Aswad to the Messenger of Allah (may peace be upon him) to ask him what must be done about prostatic fluid which flows from (the private part of) a person. The Messenger of Allah (may peace be upon him) said: Perform ablution and wash… -masturbation,openai-small-en,10,bukhari,260,2610,0.6676,"

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his…" -masturbation,nomic,1,bulugh,119,2001460,0.8129,"Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through…" -masturbation,nomic,2,bukhari,464,4560,0.8127,"

Narrated Um Salama:

I complained to Allah's Apostle that I was sick. He told me to perform the Tawaf behind the people while riding. So I did so and Allah's Apostle was praying beside the Ka`ba and reciting the Sura starting with ""Wat-tur wa kitabin mastur.""" -masturbation,nomic,3,ahmad,847,5008470,0.8107,"It was narrated that ‘Ali (رضي الله عنه) said: I was a man who emitted a great deal of madhi. I asked the Prophet (ﷺ) and he said: “If you ejaculate, then do ghusl for janabah, and if you do not ejaculate, then do not do ghusl.”" -masturbation,nomic,4,bulugh,111,2001350,0.8105,"Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon]" -masturbation,nomic,5,bukhari,260,2610,0.8079,"

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his…" -masturbation,nomic,6,muslim,316 d,206190,0.807,"

'Urwa has narrated it on the authority of 'A'isha that when Allah's Messenger (may peace be upon him) took a bath because of sexual intercourse, he first washed his hands before dipping one of them into the basin, and then performed ablu- tion as is done for prayer." -masturbation,nomic,7,mishkat,340,5730520,0.8065,"Abu Qatada reported God’s messenger as saying, ""When one of you drinks he must not breathe into the vessel, and when he goes to relieve himself he must not touch his penis with his right hand, or wipe himself with his right hand.” (Bukhari and Muslim.)" -masturbation,nomic,8,bukhari,258,2590,0.8061,"

Narrated `Aisha:

Whenever the Prophet took the bath of Janaba (sexual relation or wet dream) he asked for the Hilab or some other scent. He used to take it in his hand, rub it first over the right side of his head and then over the left and then rub the middle of his head with both hands." -masturbation,nomic,9,nasai,387,1003890,0.8043,"It was narrated that 'Aishah said: ""The Prophet (PBUH) would put his head out while he was performing I'tikaf and I would wash it, while I was menstruating.""" -masturbation,nomic,10,muslim,346 b,206780,0.804,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." -masturbation,mxbai,1,bulugh,117,2001440,0.8507,A-Hakim added: “Ablution makes one active for repeating (the sexual act).” -masturbation,mxbai,2,bulugh,64,2000760,0.82,"Narrated ‘Umar (rad), in a Mawquf (untraceable) and Anas in a Marfu (traceable) Hadith: “If one of you performs ablution and puts on his two leather socks, let him perform Mash (wipe) over them and pray in them and he may not take them off he so wishes except after ejaculation or sexual impurity.…" -masturbation,mxbai,3,bulugh,110,2001330,0.8168,And Muslim added: “Even if he does not ejaculate”. -masturbation,mxbai,4,bulugh,73,2000890,0.8162,"Narrated Busra bint Safwan (rad): Allah’s Messenger (saw) said, “He who touches his penis should perform ablution”. [Reported by Al-Khamsa, and At-Tirmidhi and Ibn Hibban graded it Sahih (sound)." -masturbation,mxbai,5,bulugh,28,2000350,0.8143,In yet another version of Muslim: Verily! I (‘Aisha) used to scrape it (the semen) off his garment with my nails while it was dry. -masturbation,mxbai,6,mishkat,287,5730060,0.8135,"‘Uthman performed ablution, pouring water over his hands three times, then rinsing his mouth and snuffing up water, then washing his face three times, then washing his right arm up to the elbow three times, then washing his left arm up to the elbow three times, then wiping his head, then washing…" -masturbation,mxbai,7,bulugh,111,2001350,0.8128,"Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon]" -masturbation,mxbai,8,bulugh,109,2001300,0.812,Narrated Abu Sa’id Al-Khudri (rad): Allah’s Mesenger (saw) said: “The water (of the ghusl) is due to the water (of sexual emission)”. [Reported by Muslim] -masturbation,mxbai,9,tirmidhi,3415,681260,0.8118,Maslamah bin `Amr said: “`Umair bin Hani used to perform a thousand prostrations every day and recite a hundred thousand Tasbīḥs every day.” -masturbation,mxbai,10,shamail,32,1800310,0.8108,A’isha said: “I used to comb the hair of Allah’s Messenger (Allah bless him and give him peace) while I was menstruating.” -racism,openai-small-en,1,ahmad,614,5006140,0.6237,It was narrated that `Ali (رضي الله عنه)said: The Messenger of Allah (ﷺ) said: “No one hates the Arabs except a hypocrite.” -racism,openai-small-en,2,ibnmajah,69,1250690,0.6207,"It was narrated that 'Abdullah said: ""The Messenger of Allah (SAW) said: 'Verbally abusing a Muslim is immorality and fighting him is Kufr (disbelief).'""" -racism,openai-small-en,3,malik,1831,418850,0.6196,"

Malik related to me that he heard that Abdullah ibn Masud used to say, ""The slave continues to lie and a black spot grows in his heart until all his heart becomes black. Then he is written, in Allah's sight, among the liars.""

" -racism,openai-small-en,4,abudawud,4877,848590,0.6188,"

Narrated AbuHurayrah:

The Prophet (saws) said: The gravest sin is going to lengths in talking unjustly against a Muslim's honour, and it is a major sin to abuse twice for abusing once.

" -racism,openai-small-en,5,malik,1600,416570,0.6177,"

Yahya said that Malik said, ""The way of doing things in our community about which there is no dispute is that women do not swear in the swearing for the intentional act. If the murdered man only has female relatives, the women have no right to swear for blood and no pardon in murder.""

…" -racism,openai-small-en,6,ahmad,467,5004670,0.6177,"It was narrated that Rabah said: My masters married me to a Roman slave girl of theirs and she bore me a black boy. Then she fell in love with a Roman slave whose name was Yuhannas, and he spoke to her in their language. Then she got pregnant. She had borne me a child who was black like me, then…" -racism,openai-small-en,7,malik,1521,415930,0.6169,"

Malik related to me from Hisham ibn Urwa that his father said that there was only one hadd against a man who slandered a group of people.

Malik said, ""If they are on separate occasions there is still only one hadd against him.""

Malik related to me from Abu'r-Rijal Muhammad ibn…" -racism,openai-small-en,8,riyadussalihin,338,1603350,0.6141,"'Abdullah bin 'Amr bin Al-'as (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said, ""It is one of the gravest sins to abuse one's parents."" It was asked (by the people): ""O Messenger of Allah, can a man abuse his own parents?"" Messenger of Allah (PBUH) said, ""He abuses the…" -racism,openai-small-en,9,mishkat,3311,5832220,0.614,"He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there…" -racism,openai-small-en,10,nasai,4105,1083195,0.6118,"It was narrated that 'Abdullah said: ""Defaming a Muslim is evildoing and fighting him is Kufr."" (Sahih Mawquf)" -racism,nomic,1,bukhari,6847,64410,0.7889,"

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, ""My wife has delivered a black child."" The Prophet said to him, ""Have you camels?"" He replied, ""Yes."" The Prophet said, ""What color are they?"" He replied, ""They are red."" The Prophet further asked, ""Are any of them gray in…" -racism,nomic,2,bukhari,5305,49670,0.7871,"

Narrated Abu Huraira:

A man came to the Prophet and said, ""O Allah's Apostle! A black child has been born for me."" The Prophet asked him, ""Have you got camels?"" The man said, ""Yes."" The Prophet asked him, ""What color are they?"" The man replied, ""Red."" The Prophet said, ""Is there a grey one…" -racism,nomic,3,bukhari,7314,68730,0.7846,"

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, ""My wife has delivered a black boy, and I suspect that he is not my child."" Allah's Apostle said to him, ""Have you got camels?"" The bedouin said, ""Yes."" The Prophet said, ""What color are they?"" The bedouin said, ""They are…" -racism,nomic,4,nasai,1594,1067220,0.7836,"It was narrated that 'Aishah said: ""The black people came and played in front of the Prophet (SAW) on the day of 'Eid. He called me and I watched them from over his shoulder, and I continued to watch them until I was the one who moved away.""" -racism,nomic,5,abudawud,2253,822450,0.7781,"‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep…" -racism,nomic,6,ibnmajah,2003,1263220,0.7776,"It was narrated from Ibn 'Umar that: a man frorn the desert people came to the Prophet and said: ""O Messenger of Allah, my wife has given birth on my bed to a black boy, and there are no black people among my family."" He said: ""Do you have camels?"" He said: ""Yes."" He said: ""What color are they?"" He…" -racism,nomic,7,abudawud,2260,822530,0.7772,Abu Hurairah said A man from Banu Fazarah came to the Prophet (saws) and said “My wife has given birth to a black son”. He said “Have you any camels?” He said “They are red”. He asked “Is there a dusky one among them?” He replied “Some of them are dusky”. He asked “How do you think they have come… -racism,nomic,8,bulugh,1102,2013700,0.7765,"Narrated Abu Hurairah (RA): A man said, ""O Allah's Messenger, my wife has given birth to a black son."" He asked, ""Have you any camels?"" He replied, ""Yes."" He asked, ""What is their color?"" He replied, ""They are red."" He asked, ""Is there a dusky (dark) one among them?"" He replied, ""Yes."" He asked,…" -racism,nomic,9,nasai,3479,1034900,0.7759,"It was narrated that Abu Hurairah said: ""A man from Banu Fazarah came to the Prophet and said: 'My wife has given birth to a black boy' -and he wanted to disown him. He said: 'Do you have camels?' He said: 'Yes.' He said: 'What color are they?' He said: 'Red.' He said: 'Are there any gray ones…" -racism,nomic,10,mishkat,3311,5832220,0.7753,"He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there…" -racism,mxbai,1,mishkat,4327,5910210,0.7839,"‘Abdallah b. ‘Amr b. al-‘As told that when God's messenger saw him wearing two garments dyed with saffron he said, “These are the garments worn by infidels ; do not wear them.” A version says that when he suggested washing them he replied, “No, burn them.” Muslim transmitted it." -racism,mxbai,2,abudawud,2253,822450,0.7826,"‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep…" -racism,mxbai,3,bulugh,1518,2054800,0.7821,"'A’ishah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “The most despicable amongst people in the sight of Allah is the ruthless argumentative (person).” Related by Muslim." -racism,mxbai,4,bukhari,30,290,0.7805,"

Narrated Al-Ma'rur:

At Ar-Rabadha I met Abu Dhar who was wearing a cloak, and his slave, too, was wearing a similar one. I asked about the reason for it. He replied, ""I abused a person by calling his mother with bad names."" The Prophet said to me, 'O Abu Dhar! Did you abuse him by calling…" -racism,mxbai,5,mishkat,3688,5870230,0.7792,"‘A’idh b. ‘Amr told that he heard God’s Messenger say, “The worst shepherds are those who are ungentle.” Muslim transmitted it." -racism,mxbai,6,bukhari,5940,55730,0.7787,"

Narrated Ibn `Umar:

The Prophet has cursed the lady who lengthens her hair artificially and the one who gets her hair lengthened, and also the lady who tattoos (herself or others) and the one who gets herself tattooed." -racism,mxbai,7,mishkat,1874,5761010,0.778,"Abu Huraira reported God’s messenger as saying, “The worst things in a man are anxious niggardliness and unrestrained cowardice.” Abd Dawud transmitted it." -racism,mxbai,8,bulugh,1201,2053310,0.7779,"Sahl bin Abi Khaithamah (RAA) narrated on the authority of some honored men from his people that 'Abdullah bin Sahl and Muhaiysah bin Mas'ud, went out to Khaibar because of a hardship they were undergoing. Muhaiysah came and told them that 'Abdullah bin Sahl had been killed and thrown into a well.…" -racism,mxbai,9,ibnmajah,1859,1261770,0.7776,"It was narrated from Abdullah bin Amr that: the Prophet said: “Do not marry women for their beauty for it may lead to their doom. Do not marry them for their wealth, for it may lead them to fall into sin. Rather, marry them for their religion. A black slave woman with piercings who is religious is…" -racism,mxbai,10,bulugh,1500,2054620,0.7772,"Abu Hurairah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “When two men insult one another, what they say is mainly the fault of the one who began it, so long as the one who is oppressed does not transgress.” Related by Muslim." -polygamy,openai-small-en,1,bukhari,5127,47975,0.7243,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for…" -polygamy,openai-small-en,2,muslim,1451 a,234150,0.7217,"

Umm al-Fadl reported: A bedouin came to Allah's Apostle (may peace be upon him) when he was in my house and said: Allah's Apostle, I have had a wife and I married another besides her, and my first wife claimed that she had suckled once or twice my newly married wife, thereupon Allah's Apostle…" -polygamy,openai-small-en,3,bukhari,5068,47440,0.7182,"

Narrated Anas:

The Prophet used to go round (have sexual relations with) all his wives in one night, and he had nine wives." -polygamy,openai-small-en,4,malik,1238,412620,0.7156,"

Yahya related to me from Malik that Ibn Shihab said, ""I have heard that the Messenger of Allah, may Allah bless him and grant him peace, said to a man from Thaqif who had ten wives when he became muslim, 'Take four and separate from the rest.' ""

" -polygamy,openai-small-en,5,abudawud,2243,822350,0.7142,"

Al-Dahhak b. Firuz reported on the authority of his father: I said: Messenger of Allah, I have embraced Islam and two sisters are my wives. He said: Divorce any one of them you wish.

" -polygamy,openai-small-en,6,muslim,1408 b,232690,0.7136,"

Abu Huraira (Allah be pleased with him) reported: that Allah's Messenger (may peace be upon him) forbade combining of four women in marriage: a woman with her father's sister, and a woman with her mother's sister." -polygamy,openai-small-en,7,ibnmajah,1953,1262720,0.7113,It was narrated that Ibn 'Umar said: “Ghailan bin Salamah became Muslim and he had ten wives. The Prophet said to him: 'Choose four of them.' ” -polygamy,openai-small-en,8,mishkat,3091,5830120,0.7109,"Ma'qil b. Yasar reported God’s Messenger as saying, “Marry women who are loving and very prolific, for I shall outnumber the peoples by you."" Abu Dawud and Nasa’i transmitted it." -polygamy,openai-small-en,9,bukhari,5215,48820,0.7104,"

Narrated Anas bin Malik:

The Prophet used to pass by (have sexual relation with) all his wives in one night, and at that time he had nine wives." -polygamy,openai-small-en,10,malik,1149,411810,0.7087,"

Yahya related to me from Malik from Rabia ibn Abi Abd ar-Rahman that al-Qasim ibn Muhammad and Urwa ibn az-Zubayr said that a man who had four wives and then divorced one of them irrevocably, could marry straightaway if he wished, and he did not have to wait for the completion of her idda.

" -polygamy,nomic,1,mishkat,3170,5830850,0.8259,"Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the…" -polygamy,nomic,2,muslim,1456 a,234320,0.8245,"

Abu Sa'id al-Khudri (Allah her pleased with him) reported that at the Battle of Hanain Allah's Messenger (may peace be upon him) sent an army to Autas and encountered the enemy and fought with them. Having overcome them and taken them captives, the Companions of Allah's Messenger (may peace te…" -polygamy,nomic,3,mishkat,2554,5810490,0.8172,"Ibn ‘Abbas said that the polytheists used to say, “Labbaik, Thou hast no partner,"" whereupon God’s messenger would say, “Woe to you ! Enough, enough; [do not add] ‘except a partner who is Thine whom Thou possessest', when He possesses none.” They used to say this when they were going round…" -polygamy,nomic,4,bukhari,5127,47975,0.8167,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for…" -polygamy,nomic,5,abudawud,2272,822650,0.8164,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was… -polygamy,nomic,6,muslim,122,202210,0.8163,

It is narrated on the authority of Ibn 'Abbas that some persons amongst the polytheist had committed a large number of murders and had excessively indulged in fornication. Then they came to Muhammad (may peace be upon him) and said: Whatever you assert and whatever you call to is indeed good.… -polygamy,nomic,7,nasai,3415,1034260,0.8123,"It was narrated that Ibn 'Umar said: ""The Prophet was asked about a man who divorced his wife three times, then another man married her and he closed the door and drew the curtain, then divorced her before consummating the marriage with her. He said: ""She is not permissible for the first one (to…" -polygamy,nomic,8,mishkat,3419,5840330,0.8112,"Ibn Umar told that he heard God’s Messenger say, “He who swears by anyone but God is a polytheist.” Tirmidhi transmitted it." -polygamy,nomic,9,bulugh,1287,2056160,0.811,"Samurah (RAA) narrated that The Messenger of Allah (P.B.U.H.) said, “Kill the mature men of the polytheists but spare their children.” Related by Abu Dawud and At-Tirmidhi graded it as Sahih." -polygamy,nomic,10,bukhari,5105,47805,0.81,"Ibn 'Abbas further said, ""Seven types of marriages are unlawful because of blood relations, and seven because of marriage relations."" Then Ibn 'Abbas recited the Verse: ""Forbidden for you (for marriages) are your mothers..."" (4:23). 'Abdullah bin Ja'far married the daughter and wife of 'Ali at the…" -polygamy,mxbai,1,abudawud,2088,820830,0.8486,

Narrated Samurah:

The Prophet (saws) said: Any woman who is married by two guardians (to two different men) belongs to the first woman who is married by two guardians (to two different men) belongs to the first of them and anything sold by a man to two persons belongs to the first of… -polygamy,mxbai,2,abudawud,2133,821280,0.8341,"

Narrated AbuHurayrah:

The Prophet (saws) said: When a man has two wives and he is inclined to one of them, he will come on the Day of resurrection with a side hanging down.

" -polygamy,mxbai,3,abudawud,2067,820620,0.8335,

Narrated Abdullah ibn Abbas:

The Prophet (saws) abominated the combination of paternal and maternal aunts and the combination of two maternal aunts and two paternal aunts in marriage.

-polygamy,mxbai,4,bulugh,1001,2012440,0.8334,"Narrated 'Aishah (RA): A man divorced his wife by three pronouncements and another man married her and divorced her before cohabiting with her. Then, her first husband intended to remarry her and asked Allah's Messenger (SAW) about that. He said, ""No, until the other one (second husband) has…" -polygamy,mxbai,5,bukhari,5127,47975,0.8334,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for…" -polygamy,mxbai,6,mishkat,3170,5830850,0.8306,"Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the…" -polygamy,mxbai,7,bukhari,4528,42060,0.8297,"

Narrated Jabir:

Jews used to say: ""If one has sexual intercourse with his wife from the back, then she will deliver a squint-eyed child."" So this Verse was revealed:-- ""Your wives are a tilth unto you; so go to your tilth when or how you will."" (2.223)" -polygamy,mxbai,8,bukhari,5261,49270,0.8295,"

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, ""No, she cannot marry the first husband…" -polygamy,mxbai,9,abudawud,2272,822650,0.8286,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was… -polygamy,mxbai,10,bukhari,5104,47800,0.8278,"

Narrated `Uqba bin Al-Harith:

I married a woman and then a black lady came to us and said, ""I have suckled you both (you and your wife)."" So I came to the Prophet and said, ""I married so-and-so and then a black lady came to us and said to me, 'I have suckled both of you.' But I think she is…" -pork,openai-small-en,1,abudawud,3489,834820,0.6549,

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

-pork,openai-small-en,2,bukhari,5506,51590,0.6408,"

Narrated Rafi` bin Khadij:

The Prophet said, ""Eat what is slaughtered (with any instrument) that makes blood flow out, except what is slaughtered with a tooth or a nail.'" -pork,openai-small-en,3,bukhari,1824,17120,0.6392,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all…" -pork,openai-small-en,4,shamail,170,1801610,0.6351,'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” -pork,openai-small-en,5,muslim,1938 c,247720,0.6349,

Bara was heard saying: We were forbidden (to eat) the flesh of the domestic asses. -pork,openai-small-en,6,abudawud,2796,827900,0.6344,"

Narrated AbuSa'id al-Khudri:

The Messenger of Allah (saws) used to sacrifice a choice, horned ram with black round the eyes, the mouth and the feet.

" -pork,openai-small-en,7,malik,621,406230,0.6315,"

Yahya related to me from Malik from Zayd ibn Aslam from his father that he said to Umar ibn al-Khattab, ""There is a blind she- camel behind the house,'' soUmar said, ""Hand it over to a household so that they can make (some) use of it."" He said, ""But she is blind."" Umar replied, ""Then put it in…" -pork,openai-small-en,8,malik,,410940,0.6298,"

Yahya related to me from Malik that the best of what he had heard about a man who is forced by necessity to eat carrion is that he ate it until he was full and then he took provision from it. If he found something which would enable him to dispense with it, he threw it away.

Malik when…" -pork,openai-small-en,9,ibnmajah,3146,1272490,0.6296,"It was narrated that Abu Sa’eed Al-Khudri said: “We bought a ram for sacrifice, then a wolf tore some flesh from its rump and ears. We asked the Prophet (saw) and he told us to offer it as a sacrifice.”" -pork,openai-small-en,10,bukhari,5527,51801,0.6295,

Narrated Abu Tha'alba:

Allah's Apostle prohibited the eating of donkey's meat.

Narrated Az-Zuhri:

The Prophet prohibited the eating of beasts having fangs.

-pork,nomic,1,bukhari,1495,14100,0.795,"

Narrated Anas:

Some meat was presented to the Prophet (p.b.u.h) and it had been given to Barira (the freed slave-girl of Aisha) in charity. He said, ""This meat is a thing of charity for Barira but it is a gift for us.""" -pork,nomic,2,tirmidhi,1509,615860,0.7935,"Narrated Ibn 'Umar: That the Prophet (saws) said: ""None of you should eat from the meat of his sacrificial animal beyond three days.""" -pork,nomic,3,bukhari,1824,17120,0.7908,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all…" -pork,nomic,4,shamail,169,1801600,0.7896,"'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.”" -pork,nomic,5,abudawud,2814,828080,0.7892,"Narrated Thawban: The Messenger of Allah (saws) sacrificed during a journey and then said: Thawban, mend the meat of this goat. I then kept on supplying its meat until we reached Medina." -pork,nomic,6,bulugh,15,2000210,0.7864,"Narrated Abu Waqid Al-Laithi: Narrated Abu Waqid Al-Laithi (rad): Allah’s Messenger (saw) said, “Whatever (portion) is cut off from an animal when it is alive is dead (meat). [Reported by Abu Da’ud and At-Tirmidhi who graded it Hasan (fair) and this version is of Tirmidhi]." -pork,nomic,7,adab,1276,2212320,0.7855,"Ya'la ibn Murra reported that he heard Abu Hurayra speaking about someone who plays backgammon and bets on it, saying that he is like someone who eats pig meat and that the person who plays it without betting on it is like someone who washes his hands in pig's blood. The person who sits looking at…" -pork,nomic,8,shamail,166,1801570,0.7843,"Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.”" -pork,nomic,9,ibnmajah,3216,1273220,0.783,"It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).”" -pork,nomic,10,muslim,1975 a,248630,0.7829,"

Thauban reported that Allah's Messenger (way peace be upon him) slaughtered his sacrificial animal and then said: Thauban, make his meat usable (for journey), and I continuously served him that until he arrived in Medina." -pork,mxbai,1,shamail,170,1801610,0.7987,'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” -pork,mxbai,2,ibnmajah,3216,1273220,0.7976,"It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).”" -pork,mxbai,3,shamail,169,1801600,0.7928,"'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.”" -pork,mxbai,4,ibnmajah,3314,1274220,0.7917,"It was narrated from ‘Abdullah bin ‘Umar that the Messenger of Allah (saw) said: “Two kinds of dead meat and two kinds of blood have been permitted to us. The two kinds of dead meat are fish and locusts, and the two kinds of blood are the liver and spleen.”" -pork,mxbai,5,mishkat,4215,5900530,0.7913,"‘A’isha reported God’s messenger as saying, “Do not cut meat with a knife, for it is a foreign practice, but bite it, for that is more beneficial and wholesome.” Abu Dawud and Baihaqi, in Shu'ab al-iman, transmitted it, both saying it is not strong." -pork,mxbai,6,shamail,166,1801570,0.7905,"Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.”" -pork,mxbai,7,abudawud,3489,834820,0.7894,

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

-pork,mxbai,8,nasai,4425,1084785,0.7879,"'Ali bin Abi Talib Said: ""The Messenger of Allah has forbidden you from eating the meat of your sacrificaial animals for more than three day."" (Sahih )" -pork,mxbai,9,bukhari,1492,14070,0.7863,"

Narrated Ibn `Abbas:

The Prophet saw a dead sheep which had been given in charity to a freed slave-girl of Maimuna, the wife of the Prophet . The Prophet said, ""Why don't you get the benefit of its hide?"" They said, ""It is dead."" He replied, ""Only to eat (its meat) is illegal.""" -pork,mxbai,10,bukhari,1824,17120,0.7858,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all…" -dance,openai-small-en,1,malik,75,400750,0.6113,"

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, ""I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the…" -dance,openai-small-en,2,abudawud,4854,848360,0.5992,"

Narrated AbudDarda':

The Messenger of Allah (saws) would sit and we would also sit around him. If he got up intending to return, he would take off his sandals or something he was wearing, and his Companions recognising his purpose (that he would return) would stay where they were.

" -dance,openai-small-en,3,abudawud,4923,849050,0.5977,"

Narrated Anas ibn Malik:

When the Messenger of Allah (saws) came to Medina, the Abyssinians played for his coming out of joy; they played with spears.

" -dance,openai-small-en,4,bukhari,1591,15000,0.597,"

Narrated Abu Huraira:

The Prophet;; said, ""Dhus-Suwaiqa-tain (literally: One with two lean legs) from Ethiopia will demolish the Ka`ba.""" -dance,openai-small-en,5,abudawud,652,806520,0.5956,"

Narrated Aws ibn Thabit al-Ansari:

The Messenger of Allah (saws) said: Act differently from the Jews, for they do not pray in their sandals or their shoes.

" -dance,openai-small-en,6,bukhari,2628,24600,0.5948,"

Narrated Aiman:

I went to `Aisha and she was wearing a coarse dress costing five Dirhams. `Aisha said, ""Look up and see my slave-girl who refuses to wear it in the house though during the lifetime of Allah's Apostle I had a similar dress which no woman desiring to appear elegant (before her…" -dance,openai-small-en,7,mishkat,765,5741920,0.5945,"Shaddad b. Aus reported God’s Messenger as saying, “Act differently from the Jews, for they do not pray in their sandals or their shoes.”* * Khuff (pl. khifaf), an article of footwear which came up above the ankle. Traditions tell that the Prophet allowed pilgrims to wear the…" -dance,openai-small-en,8,ibnmajah,2939,1279690,0.594,It was narrated that ‘Abdullah bin ‘Abbas said: “The Prophets used to enter the Haram walking barefoot. They would circumambulate the House and complete all the rituals barefoot and walking.” -dance,openai-small-en,9,forty,33,1430330,0.5939,Actions are through intentions. -dance,openai-small-en,10,forty,18,1430180,0.5936,The felicitous person takes lessons from (the actions of) others. -dance,nomic,1,tirmidhi,40,660400,0.7981,"Al-Mustawrid bin Shaddad Al-Fihri said : ""I saw the Prophet when he was performing Wudu doing that to the toes on his feet with his pinky.""" -dance,nomic,2,tirmidhi,3734,636130,0.7957,"Narrated Ibn 'Abbas: ""The first to perform Salat was 'Ali.""" -dance,nomic,3,tirmidhi,39,660390,0.7927,"Ibn Abbas narrated that : Allah's Messenger said: ""When performing Wudu go between the fingers of your hands and (toes of) your feet.""" -dance,nomic,4,bulugh,55,2000660,0.7924,"Narrated Anas (rad): The Prophet (saw) saw a man on whose foot appeared a portion like the size of a nail which was not touched by water. He then said, “Go back and perform your Wudu properly.” [Reported by Abu Da’ud and An-Nasa’i]." -dance,nomic,5,bukhari,6702,63020,0.7916,"

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf around the Ka`ba, tied with a rope or something else (while another person was holding him). The Prophet cut that rope off." -dance,nomic,6,bukhari,5910,55443,0.7911,

Narrated Anas: The Prophet had big feet and hands. -dance,nomic,7,abudawud,1986,819810,0.791,Narrated Ibn 'Umar: The Messenger of Allah (saws) performed 'Umrah before performing Hajj. -dance,nomic,8,nasai,50,1000500,0.789,"It was narrated from Abu Hurairah that the Prophet (PBUH) performed Wudu', and when he had performed Istinja' he rubbed his hand on the ground." -dance,nomic,9,bulugh,1443,2054061,0.7884,"In a version by Muslim, “And the one who is riding should salute the one who is walking.”" -dance,nomic,10,bulugh,45,2000550,0.7884,"Narrated Abu Huraira (rad): Allah’s Messenger (rad) said, “When you perform ablution, begin with your right limbs”. [Reported by Al-Arba’a and garded Sahih by Ibn Khuzaima]." -dance,mxbai,1,muslim,819 a,217850,0.7711,"

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached seven modes (of recitation). Ibn Shibab said: It has reached me that these seven styles are essentially…" -dance,mxbai,2,abudawud,727,807260,0.7646,The above tradition has been transmitted by ‘Asim b. Kulaib through a different chain of narrators and to the same effect. This version has: “He then placed his right hand on the back of his left palm and his wrist and forearm.” This also adds: “I then came back afterwards in a season when it was… -dance,mxbai,3,abudawud,942,809420,0.76,‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. -dance,mxbai,4,tirmidhi,3418,681290,0.7595,"`Abdullah bin `Abbas [may Allah be pleased with them] narrated, : that when the Messenger of Allah (saws) would stand for prayer during the middle of the night, he would say: “O Allah, to You is the Praise, You are the Light of the heavens and the earth, and to You is the Praise, You are the…" -dance,mxbai,5,malik,75,400750,0.7591,"

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, ""I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the…" -dance,mxbai,6,abudawud,958,809571,0.7588,"'Abdullah bin 'Umar said: ""A Sunnah of the prayer is that you should raise your right foot, and make your left foot lie (on the ground).""" -dance,mxbai,7,mishkat,4416,5911060,0.7583,"Al-Qasim b. Muhammad quoted ‘A’isha as saying the Prophet often walked wearing one sandal. A version says she walked wearing one sandal. Tirmidhi transmitted it, saying this is sounder" -dance,mxbai,8,muslim,2099 d,252370,0.7576,

Jabir. b. Abdullah reported Allah's Messenger (may peace be upon him) as saying: Do not walk in one sandal and do not wrap the lower garment round your knees and do not eat with your left hand and do not wrap yourself completely leaving no room for the arms (to draw out) and do not place one of… -dance,mxbai,9,muslim,2097 a,252310,0.7554,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: ""When one of you puts on sandals, he should first put in the right foot, and when he takes off he should take off the left one first. And he should wear both of them or take both off.""" -dance,mxbai,10,abudawud,859,808580,0.7548,"This tradition has also been transmitted through a different chain of narrators by Rifa’ah b. Rafi. This version goes: When you get up and face the qiblah, what Allah wishes you to recite. And when you bow, put your palms on your knees and stretch out your back. When you prostrate yourself, do it…" diff --git a/test results & reports/lexical vs semantic/test2/batch_report.md b/test results & reports/lexical vs semantic/test2/batch_report.md deleted file mode 100644 index b0784a2..0000000 --- a/test results & reports/lexical vs semantic/test2/batch_report.md +++ /dev/null @@ -1,1627 +0,0 @@ -# Batch Search Report -**Date:** 2026-05-25 -**Models:** lexical, openai-small-en, nomic, mxbai -**Method:** lexical = BM25 + collection boosts; semantic = HNSW `size=100` -**Queries:** 13, report shows top 10 per model - -## Queries -- [comparing yourself to others](#query-comparing-yourself-to-others) -- [aisha six years](#query-aisha-six-years) -- [music](#query-music) -- [actions are by intentions](#query-actions-are-by-intentions) -- [ramadan](#query-ramadan) -- [jesus](#query-jesus) -- [sex](#query-sex) -- [marriage](#query-marriage) -- [masturbation](#query-masturbation) -- [racism](#query-racism) -- [polygamy](#query-polygamy) -- [pork](#query-pork) -- [dance](#query-dance) - ---- - -## Query: "comparing yourself to others" - -### lexical — 3850 total hits - -**#1** — muslim 1776 d · score: 17.9936 ->

This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed. - -**#2** — bukhari 3334 · score: 16.2561 ->

Narrated Anas:

The Prophet said, "Allah will say to that person of the (Hell) Fire who will receive the least punishment, 'If you had everything on the earth, would you give it as a ransom to free yourself (i.e. save yourself from this Fire)?' He will say, 'Yes.' Then Allah will say, 'While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me.' " - -**#3** — muslim 2431 · score: 16.1899 ->

Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods. - -**#4** — bukhari 4816 · score: 14.8959 ->

Narrated Ibn Mas`ud:

(regarding) the Verse: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you..' (41.22) While two persons from Quraish and their brotherin- law from Thaqif (or two persons from Thaqif and their brother-in-law from Quraish) were in a house, they said to each other, "Do you think that Allah hears our talks?" Some said, "He hears a portion thereof" Others said, "If He can hear a portion of it, He can hear all of it." Then the following Verse was revealed: 'And you have not been screening against… - -**#5** — muslim 2939 b · score: 14.8806 ->

Mughira b. Shu'ba reported that none asked Allah's Apostle (may peace be upon him) about Dajjal more than I asked him. I (one of the narrators other than Mughira b. Shu'ba) said: What did you ask? Mughira replied: I said that the people alleged that he would have a mountain load of bread and mutton and rivers of water. Thereupon he said: He would be more insignificant in the eye of Allah compared with all this. - -**#6** — abudawud 4627 · score: 14.877 -> Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other. - -**#7** — bukhari 6557 · score: 14.3848 ->

Narrated Anas bin Malik:

The Prophet said, "Allah will say to the person who will have the minimum punishment in the Fire on the Day of Resurrection, 'If you had things equal to whatever is on the earth, would you ransom yourself (from the punishment) with it?' He will reply, Yes. Allah will say, 'I asked you a much easier thing than this while you were in the backbone of Adam, that is, not to worship others besides Me, but you refused and insisted to worship others besides Me."' - -**#8** — bukhari 2219 · score: 14.3251 ->

Narrated Sa`d that his father said:

`Abdur-Rahman bin `Auf said to Suhaib, 'Fear Allah and do not ascribe yourself to somebody other than your father.' Suhaib replied, 'I would not like to say it even if I were given large amounts of money, but I say I was kidnapped in my childhood.' " - -**#9** — bukhari 3628 · score: 14.191 ->

Narrated Ibn `Abbas:

Allah's Apostle in his fatal illness came out, wrapped with a sheet, and his head was wrapped with an oiled bandage. He sat on the pulpit, and praising and glorifying Allah, he said, "Now then, people will increase but the Ansar will decrease in number, so much so that they, compared with the people, will be just like the salt in the meals. So, if any of you should take over the authority by which he can either benefit some people or harm some others, he should accept the goodness of their good people (i.e. Ansar) and excuse the faults of their wrong-doers." That… - -**#10** — bukhari 3655 · score: 14.0406 ->

Narrated Ibn `Umar:

We used to compare the people as to who was better during the lifetime of Allah's Apostle . We used to regard Abu Bakr as the best, then `Umar, and then `Uthman . - - -### openai-small-en — 150 total hits - -**#1** — adab 328 · score: 0.6896 -> Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults." - -**#2** — bukhari 6490 · score: 0.6896 ->

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. - -**#3** — riyadussalihin 466 · score: 0.6851 -> Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you."
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him".

- -**#4** — ahmad 111 · score: 0.6775 -> It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about… - -**#5** — forty 18 · score: 0.6753 -> The felicitous person takes lessons from (the actions of) others. - -**#6** — muslim 2963 c · score: 0.6708 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.

In the chain narrated by Abu Mu'awiya's he said: Upon you. - -**#7** — adab 592 · score: 0.6669 -> Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye." - -**#8** — muslim 2963 a · score: 0.6666 ->

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). - -**#9** — abudawud 4084 · score: 0.6659 ->

Narrated AbuJurayy Jabir ibn Salim al-Hujaymi:

I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say "On you be peace," for "On you be peace" is a greeting for the dead, but say "Peace be upon you".

I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought… - -**#10** — bulugh 1471 · score: 0.664 -> Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih. - - -### nomic — 150 total hits - -**#1** — bukhari 6490 · score: 0.8354 ->

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. - -**#2** — bukhari 6061 · score: 0.8165 ->

Narrated Abu Bakra:

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, "May Allah's Mercy be on you ! You have cut the neck of your friend." The Prophet repeated this sentence many times and said, "If it is indispensable for anyone of you to praise someone, then he should say, 'I think that he is so-and-so," if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody before Allah." (Khalid said, "Woe to you," instead of "Allah's Mercy be on you.") - -**#3** — bulugh 1471 · score: 0.8111 -> Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih. - -**#4** — bukhari 6530 · score: 0.8109 ->

Narrated Abu Sa`id:

The Prophet said, "Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) are the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine (persons).' At that time children will become hoary-headed and every pregnant female will drop her load (have an abortion) and you will see the people as if they were… - -**#5** — muslim 2963 a · score: 0.8103 ->

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). - -**#6** — tirmidhi 2513 · score: 0.809 -> Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you." - -**#7** — bukhari 6162 · score: 0.8085 ->

Narrated Abu Bakra:

A man praised another man in front of the Prophet. The Prophet said thrice, "Wailaka (Woe on you) ! You have cut the neck of your brother!" The Prophet added, "If it is indispensable for anyone of you to praise a person, then he should say, "I think that such-and-such person (is so-and-so), and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah (and that only if he knows well about that person.)". - -**#8** — nasai 3947 · score: 0.8077 -> It was narrated from Abu Musa that the Prophet said: "The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food." - -**#9** — abudawud 4627 · score: 0.8051 -> Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other. - -**#10** — adab 1146 · score: 0.8041 -> Ibn 'Abbas said, "The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me." - - -### mxbai — 150 total hits - -**#1** — forty 18 · score: 0.8147 -> The felicitous person takes lessons from (the actions of) others. - -**#2** — bukhari 6490 · score: 0.8022 ->

Narrated Abu Huraira:

Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. - -**#3** — forty 3 · score: 0.7969 -> A Muslim is a mirror of the Muslim. - -**#4** — muslim 2963 a · score: 0.794 ->

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). - -**#5** — ibnmajah 4336 · score: 0.792 -> Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace there?” He said: “Yes. The Messenger of Allah (saw) told me that when the people of Paradise enter it, they will take their places according to their deeds, and they will be given permission for a length of time equivalent to Friday on earth, when they will visit Allah. His Throne will be shown to them and He will appear to them in one of the gardens of Paradise. Chairs of light and chairs of pearls… - -**#6** — adab 159 · score: 0.7897 -> Abu'd-Darda' used to say to people. "We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves." - -**#7** — riyadussalihin 466 · score: 0.7864 -> Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you."
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him".

- -**#8** — muslim 2536 · score: 0.7854 ->

'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation). - -**#9** — tirmidhi 2513 · score: 0.7821 -> Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you." - -**#10** — abudawud 4092 · score: 0.7821 ->

Narrated AbuHurayrah:

A man who was beautiful came to the Prophet (saws). He said: Messenger of Allah, I am a man who likes beauty, and I have been given some of it, as you see. And I do not like that anyone excels me (in respect of beauty). Perhaps he said: "even to the extent of thong of my sandal (shirak na'li)", or he he said: "to the extent of strap of my sandal (shis'i na'li)". Is it pride? He replied: No, pride is disdaining what is true and despising people.

- - ---- - -## Query: "aisha six years" - -### lexical — 5555 total hits - -**#1** — bukhari 5133 · score: 23.3839 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death). - -**#2** — bukhari 3896 · score: 23.3248 ->

Narrated Hisham's father:

Khadija died three years before the Prophet departed to Medina. He stayed there for two years or so and then he married `Aisha when she was a girl of six years of age, and he consumed that marriage when she was nine years old. - -**#3** — bukhari 5158 · score: 23.2301 ->

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him for nine years (i.e. till his death). - -**#4** — bukhari 5134 · score: 23.1431 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). - -**#5** — muslim 1422 b · score: 22.7803 ->

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old. - -**#6** — muslim 1422 d · score: 22.0443 -> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old - -**#7** — abudawud 2121 · score: 21.5411 -> Narrated 'Aishah: The Messenger of Allah (saws) married me when I was seven years old. The narrator Sulaiman said: or Six years. He had intercourse with me when I was nine years old. - -**#8** — nasai 3255 · score: 21.1657 -> It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine. - -**#9** — bukhari 3948 · score: 18.5181 ->

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. - -**#10** — bukhari 3894 · score: 17.7972 ->

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on my hair grew (again) and my mother, Um Ruman, came to me while I was playing in a swing with some of my girl friends. She called me, and I went to her, not knowing what she wanted to do to me. She caught me by the hand and made me stand at the door of the house. I was breathless then, and when my breathing became Allright, she took some water and rubbed my face and head with it. Then she took me… - - -### openai-small-en — 150 total hits - -**#1** — bukhari 5134 · score: 0.7911 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). - -**#2** — bukhari 5133 · score: 0.7872 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death). - -**#3** — muslim 1422 d · score: 0.7823 -> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old - -**#4** — muslim 1422 b · score: 0.7807 ->

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old. - -**#5** — muslim 1422 c · score: 0.78 ->

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old. - -**#6** — mishkat 3129 · score: 0.7723 -> ‘A’isha said that the Prophet married her when she was seven, she was brought to live with him when she was nine bringing her toys with her, and he died when she was eighteen. Muslim transmitted it. - -**#7** — muslim 334 d · score: 0.7658 ->

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years," and the rest of the hadith is the same (as mentioned above). - -**#8** — nasai 3378 · score: 0.7618 -> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls." - -**#9** — ibnmajah 1877 · score: 0.7572 -> It was narrated that: Abdullah said: “The Prophet married Aishah when she was seven years old, and consummated the marriage with her when she was nine, and he passed away when she was eighteen.” - -**#10** — nasai 3379 · score: 0.7566 -> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine." - - -### nomic — 150 total hits - -**#1** — muslim 1422 d · score: 0.7981 -> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old - -**#2** — bukhari 3948 · score: 0.7872 ->

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. - -**#3** — muslim 334 d · score: 0.7823 ->

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years," and the rest of the hadith is the same (as mentioned above). - -**#4** — muslim 1422 b · score: 0.7789 ->

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old. - -**#5** — bulugh 228 · score: 0.7779 -> It is mentioned in al-Bazzar through another chain with the addition: "forty years." - -**#6** — abudawud 2240 · score: 0.7756 ->

Narrated Abdullah ibn Abbas:

The Messenger of Allah (saws) restored his daughter Zaynab to Abul'As on the basis of the previous marriage, and he did not do anything afresh.

Muhammad b. 'Amr said in his version: After six years. Al-Hasan b. 'Ali said: After two years.

- -**#7** — shamail 380 · score: 0.7728 -> Mu'awiya said in a sermon: "The Prophet died (Allah bless him and give him peace) when he was sixty-three years of age, as did Abu Bakr and 'Umar, and I am now sixty-three years of age.” - -**#8** — muslim 1422 c · score: 0.771 ->

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old. - -**#9** — mishkat 5489 · score: 0.7701 -> Asma' daughter of Yazid b. as-Sakan reported the Prophet a saying, "The dajjal will remain in the earth forty years, a year being like a month, a month like a week, a week like a day, and a day like the time it takes to burn a palm-branch." It is transmitted in Sharh as sunna. - -**#10** — bukhari 5133 · score: 0.7689 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death). - - -### mxbai — 150 total hits - -**#1** — bukhari 3894 · score: 0.8627 ->

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on my hair grew (again) and my mother, Um Ruman, came to me while I was playing in a swing with some of my girl friends. She called me, and I went to her, not knowing what she wanted to do to me. She caught me by the hand and made me stand at the door of the house. I was breathless then, and when my breathing became Allright, she took some water and rubbed my face and head with it. Then she took me… - -**#2** — nasai 3255 · score: 0.8612 -> It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine. - -**#3** — bukhari 5133 · score: 0.86 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death). - -**#4** — ibnmajah 1876 · score: 0.8522 -> It was narrated that: Aishah said: “The Messenger of Allah married me when I was six years old. Then we came to Al-Madinah and settled among Banu Harith bin Khazraj. I became ill and my hair fell out, then it grew back and became abundant. My mother Umm Ruman came to me while I was on an Urjuhah with some of my friends, and called for me. I went to her, and I did not know what she wanted. She took me by the hand and made me stand at the door of the house, and I was panting. When I got my breath back, she took some water and wiped my face and head, and led me into the house. There were some… - -**#5** — bukhari 5134 · score: 0.8507 ->

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). - -**#6** — bukhari 5158 · score: 0.849 ->

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him for nine years (i.e. till his death). - -**#7** — nasai 3378 · score: 0.8465 -> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls." - -**#8** — nasai 3379 · score: 0.8449 -> It was narrated that 'Aishah said: "The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine." - -**#9** — muslim 1422 d · score: 0.8446 -> Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old - -**#10** — nasai 3258 · score: 0.8426 -> It was narrated from 'Aishah that the Messenger of Allah married her when she was nine and he died when she was eighteen years old. - - ---- - -## Query: "music" - -### lexical — 14 total hits - -**#1** — muslim 2114 · score: 16.9802 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. - -**#2** — abudawud 2556 · score: 15.2798 -> Abu Hurairah reported the Apostle of Allaah(saws) as saying “The bell is a wooden wind musical instrument of Satan.” - -**#3** — bukhari 952 · score: 14.6703 ->

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said protestingly, "Musical instruments of Satan in the house of Allah's Apostle !" It happened on the `Id day and Allah's Apostle said, "O Abu Bakr! There is an `Id for every nation and this is our `Id." - -**#4** — riyadussalihin 1691 · score: 14.4857 -> Abu Hurairah (May Allah be pleased with him) said: The Prophet (PBUH) said, "The bell is one of the musical instruments of Satan."

[Muslim].

- -**#5** — bukhari 3931 · score: 14.4274 ->

Narrated Aisha:

That once Abu Bakr came to her on the day of `Id-ul-Fitr or `Id ul Adha while the Prophet was with her and there were two girl singers with her, singing songs of the Ansar about the day of Buath. Abu Bakr said twice. "Musical instrument of Satan!" But the Prophet said, "Leave them Abu Bakr, for every nation has an `Id (i.e. festival) and this day is our `Id." - -**#6** — bukhari 5590 · score: 13.4703 ->

Narrated Abu 'Amir or Abu Malik Al-Ash'ari:

that he heard the Prophet saying, "From among my followers there will be some people who will consider illegal sexual intercourse, the wearing of silk, the drinking of alcoholic drinks and the use of musical instruments, as lawful. And there will be some people who will stay near the side of a mountain and in the evening their shepherd will come to them with their sheep and ask them for something, but they will say to him, 'Return to us tomorrow.' Allah will destroy them during the night and will let the mountain fall on them, and He will… - -**#7** — tirmidhi 2212 · score: 13.1285 -> 'Imran bin Husain narrated that the Messenger of Allah(s.a.w) said: "In this Ummah there shall be collapsing of the earth, transformation and Qadhf." A man among the Muslims said: "O Messenger of Allah! When is that?" He said: "When singing slave-girls, music, and drinking intoxicants spread." - -**#8** — ibnmajah 4020 · score: 12.3358 -> It was narrated from Abu Malik Ash’ari that the Messenger of Allah (saw) said: “People among my nation will drink wine, calling it by another name, and musical instruments will be played for them and singing girls (will sing for them). Allah will cause the earth to swallow them up, and will turn them into monkeys and pigs.” - -**#9** — nasai 4135 · score: 11.4333 -> It was narrated that Al-Awza'i said: "Umar bin 'Abdul-'Aziz wrote a letter to 'Umar bin Al-Walid in which he said: 'The share that your father gave to you was the entire Khumus,[1] but the share that your father is entitled to is the same as that of any man among the Muslims, on which is due the rights of Allah and His Messenger, and of relatives, orphans, the poor and wayfarers. How many will dispute with your father on the Day of Resurrection! How can he be saved who has so many disputants? And your openly allowing musical instruments and wind instruments is an innovation in Islam. I was… - -**#10** — muslim 892 e · score: 11.1285 ->

`A'isha reported: The Messenger of Allah (may peace be upon him) came (to my apartment) while there were two girls with me singing the song of the Battle of Bu`ath. He lay down on the bed and turned away his face. Then came Abu Bakr and he scolded me and said: Oh! this musical instrument of the devil in the house of the Messenger of Allah (may peace be upon him)! The Messenger of Allah (may peace be upon him) turned towards him and said: Leave them alone. And when he (the Holy Prophet) became unattentive, I hinted them and they went out, and it was the day of `Id and the black men were… - - -### openai-small-en — 150 total hits - -**#1** — mishkat 3153 · score: 0.6246 -> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it. - -**#2** — malik 1748 · score: 0.6186 ->

Yahya related to me from Malik from Abu Hazim ibn Dinar that Abu Idris al-Khawlani said, "I entered the Damascus mosque and there was a young man with a beautiful mouth and white teeth sitting with some people. When they disagreed about something, they referred it to him and proceeded from his statement. I inquired about him, and it was said, 'This is Muadh ibn Jabal.' The next day I went to the noon-prayer, and I found that he had preceded me to the noon prayer and I found him praying."

Abu Idris continued, "I waited for him until he had finished the prayer. Then I came to him… - -**#3** — abudawud 1468 · score: 0.617 ->

Narrated Al-Bara' ibn Azib:

The Prophet (saws) said: Beautify the Qur'an with your voices.

- -**#4** — adab 786 · score: 0.6146 -> Ibn 'Abbas said about "There are some people who trade in distracting tales" (31:5) that it means singing and things like it. - -**#5** — bukhari 439 · score: 0.6132 ->

Narrated `Aisha:

There was a black slave girl belonging to an 'Arab tribe and they manumitted her but she remained with them. The slave girl said, "Once one of their girls (of that tribe) came out wearing a red leather scarf decorated with precious stones. It fell from her or she placed it somewhere. A kite passed by that place, saw it Lying there and mistaking it for a piece of meat, flew away with it. Those people searched for it but they did not find it. So they accused me of stealing it and started searching me and even searched my private parts." The slave girl further said, "By… - -**#6** — muslim 2114 · score: 0.6126 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. - -**#7** — adab 1265 · score: 0.6111 -> Ibn 'Abbas said that the words of Allah in Luqman (35:6), "There are people who trade in distracting tales" mean "singing and things like it." - -**#8** — muslim 793 d · score: 0.607 ->

Buraida reported on the authority of his father that the Messenger of Allah (may peace be upon him) had said: 'Abdullah b. Qais or al-Ash'ari has been gifted with a sweet melodious voice out of the voices of the family of David. - -**#9** — forty 19 · score: 0.6066 -> Indeed, in poetry there is wisdom and in eloquence there is magic. - -**#10** — forty 25 · score: 0.6059 ->

Also on the authority of Abu Dharr (may Allah be pleased with him): Some people from amongst the Companions of the Messenger of Allah (peace and blessings of Allah be upon him) said to the Prophet (peace and blessings of Allah be upon him), "O Messenger of Allah, the affluent have made off with the rewards; they pray as we pray, they fast as we fast, and they give [much] in charity by virtue of their wealth." He (peace and blessings of Allah be upon him) said, "Has not Allah made things for you to give in charity? Truly every tasbeehah [saying: 'subhan-Allah'] is a charity, and every… - - -### nomic — 150 total hits - -**#1** — muslim 2114 · score: 0.8074 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. - -**#2** — mishkat 3153 · score: 0.8052 -> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it. - -**#3** — tirmidhi 3728 · score: 0.7873 -> Narrated Anas bin Malik: "The advent of the Prophet (SAW) was on Monday and 'Ali performed Salat on Tuesday." - -**#4** — muslim 892 a · score: 0.7864 ->

'A'isha reported: Abu Bakr came to see me and I had two girls with me from among the girls of the Ansar and they were singing what the Ansar recited to one another at the Battle of Bu'ath. They were not, however, singing girls. Upon this Abu Bakr said: What I (the playing of) this wind instrument of Satan in the house of the Messenger of Allah (may peace be upon him) and this too on 'Id day? Upon this the Messenger of Allah (may peace be upon him) said: Abu Bakr, every people have a festival and it is our festival (so let them play on). - -**#5** — tirmidhi 3734 · score: 0.7863 -> Narrated Ibn 'Abbas: "The first to perform Salat was 'Ali." - -**#6** — nasai 342 · score: 0.7859 -> It was narrated that Ibn 'Umar said: "Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH)." - -**#7** — bukhari 952 · score: 0.7855 ->

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said protestingly, "Musical instruments of Satan in the house of Allah's Apostle !" It happened on the `Id day and Allah's Apostle said, "O Abu Bakr! There is an `Id for every nation and this is our `Id." - -**#8** — nasai 71 · score: 0.7854 -> It was narrated that Ibn 'Umar said: "Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH)." - -**#9** — bukhari 1621 · score: 0.7853 ->

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf of the Ka`ba tied with a string or something else. So the Prophet cut that string. - -**#10** — ibnmajah 1898 · score: 0.7842 -> It was narrated that 'Aishah said: “Abu Bakr entered upon me, and there were two girls from the Ansar with me, singing about the Day of Bu'ath.” She said: “And they were not really singers. Abu Bakr said: 'The wind instruments of Satan in the house of the Prophet ?' That was on the day of 'Eid(Al-Fitr). But the Prophet said: 'O Abu Bakr, every people has its festival and this is our festival.' ” - - -### mxbai — 150 total hits - -**#1** — muslim 892 b · score: 0.7705 ->

This hadith has been narrated by Hisham with the same chain of transmitters, but there the words are:" Two girls were playing upon a tambourine." - -**#2** — muslim 819 a · score: 0.7603 ->

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached seven modes (of recitation). Ibn Shibab said: It has reached me that these seven styles are essentially one, not differing about what is permitted and what is forbidden. - -**#3** — tirmidhi 2780b · score: 0.7596 -> Another chain with a similar narration - -**#4** — tirmidhi 2783b · score: 0.7578 -> (Another chain) with a similar narration - -**#5** — tirmidhi 1599 · score: 0.7559 -> Another chain with similar narration. - -**#6** — mishkat 2214 · score: 0.752 -> Ibn ‘Abbās reported God’s messenger as saying, “Gabriel taught me to recite in one mode, and when I replied to him and kept asking him to give me more he did so till he reached seven modes." Ibn Shihāb said he had heard that those seven modes are essentially one, not differing about what is permitted and what is prohibited. (Bukhārī and Muslim.) - -**#7** — mishkat 3153 · score: 0.7513 -> Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it. - -**#8** — hisn 94 · score: 0.7495 -> Subḥānallāhi wa biḥamdih: `adada khalqih, wa riḍā nafsih, wa zinata `arshih, wa midāda kalimātih. Glory is to Allah and praise is to Him, by the multitude of His creation, by His Pleasure, by the weight of His Throne, and by the extent of His Words. (Recite three times in Arabic upon rising in the morning.) Reference: Muslim 4/2090. - -**#9** — abudawud 942 · score: 0.7494 -> ‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. - -**#10** — hisn 181 · score: 0.7488 -> Alhamdu lillāhi ḥamdan kathīran tayyiban mubārakan fīh, ghayra makfiyyin wa lā muwadda`in, wa lā mustaghnan `anhu Rabbanā. All praise is to Allah, praise in abundance, good and blessed. It cannot [be compensated for, nor can it] be left, nor can it be done without, our Lord. Reference: Al-Bukhari 6/214, At-Tirmidhi 5/507. - - ---- - -## Query: "actions are by intentions" - -### lexical — 844 total hits - -**#1** — forty 33 · score: 16.884 -> Actions are through intentions. - -**#2** — muslim 1907 a · score: 15.5908 ->

It has been narrated on the authority of Umar b. al-Khattab that the Messenger of Allah (may peace be upon him) said: (The value of) an action depends on the intention behind it. A man will be rewarded only for what he intended. The emigration of one who emigrates for the sake of Allah and His Messenger (may peace be upon him) is for the sake of Allah and His Messenger (may peace be upon him) ; and the emigration of one who emigrates for gaining a worldly advantage or for marrying a woman is for what he has emigrated. - -**#3** — bukhari 26 · score: 15.5359 ->

Narrated Abu Huraira:

Allah's Apostle was asked, "What is the best deed?" He replied, "To believe in Allah and His Apostle (Muhammad). The questioner then asked, "What is the next (in goodness)? He replied, "To participate in Jihad (religious fighting) in Allah's Cause." The questioner again asked, "What is the next (in goodness)?" He replied, "To perform Hajj (Pilgrim age to Mecca) 'Mubrur, (which is accepted by Allah and is performed with the intention of seeking Allah's pleasure only and not to show off and without committing a sin and in accordance with the traditions of the… - -**#4** — bukhari 2641 · score: 15.0604 ->

Narrated `Umar bin Al-Khattab:

People were (sometimes) judged by the revealing of a Divine Inspiration during the lifetime of Allah's Apostle but now there is no longer any more (new revelation). Now we judge you by the deeds you practice publicly, so we will trust and favor the one who does good deeds in front of us, and we will not call him to account about what he is really doing in secret, for Allah will judge him for that; but we will not trust or believe the one who presents to us with an evil deed even if he claims that his intentions were good. - -**#5** — nasai 3437 · score: 14.9857 -> It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: "Actions are but by intentions, and each man will have but that which he intended. Whoever emigrated for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and whoever emigrated for the sake of some worldly gain or to marry some woman, his emigration was for that for which he emigrated." - -**#6** — nasai 3794 · score: 14.9857 -> It was narrated from 'Umar bin Al-Khattab that the Prophet said: "Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated." - -**#7** — riyadussalihin 11 · score: 14.6416 -> 'Abdullah bin 'Abbas (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said that Allah, the Glorious, said: "Verily, Allah (SWT) has ordered that the good and the bad deeds be written down. Then He explained it clearly how (to write): He who intends to do a good deed but he does not do it, then Allah records it for him as a full good deed, but if he carries out his intention, then Allah the Exalted, writes it down for him as from ten to seven hundred folds, and even more. But if he intends to do an evil act and has not done it, then Allah writes it down with Him as a full… - -**#8** — nasai 75 · score: 14.5584 -> It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: "The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended." - -**#9** — abudawud 2201 · score: 14.4857 -> ‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His Apostle, his emigration is to Allaah and His Apostle but his emigration is to a worldly end at which he aims or to a woman whom he marries , his emigration is to that for which he emigrated. - -**#10** — bukhari 1558 · score: 14.0708 ->

Narrated Anas bin Malik:

`Ali came to the Prophet (p.b.u.h) from Yemen (to Mecca). The Prophet asked `Ali, "With what intention have you assumed Ihram?" `Ali replied, "I have assumed Ihram with the same intention as that of the Prophet." The Prophet said, "If I had not the Hadi with me I would have finished the Ihram." Muhammad bin Bakr narrated extra from Ibn Juraij, "The Prophet said to `Ali, "With what intention have you assumed the Ihram, O `Ali?" He replied, "With the same (intention) as that of the Prophet." The Prophet said, "Have a Hadi and keep your Ihram as it is." - - -### openai-small-en — 150 total hits - -**#1** — forty 33 · score: 0.9241 -> Actions are through intentions. - -**#2** — nasai 75 · score: 0.7223 -> It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: "The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended." - -**#3** — nasai 3794 · score: 0.7109 -> It was narrated from 'Umar bin Al-Khattab that the Prophet said: "Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated." - -**#4** — ibnmajah 4229 · score: 0.7081 -> It was narrated from Abu Hurairah that the Messenger of Allah (saw) said: “People will be resurrected (and judged) according to their intentions.” - -**#5** — ahmad 168 · score: 0.7077 -> Umar said: I heard the Messenger of Allah ﷺ say: `Deeds are but by intentions and each man will have but that which he intended. If a man's migration was for the sake of Allah, then his migration was for that for which he migrated, but if his migration was to achieve some worldly aim or to take some woman in marriage, his migration was for that for which he migrated.` - -**#6** — abudawud 2201 · score: 0.6958 -> ‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His Apostle, his emigration is to Allaah and His Apostle but his emigration is to a worldly end at which he aims or to a woman whom he marries , his emigration is to that for which he emigrated. - -**#7** — nasai 3437 · score: 0.6949 -> It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: "Actions are but by intentions, and each man will have but that which he intended. Whoever emigrated for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and whoever emigrated for the sake of some worldly gain or to marry some woman, his emigration was for that for which he emigrated." - -**#8** — tirmidhi 1647 · score: 0.6894 -> Narrated 'Umar bin Al-Khattab:

That the Messenger of Allah (saws) said: "Deeds are but with intentions, and for the man is only what he intended. So one whose emigration was to Allah and His Messenger, then his emigration was to Allah and His Messenger. And one whose emigration was to the world, to attain some of it, or woman, to marry her, then his emigration was to what he emigrated.

[Abu 'Eisa said:] This Hadith is Hasan Sahih. Malik bin Anas, Sufyan Ath-Thawri and more than one of the A'immah narrated this Hadith from Yahya bin Sa'eed. And we do not know of it except as a… - -**#9** — muslim 130 · score: 0.6872 ->

It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him) observed: He who intended to do good, but did not do it, one good was recorded for him, and he who intended to do good and also did it, ten to seven hundred good deeds were recorded for him. And he who intended evil, but did not commit it, no entry was made against his name, but if he committed that, it was recorded. - -**#10** — ibnmajah 4230 · score: 0.6857 -> It was narrated from Jabir that the Messenger of Allah (saw) said: “People will be gathered (on the Day of Resurrection) according to their intentions.” - - -### nomic — 150 total hits - -**#1** — bukhari 6607 · score: 0.826 ->

Narrated Sahl bin Sa`d:

There was a man who fought most bravely of all the Muslims on behalf of the Muslims in a battle (Ghazwa) in the company of the Prophet. The Prophet looked at him and said. "If anyone would like to see a man from the people of the Fire, let him look at this (brave man)." On that, a man from the People (Muslims) followed him, and he was in that state i.e., fighting fiercely against the pagans till he was wounded, and then he hastened to end his life by placing his sword between his breasts (and pressed it with great force) till it came out between his shoulders.… - -**#2** — abudawud 1368 · score: 0.8197 -> Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he would do it continuously. - -**#3** — ahmad 184 · score: 0.8165 -> It was narrated that Yahya bin Ya'mar and Humaid bin ‘Abdur­-Rahman al­-Himyari said: We met 'Abdullah bin 'Umar and discussed the divine decree (al qadar) and what others said concerning it. He said: When you go back to them, say; Ibn ‘Umar has nothing to do with you and you have nothing to do with him - three times. Then he said: ‘Umar bin al Khattab رضي الله عنه ­­ told me that whilst they were sitting with the Prophet ﷺ ­, a man came to him walking, with a handsome face and hair, wearing white clothes. The people looked at one another (as if to say): We do not know this man and he does… - -**#4** — bukhari 1559 · score: 0.8164 ->

Narrated Abu Musa:

The Prophet sent me to some people in Yemen and when I returned, I found him at Al-Batha. He asked me, "With what intention have you assumed Ihram (i.e. for Hajj or for Umra or for both?") I replied, "I have assumed Ihram with an intention like that of the Prophet." He asked, "Have you a Hadi with you?" I replied in the negative. He ordered me to perform Tawaf round the Ka`ba and between Safa and Marwa and then to finish my Ihram. I did so and went to a woman from my tribe who combed my hair or washed my head. Then, when `Umar came (i.e. became Caliph) he said, "If… - -**#5** — mishkat 3444 · score: 0.8156 -> ‘Imran b. Husain told that he heard God’s Messenger say, “Vows are of two kinds, so if anyone vows to do an act of obedience, that is for God and must be fulfilled; but if anyone vows, to do an act of disobedience, that is for the devil and must not be fulfilled, but he must make atonement for it to the extent he would do in the case of an oath.” - -**#6** — bulugh 918 · score: 0.8098 -> Narrated [Ibn 'Abbas (RA)]: Allah's Messenger (SAW) said, "There should neither be harming (of others without cause), nor reciprocating harm (between two parties)." [Reported by Ahmad and Ibn Majah]. - -**#7** — ibnmajah 2120 · score: 0.8093 -> It was narrated from Abu Hurairah that the Messenger of Allah (SAW) said: "The oath is only according to the intention of the one who requests the oath to be taken."' - -**#8** — bukhari 7551 · score: 0.8077 ->

Narrated `Imran:

I said, "O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, "Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.' - -**#9** — adab 490 · score: 0.8071 -> Abu Dharr reported that the Prophet, may Allah bless him and grant him peace, reported that Allah, the Blessed and Exalted, said: "My slaves! I have forbidden injustice for Myself and I have made it forbidden among you, so do not wrong one another. "My slaves! You err by night and day and I forgive wrong actions and do not care. Ask me for forgiveness and I will forgive you. "My slaves! All of you are hungry unless I have fed you, so ask Me to feed you, and I will feed you. All of you are naked unless I have clothed you, so ask Me to clothe you and I will clothe you. "My slaves! If all of… - -**#10** — tirmidhi 2007 · score: 0.807 -> Hudhaifah narrated that the Messenger of Allah said: “Do not be a people without a will of your own, saying: 'If people treat us well, we will treat them well; and if they do wrong, we will do wrong,' but accustom yourselves to do good if people do good, and do not behave unjustly if they do evil.” - - -### mxbai — 150 total hits - -**#1** — forty 33 · score: 0.988 -> Actions are through intentions. - -**#2** — forty 5 · score: 0.864 -> The person guiding (someone) to do a good deed, is like the one performing the good deed. - -**#3** — forty 18 · score: 0.8358 -> The felicitous person takes lessons from (the actions of) others. - -**#4** — abudawud 1368 · score: 0.8291 -> Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he would do it continuously. - -**#5** — nasai 3794 · score: 0.8226 -> It was narrated from 'Umar bin Al-Khattab that the Prophet said: "Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated." - -**#6** — nasai 75 · score: 0.8221 -> It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: "The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended." - -**#7** — muslim 2648 b · score: 0.8211 ->

This hadith has been transmitted on the authority of Jabir b. Abdullah with the same wording (and includes these words):" Allah's Messenger (may peace be upon him) said: Every doer of deed is facilitated in his action." - -**#8** — bukhari 7551 · score: 0.8187 ->

Narrated `Imran:

I said, "O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, "Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.' - -**#9** — forty 1 · score: 0.8183 ->

It is narrated on the authority of Amirul Mu'minin, Abu Hafs 'Umar bin al-Khattab (ra) who said: I heard the Messenger of Allah (saws) say: "Actions are (judged) by motives (niyyah), so each man will have what he intended. Thus, he whose migration (hijrah) was to Allah and His Messenger, his migration is to Allah and His Messenger; but he whose migration was for some worldly thing he might gain, or for a wife he might marry, his migration is to that for which he migrated." [Bukhari & Muslim]

- -**#10** — nasai 4484 · score: 0.8169 -> It was narrated from Ibn 'Umar that: a man told the Messenger of Allah that he was always being cheated. The Messenger of Allah said to him: "When you make a deal, say: There is no intention of cheating" So, whenever the man engages in a deal he says, 'There is no intention of cheating." "(Sahih ) - - ---- - -## Query: "ramadan" - -### lexical — 728 total hits - -**#1** — bukhari 2022 · score: 13.9314 ->

Narrated Ibn `Abbas:

Allah's Apostle said, "The Night of Qadr is in the last ten nights of the month (Ramadan), either on the first nine or in the last (remaining) seven nights (of Ramadan)." Ibn `Abbas added, "Search for it on the twenty-fourth (of Ramadan). - -**#2** — bukhari 2020 · score: 13.8321 ->

Narrated `Aisha:

Allah's Apostle used to practice I`tikaf in the last ten nights of Ramadan and used to say, "Look for the Night of Qadr in the last ten nights of the month of Ramadan." - -**#3** — bukhari 4502 · score: 13.8321 ->

Narrated `Aisha:

The people used to fast on the day of 'Ashura' before fasting in Ramadan was prescribed but when (the order of compulsory fasting in) Ramadan was revealed, it was up to one to fast on it (i.e. 'Ashura') or not. - -**#4** — bukhari 6991 · score: 13.8321 ->

Narrated Ibn `Umar:

Some people were shown the Night of Qadr as being in the last seven days (of the month of Ramadan). The Prophet said, "Seek it in the last seven days (of Ramadan). - -**#5** — bukhari 2008 · score: 13.7905 ->

Narrated Abu Huraira:

I heard Allah's Apostle saying regarding Ramadan, "Whoever prayed at night in it (the month of Ramadan) out of sincere Faith and hoping for a reward from Allah, then all his previous sins will be forgiven." - -**#6** — bukhari 2021 · score: 13.774 ->

Narrated Ibn `Abbas:

The Prophet said, "Look for the Night of Qadr in the last ten nights of Ramadan ,' on the night when nine or seven or five nights remain out of the last ten nights of Ramadan (i.e. 21, 23, 25, respectively). - -**#7** — bukhari 1900 · score: 13.7329 ->

Narrated Ibn `Umar:

I heard Allah's Apostle saying, "When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting; and if the sky is overcast (and you can't see it) then regard the month of Ramadan as of 30 days." - -**#8** — bukhari 1906 · score: 13.7084 ->

Narrated `Abdullah bin `Umar:

Allah's Apostle mentioned Ramadan and said, "Do not fast unless you see the crescent (of Ramadan), and do not give up fasting till you see the crescent (of Shawwal), but if the sky is overcast (if you cannot see it), then act on estimation (i.e. count Sha'ban as 30 days). - -**#9** — bukhari 3554 · score: 13.7084 ->

Narrated Ibn `Abbas:

The Prophet was the most generous of all the people, and he used to become more generous in Ramadan when Gabriel met him. Gabriel used to meet him every night during Ramadan to revise the Qur'an with him. Allah's Apostle then used to be more generous than the fast wind. - -**#10** — bukhari 4503 · score: 13.6841 ->

Narrated `Abdullah:

That Al-Ash'ath entered upon him while he was eating. Al-Ash'ath said, "Today is 'Ashura." I said (to him), "Fasting had been observed (on such a day) before (the order of compulsory fasting in) Ramadan was revealed. But when (the order of fasting in) Ramadan was revealed, fasting (on 'Ashura') was given up, so come and eat." - - -### openai-small-en — 150 total hits - -**#1** — mishkat 1962 · score: 0.7704 -> Abu Huraira reported God’s messenger as saying, “Ramadan, a blessed month, has come to you during which God has made it obligatory for you to fast. In it the gates of heaven are opened, the gates of al-Jahim are locked, and the rebellious devils are chained. In it God has a night which is better than a thousand months. He who is deprived of its good has indeed suffered deprivation." Ahmad and Nasa’i transmitted it. - -**#2** — muslim 1081 a · score: 0.7665 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days. - -**#3** — muslim 1079 c · score: 0.7643 ->

This hadith is reported by Abu Huraira (with a slight alteration of words) that the Messenger of Allah (may peace be upon him) said:" When (the month of) Ramadan begins." - -**#4** — riyadussalihin 1194 · score: 0.7628 -> 'Aishah (May Allah be pleased with her) reported: The Messenger of Allah (PBUH) used to strive more in worship during Ramadan than he strove in any other time of the year; and he would devote himself more (in the worship of Allah) in the last ten nights of Ramadan than he strove in earlier part of the month.

[Muslim].

- -**#5** — muslim 1163 a · score: 0.7614 ->

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night. - -**#6** — muslim 1145 b · score: 0.7592 ->

Salama b. Akwa' reported: We, during the lifetime of the Messenger of Allah (may peace be upon him), in one month of Ramadan (observed fast according to our liking). He who wished to fast lasted and he who wished to break broke it and fed a needy person as an expiation 1544 till this verse was revealed:" He who witnesses among you the month (of Ramadan) he should observe fast during it" (ii. 184). - -**#7** — muslim 1080 b · score: 0.7579 ->

Ibn Umar reported that Allah's Messenger (may peace be upon him) made a mention of Ramadan and he with the gesture of his hand said: The month is thus and thus. (He then withdrew his thumb at the third time). He then said: Fast when you see it, and break your fast when you see it, and if the weather is cloudy calculate it (the months of Sha'ban and Shawwal) as thirty days. - -**#8** — muslim 1080 e · score: 0.7564 ->

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and if the sky is cloudy for you, then calculate. - -**#9** — abudawud 2429 · score: 0.7543 -> Narrated Abu Hurairah: The Messenger of Allah (saws) as saying: The most excellent fast after Ramadan is Allah's month al-Muharram, and the most excellent prayer after the prescribed prayer is the prayer during night. - -**#10** — ibnmajah 3925 · score: 0.7539 -> It was narrated from Talhah bin ‘Ubaidullah that two men from Bali came to the Messenger of Allah (saw). They had become Muslim together, but one of them used to strive harder than the other. The one who used to strive harder went out to fight and was martyred. The other one stayed for a year longer, then he passed away. Talhah said: “I saw in a dream that I was at the gate of Paradise and I saw them (those two men). Someone came out of Paradise and admitted the one who had died last, then he came out and admitted the one who had been martyred. Then he came back to me and said: ‘Go back, for… - - -### nomic — 150 total hits - -**#1** — muslim 1157 a · score: 0.8212 ->

Ibn Abbas (Allah be pleased with both of them) reported: The Messenger of Allah (may peace be upon him) did not fast throughout any month except during ramadan. And when he observed fast (he fasted so continuously) that one would say that he would not break (them) and when he Abandoned, he abandoned (so continuously) that one would say: By Allah, perhaps he would never fast. - -**#2** — bulugh 163 · score: 0.819 -> Narrated Abu Sa'id al-Khudri (RA): I heard Allah's Messenger (SAW) saying: "No Salat (prayer) is to be offered after the morning prayer until the sun rises, or after the afternoon prayer until the sun sets." [Agreed upon]. - -**#3** — abudawud 1611 · score: 0.8174 -> Ibn ‘Umar said : The Messenger of Allah(may peace be upon him) prescribed as zakat payable by slave and freeman, male and female, among the muslims on closing the fast of Ramadan one sa of dried dates or one sa’ of barley. (This tradition was read out byu ‘Abd Allah b. Maslamah to Malik) - -**#4** — ahmad 163 · score: 0.813 -> Abu ‘Ubaid said: I was present at Eid with ‘Umar, and he started with the prayer before the khutbah. He said: The Messenger of Allah ﷺ forbade fasting on these two days. The day of al-Fitr is the day when you break your fast, and on the day of al-Adha, eat the meat of your sacrifices. - -**#5** — malik 629 · score: 0.8107 ->

Yahya related to me from Malik from Nafi from Abdullah ibn Umar that the Messenger of Allah, may Allah bless him and grant him peace, made the zakat of breaking the fast at the end of Ramadan obligatory on every muslim, whether freeman or slave, male or female, and stipulated it as a sa' of dates or a sa' of barley.

- -**#6** — abudawud 1357 · score: 0.8107 -> Narrated Ibn 'Abbas: I spent a night in the house of my maternal aunt Maimunah, daughter of al-Harith. The Prophet (saws) offered the night prayer. He then came and prayed four rak'ahs and slept. He then stood up and prayed. I stood at his left side. He made me go round and made me stand at his right side. He then prayed five rak'ahs and slept, and I heard his snoring. He then got up and prayed two rak'ahs. Afterwards he came out and offered the dawn prayer. - -**#7** — mishkat 2048 · score: 0.8106 -> Abu Sa'id al-Khudri said God’s messenger forbade fasting on the day of breaking the fast of Ramadan and on the day of sacrifice. (Bukhari and Muslim.) - -**#8** — muslim 979 a · score: 0.81 ->

Abu Sa'id al-Khudri reported Allah's Messenger (way peace be upon him) as saying: No sadaqa (zakat) is payable on less than five wasqs of (dates or grains), on less than five camel-heads and on less than five uqiyas (of silver). - -**#9** — malik · score: 0.8099 ->

Malik said, "There is no harm in someone who is in itikaf entering into a marriage contract as long as there is no physical relationship. A woman in itikaf may also be betrothed as long as there is no physical relationship. What is haram for someone in itikaf in relation to his womenfolk during the day is haram for him during the night."

Yahya said that Ziyad said that Malik said, "It is not halal for a man to have intercourse with his wife while he is in itikaf, nor for him to take pleasure in her by kissing her, or whatever. However, I have not heard anyone disapproving of a… - -**#10** — muslim 1167 a · score: 0.8096 ->

Abu Sa'id al-Khudri (Allah be pleased with him) reported that Allah's Messenger (may peace be upon him) spent in devotion (in i'tikaf) the middle ten nights of the month of Ramadan, and when twenty nights were over and it was the twenty-first night, he went back to his residence and those who were along with him also returned (to their respective residences). He spent one month in devotion. Then he addressed the people on the night he came back (to his residence) and commanded them as Allah desired (him to command) and then said: I used to devote myself (observe i'tikaf) during these ten… - - -### mxbai — 150 total hits - -**#1** — muslim 1080 e · score: 0.8869 ->

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and if the sky is cloudy for you, then calculate. - -**#2** — muslim 1080 f · score: 0.882 ->

'Abdullah b. 'Umar (Allah be pleased with both of them) reported Allah's Messenger (may peace be upon him) as saying: The month (of Ramadan) may consist of twenty nine days; so when you see the new moon observe fast and when you see (the new moon again at the commencement of the month of Shawwal) then break It, and if the sky is cloudy for you, then calculate it (and complete thirty days). - -**#3** — muslim 1163 a · score: 0.8815 ->

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night. - -**#4** — bukhari 1900 · score: 0.8801 ->

Narrated Ibn `Umar:

I heard Allah's Apostle saying, "When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting; and if the sky is overcast (and you can't see it) then regard the month of Ramadan as of 30 days." - -**#5** — mishkat 2047 · score: 0.8797 -> Abu Ayyub al-Ansari told that God’s messenger said, “If anyone fasts during Ramadan, then follows it with six days in Shawwal, it will be like a perpetual fast.” Muslim transmitted it. - -**#6** — mishkat 1817 · score: 0.8785 -> Ibn 'Abbas said, “At the end of Ramadan bring forth the sadaqa relating to your fast. God's messenger prescribed this sadaqa as a sa' of dried dates or barley, or half a sa' of wheat payable by every free¬man or slave, male or female, young or old." Abu Dawud and Nasa’i transmitted it. - -**#7** — riyadussalihin 1167 · score: 0.8784 -> Abu Hurairah (May Allah be pleased with him) reported: The Messenger of Allah (PBUH) said, "The best month for observing Saum (fasting) after Ramadan is Muharram, and the best Salat after the prescribed Salat is Salat at night."

[Muslim].

- -**#8** — muslim 1116 a · score: 0.8783 ->

Abu Sa'id al-Khudri (Allah be pleased with him) reported: We went out on an expedition with Allah's Messenger (may peace be upon him) on the 16th of Ramadan. Some of us fasted and some of us broke the fast. But neither the observer of the fast found fault with one who broke it, nor the breaker of the fast found fault with one who observed it. - -**#9** — muslim 1081 a · score: 0.878 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days. - -**#10** — riyadussalihin 1225 · score: 0.876 -> Ibn 'Abbas (May Allah be pleased with them) reported: The Messenger of Allah (PBUH) said, "Do not observe Saum (fasting) before the advent of Ramadan. Observe Saum at sighting of the crescent of Ramadan and terminate it at sighting the crescent (of Shawwal). If the sky is overcast, complete (the month as) thirty (days)."

[At- Tirmidhi].

- - ---- - -## Query: "jesus" - -### lexical — 468 total hits - -**#1** — bukhari 5731 · score: 14.4796 ->

Narrated Abu Huraira:

Allah's Apostle said, "Neither Messiah (Ad-Dajjal) nor plague will enter Medina." - -**#2** — bukhari 3444 · score: 14.4156 ->

Narrated Abu Huraira:

The Prophet said, "Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus said, 'I believe in Allah and suspect my eyes." - -**#3** — bukhari 3438 · score: 14.4027 ->

Narrated Ibn `Abbas:

The Prophet said, "I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of brown complexion, straight hair and tall stature as if he was from the people of Az-Zutt." - -**#4** — bukhari 3948 · score: 14.2731 ->

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. - -**#5** — muslim 2368 · score: 14.2555 ->

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person committing theft; thereupon Jesus said to him: You committed theft. He said: Nay. By Him besides Whom there is no god (I have not committed theft). Thereupon Jesus said: I affirm my faith in Allah It is my ownself that deceived me. - -**#6** — muslim 2365 b · score: 14.2286 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to one religion and no Prophet was raised between me and Jesus. - -**#7** — bukhari 1882 · score: 14.0567 ->

Narrated Abu Sa`id Al-Khudri:

Allah's Apostle told us a long narrative about Ad-Dajjal, and among the many things he mentioned, was his saying, "Ad-Dajjal will come and it will be forbidden for him to pass through the entrances of Medina. He will land in some of the salty barren areas (outside) Medina; on that day the best man or one of the best men will come up to him and say, 'I testify that you are the same Dajjal whose description was given to us by Allah's Apostle .' Ad-Dajjal will say to the people, 'If I kill this man and bring him back to life again, will you doubt my claim?'… - -**#8** — bukhari 7132 · score: 14.0567 ->

Narrated Abu Sa`id:

One day Allah's Apostle narrated to us a long narration about Ad-Dajjal and among the things he narrated to us, was: "Ad-Dajjal will come, and he will be forbidden to enter the mountain passes of Medina. He will encamp in one of the salt areas neighboring Medina and there will appear to him a man who will be the best or one of the best of the people. He will say 'I testify that you are Ad-Dajjal whose story Allah's Apostle has told us.' Ad-Dajjal will say (to his audience), 'Look, if I kill this man and then give him life, will you have any doubt about my claim?'… - -**#9** — bukhari 3449 · score: 14.0057 ->

Narrated Abu Huraira:

Allah's Apostle said "How will you be when the son of Mary (i.e. Jesus) descends amongst you and your imam is among you." - -**#10** — muslim 1677 b · score: 13.9986 ->

This hadith has been narrated on the authority of Jarir and 'Isa b. Yunus with a slight variation of words. - - -### openai-small-en — 150 total hits - -**#1** — bukhari 3444 · score: 0.6949 ->

Narrated Abu Huraira:

The Prophet said, "Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus said, 'I believe in Allah and suspect my eyes." - -**#2** — muslim 2937 a · score: 0.6918 ->

An-Nawwas b. Sam`an reported that Allah's Messenger (may peace be upon him) made a mention of the Dajjal one day in the morning. He (saws) sometimes described him to be insignificant and sometimes described (his turmoil) as very significant (and we felt) as if he were in the cluster of the date-palm trees. When we went to him (to the Holy Prophet) in the evening and he read (the signs of fear) in our faces, he (saws) said: What is the matter with you? We said: Allah's Messenger, you made a mention of the Dajjal in the morning (sometimes describing him) to be insignificant and sometimes… - -**#3** — mishkat 5716 · score: 0.6859 -> Abu Huraira reported God's messenger as saying, "On the night when I was taken up to heaven, I met Moses who may be described as a lanky man with somewhat curly hair who resembled one of the men of Shanu'a; I met Jesus who was of medium height and red as though he had come out of a dimas (i.e., a hot bath); and I saw Abraham to whom I am the one among his descendants who bears the closest resemblance. I was brought two vessels, one containing milk and the other wine, and was told to take whichever oi them I wished. I took the milk and drank it and was told I had been guided to the true… - -**#4** — bukhari 3448 · score: 0.6841 ->

Narrated Abu Huraira:

Allah's Apostle said, "By Him in Whose Hands my soul is, surely (Jesus,) the son of Mary will soon descend amongst you and will judge mankind justly (as a Just Ruler); he will break the Cross and kill the pigs and there will be no Jizya (i.e. taxation taken from non Muslims). Money will be in abundance so that nobody will accept it, and a single prostration to Allah (in prayer) will be better than the whole world and whatever is in it." Abu Huraira added "If you wish, you can recite (this verse of the Holy Book): -- 'And there is none Of the people of the… - -**#5** — muslim 2897 · score: 0.6785 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The Last Hour would not come until the Romans would land at al-A'maq or in Dabiq. An army consisting of the best (soldiers) of the people of the earth at that time will come from Medina (to counteract them). When they will arrange themselves in ranks, the Romans would say: Do not stand between us and those (Muslims) who took prisoners from amongst us. Let us fight with them; and the Muslims would say: Nay, by Allah, we would never get aside from you and from our brethren that you may fight them. They will then fight… - -**#6** — muslim 2365 c · score: 0.6774 ->

Abu Huraira reported many ahadith from Allah's Messenger (may peace be upon him) and one is that Allah's Messenger (may peace be upon him) said: I am most close to Jesus, son of Mary, among the whole of mankind in this worldly life and the next life. They said: Allah's Messenger how is it? Thereupon he said: Prophets are brothers in faith, having different mothers. Their religion is, however, one and there is no Apostle between us (between I and Jesus Christ). - -**#7** — muslim 2365 b · score: 0.6765 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to one religion and no Prophet was raised between me and Jesus. - -**#8** — abudawud 4324 · score: 0.6757 ->

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down from his head though it will not be wet. He will fight the people for the cause of Islam. He will break the cross, kill swine, and abolish jizyah. Allah will perish all religions except Islam. He will destroy the Antichrist and will live on the earth for forty years and then he will die. The… - -**#9** — mishkat 2288 · score: 0.6753 -> Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the Mighty, the Overpowering, the Great in Majesty, the Creator, the Maker, the Fashioner, the Forgiver, the Dominant, the Bestower, the Provider, the Decider, the Knower, the Withholder, the Plentiful Giver, the Abaser, the Exalter, the Honourer, the Humiliator, the Hearer, the Seer, the Judge, the… - -**#10** — mishkat 5608 · score: 0.6739 -> Hudhaifa and Abu Huraira reported God's messenger as saying, "God who is blessed and exalted will collect mankind and the believers will stand till paradise is brought near them. They will then go to Adam and say, `Ask, father, that paradise may be opened for us,' but he will reply, `Has anything but your father's sin put you out of paradise? I am not the one to do that; go to my son Abraham, God's friend.' Then Abraham will say, `I am not the one to do that, for I was only a friend long, long ago; but apply to Moses to whom God spoke.' They will then go to Moses, but he will say, `I am not… - - -### nomic — 150 total hits - -**#1** — mishkat 1214 · score: 0.7989 -> ‘A’isha told how God’s Messenger said when he awoke during the night, “There is no god but Thee. Glory be to Thee, O God, and praise be to Thee. I ask for Thy forgiveness of my sin, and I ask for Thy mercy. O God, increase me in knowledge, and do not let my heart swerve after Thou hast guided me. Grant me mercy from Thyself. Thou art indeed the munificent One.” Abu Dawud transmitted it. - -**#2** — bukhari 1209 · score: 0.7957 ->

Narrated Aisha:

I used to stretch my legs towards the Qibla of the Prophet while he was praying; whenever he prostrated he touched me, and I would withdraw my legs, and whenever he stood up, I would restretch my legs. - -**#3** — bukhari 3392 · score: 0.7952 ->

Narrated `Aisha:

The Prophet returned to Khadija while his heart was beating rapidly. She took him to Waraqa bin Naufal who was a Christian convert and used to read the Gospels in Arabic Waraqa asked (the Prophet), "What do you see?" When he told him, Waraqa said, "That is the same angel whom Allah sent to the Prophet) Moses. Should I live till you receive the Divine Message, I will support you strongly." - -**#4** — muslim 196 c · score: 0.792 ->

Anas b. Malik said: The Apostle of Allah (may peace be upon him) said: I would be the first intercessor in the Paradise and no apostle amongst the apostles has been testified (by such a large number of people) as I have been testified. And verily there woald be an apostle among the apostles who would be testified to by only one man from his people. - -**#5** — muslim 201 · score: 0.7917 ->

Abu Zubair heard Jabir b. Abdullah reporting it from the Apostle of Allah (may peace be upon him): For every apostle was a prayer with which he prayed (to his Lord) for his Ummah, but I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection. - -**#6** — bukhari 516 · score: 0.7907 ->

Narrated Abu Qatada Al-Ansari:

Allah's Apostle was praying and he was carrying Umama the daughters of Zainab, the daughter of Allah's Apostle and she was the daughter of 'As bin Rabi`a bin `Abd Shams. When he prostrated, he put her down and when he stood, he carried her (on his neck). - -**#7** — bulugh 226 · score: 0.7903 -> Narrated Abu Qatada (RA): Allah's Messenger (SAW) was (one time) offering prayer while he was carrying Umama, daughter of Zainab, when he prostrated he put her down and when he stood up he lifted her up. [Agreed upon]. - -**#8** — mishkat 936 · score: 0.7895 -> Ruwaih' reported God’s Messenger as saying, “If anyone invokes a blessing on Muhammad saying, ‘O God, cause him to occupy the place near Thee on the day of resurrection’, he will be guaranteed my intercession.” Ahmad transmitted it. - -**#9** — mishkat 5572 · score: 0.7893 -> Anas reported the Prophet as saying, "The believers will be restrained on the day of resurrection so that they will be concerned about that and express a desire to find an intercessor with their Lord that He may relieve them from the position in which they are placed. They will go to Adam and say, `You are Adam, the father of mankind, whom God created by His hand, whom He caused to dwell in His garden, to whom He made the angels do obeisance, and whom He taught the names of everything. Intercede for us with your Lord so that He may relieve us from this position in which we are placed.' But… - -**#10** — muslim 200 a · score: 0.789 ->

Anas b. Malik reported: Verily the Apostle of Allah (may peace be upon him) said: There is for every apostle a prayer with which he prays (to Allah) for his Ummah. I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection. - - -### mxbai — 150 total hits - -**#1** — abudawud 4324 · score: 0.826 ->

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down from his head though it will not be wet. He will fight the people for the cause of Islam. He will break the cross, kill swine, and abolish jizyah. Allah will perish all religions except Islam. He will destroy the Antichrist and will live on the earth for forty years and then he will die. The… - -**#2** — mishkat 2288 · score: 0.8246 -> Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the Mighty, the Overpowering, the Great in Majesty, the Creator, the Maker, the Fashioner, the Forgiver, the Dominant, the Bestower, the Provider, the Decider, the Knower, the Withholder, the Plentiful Giver, the Abaser, the Exalter, the Honourer, the Humiliator, the Hearer, the Seer, the Judge, the… - -**#3** — bukhari 3438 · score: 0.8234 ->

Narrated Ibn `Abbas:

The Prophet said, "I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of brown complexion, straight hair and tall stature as if he was from the people of Az-Zutt." - -**#4** — muslim 194 a · score: 0.8198 ->

Abu Huraira reported: Meat was one day brought to the Messenger of Allah (may peace be upon him) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of it and said: I shall be the leader of mankind on the Day of Resurrection. Do you know why? Allah would gather in one plain the earlier and the later (of the human race) on the Day of Resurrection. Then the voice of the proclaimer would be heard by all of them and the eyesight would penetrate through all of them and the sun would come near. People would then experience a degree of anguish, anxiety… - -**#5** — riyadussalihin 1866 · score: 0.8194 -> Abu Huraira reported: Meat was one day brought to the Messenger of Allah (ﷺ) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of it and said: I shall be the leader of mankind on the Day of Resurrection. Do you know why? Allah would gather in one plain the earlier and the later (of the human race) on the Day of Resurrection. Then the voice of the proclaimer would be heard by all of them and the eyesight would penetrate through all of them and the sun would come near. People would then experience a degree of anguish, anxiety and agony which they… - -**#6** — mishkat 1897 · score: 0.8186 -> ‘A’isha reported God’s messenger as saying, “Everyone of the children of Adam has been created with three hundred and sixty joints, so he who declares God’s greatness, praises God, declares that He is the only God, glorifies God, asks forgiveness of God, removes a stone, a thorn, or a bone from people’s path, enjoins what is reputable, or forbids what is objectionable to the number of those three hundred and sixty, will walk that day having removed himself from hell.” Muslim transmitted it. - -**#7** — abudawud 4641 · score: 0.8183 -> ‘Awf said: I heard al-Hajjaj addressing the people say: The similitude of ‘Uthman with Allah is like the similitude of Jesus son of Mary. He then recited the following verse and explained it: “Behold! Allah said: O Jesus! I will take thee and raise thee to Myself and clear thee (of the falsehood) of those who blaspheme.” He was making a sign with his hand to us and to the people of Syria. - -**#8** — muslim 2368 · score: 0.8175 ->

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person committing theft; thereupon Jesus said to him: You committed theft. He said: Nay. By Him besides Whom there is no god (I have not committed theft). Thereupon Jesus said: I affirm my faith in Allah It is my ownself that deceived me. - -**#9** — bukhari 7510 · score: 0.8169 ->

Narrated Ma`bad bin Hilal Al-`Anzi:

We, i.e., some people from Basra gathered and went to Anas bin Malik, and we went in company with Thabit Al-Bunnani so that he might ask him about the Hadith of Intercession on our behalf. Behold, Anas was in his palace, and our arrival coincided with his Duha prayer. We asked permission to enter and he admitted us while he was sitting on his bed. We said to Thabit, "Do not ask him about anything else first but the Hadith of Intercession." He said, "O Abu Hamza! There are your brethren from Basra coming to ask you about the Hadith of Intercession."… - -**#10** — bukhari 3441 · score: 0.816 ->

Narrated Salim from his father:

No, By Allah, the Prophet did not tell that Jesus was of red complexion but said, "While I was asleep circumambulating the Ka`ba (in my dream), suddenly I saw a man of brown complexion and lank hair walking between two men, and water was dropping from his head. I asked, 'Who is this?' The people said, 'He is the son of Mary.' Then I looked behind and I saw a red-complexioned, fat, curly-haired man, blind in the right eye which looked like a bulging out grape. I asked, 'Who is this?' They replied, 'He is Ad-Dajjal.' The one who resembled to him among the… - - ---- - -## Query: "sex" - -### lexical — 5 total hits - -**#1** — bukhari 7379 · score: 15.8248 ->

Narrated Ibn `Umar:

The Prophet said, "The keys of the unseen are five and none knows them but Allah: (1) None knows (the sex) what is in the womb, but Allah: (2) None knows what will happen tomorrow, but Allah; (3) None knows when it will rain, but Allah; (4) None knows where he will die, but Allah (knows that); (5) and none knows when the Hour will be established, but Allah." - -**#2** — ibnmajah 4045 · score: 12.553 -> It was narrated that Anas bin Malik said: “Shall I not tell you a Hadith that I heard from the Messenger of Allah (saw), which no one will tell you after me? I heard it from him (saying): ‘Among the portents of the Hour are that knowledge will be taken away and ignorance will prevail, illegal sex will become widespread and wine will be drunk, and men will disappear and women will be left, until there is one man in charge of fifty women.” - -**#3** — muslim 1453 c · score: 12.3963 ->

Ibn Abu Mulaika reported that al-Qasim b. Muhammad b. Abu Bakr had narrated to him that 'A'isha (Allah be pleased with her) reported that Sahla bint Suhail b. 'Amr came to Allah's Apostle (may peace be upon him) and said: Messenger of Allah, Salim (the freed slave of Abu Hudhaifa) is living with us in our house, and he has attained (puberty) as men attain it and has acquired knowledge (of the sex problems) as men acquire, whereupon he said: Suckle him so that he may become unlawful (in regard to marriage) for you He (Ibn Abu Mulaika) said: I refrained from (narrating this hadith) for a… - -**#4** — ibnmajah 2694 · score: 12.2945 -> Mu'adh bin Jabal, Abu Ubaidah bin Jararah, Ubadah bin Samit and Shaddad bin Aws narrated that the Messenger of Allah (SAW) said: “If a woman kills someone deliberately, she should not be killed until she delivers what is in her womb, if she is pregnant, and until the child's sponsorship is guaranteed. And if a woman commits illegal sex, she should not be stoned until she delivers what is in her womb and until her child's sponsorship is guaranteed.” - -**#5** — ibnmajah 2574 · score: 11.0722 -> It was narrated that Sa'eed bin Sa'd bin `Ubadah said: “There was a man living among our dwellings who had a physical defect, and to our astonishment he was seen with one of the slave women of the dwellings, committing illegal sex with her. Sa'd bin 'Ubadah referred his case to the Messenger of Allah (SAW), who said: 'Give him one hundred lashes.' They said: 'O Prophet (SAW) of Allah (SAW), he is too weak to bear that. If we give him one hundred lashes he will die.' He said: “Then take a branch with a hundred twigs and hit him once.”

Another chain reports a similar hadith. - - -### openai-small-en — 150 total hits - -**#1** — bukhari 1545 · score: 0.6616 ->

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they may leave the scent on the skin. And so in the early morning, the Prophet mounted his Mount while in Dhul-Hulaifa and set out till they reached Baida', where he and his companions recited Talbiya, and then they did the ceremony of Taqlid (which means to put the colored garlands around the necks of the… - -**#2** — malik 1824 · score: 0.6498 ->

Malik related to me from Zayd ibn Aslam from Ata ibn Yasar that the Messenger of Allah, may Allah bless him and grant him peace, said, "Whomever Allah protects from the evil of two things will enter the Garden." A man said, "Messenger of Allah, do not tell us!" The Messenger of Allah, may Allah bless him and grant him peace, was silent. Then the Messenger of Allah, may Allah bless him and grant him peace, repeated what he had said the first time. The man said to him, "Do not tell us, Messenger of Allah!" The Messenger of Allah, may Allah bless him and grant him peace, was silent. Then the… - -**#3** — bulugh 1012 · score: 0.6451 -> Sa'id (bin Mansur) also reported something similar from 'Ali (RA) and added: "And (if) she has something like a horn (Qarn) (coming out of her vagina), her husband then has the right to divorce her or keep her. And if he had intercourse with her, she gets her dowry for the intercourse her husband has had." - -**#4** — mishkat 3190 · score: 0.6449 -> Abu Sa'id al-Khudri reported God's Messenger as saying, “The most serious breach of trust in God’s sight on the day of resurrection ...” A version has, “Among those who will have the worst position in God’s sight on the day of resurrection is the man who has intercourse with his wife, and she with him, and then spreads her secret.”* * i.e. talks about the subject to others, or tells people about defects or beauties he has found in her. Muslim transmitted it. - -**#5** — mishkat 3341 · score: 0.6443 -> Ibn ‘Umar said that when a girl with whom intercourse might be had was given as a present, or sold, or set free, it was necessary to wait till she had had a menstrual period, but that this was unnecessary in the case of a virgin. Razin transmitted. - -**#6** — muslim 1435 a · score: 0.6418 ->

Jabir (Allah be pleased with him) declared that the Jews used to say: When a man has intercourse with his wife through the vagina but being on her back. the child will have squint, so the verse came down:" Your wives are your tilth; go then unto your tilth as you may desire" (ii. 223) - -**#7** — mishkat 86 · score: 0.6409 -> Abu Huraira reported God's messenger as saying, “God has decreed for man his portion of fornication which he will inevitably commit. The fornication of the eye consists in looking, and of the tongue in speech. The soul wishes and desires, and the private parts accord with that or reject it.” (Bukhari and Muslim.) In a version by Muslim he said, “Man’s share of fornication which he will inevitably commit is decreed for him. The fornication of the eyes consists in looking, of the ears in hearing, of the tongue in speech, of the hand in violence, and of the foot in walking. The heart lusts and… - -**#8** — malik 1135 · score: 0.6395 ->

Yahya related to me from Malik from Ibn Shihab, and he had heard from al-Qasim ibn Muhammad that they said, "When a free man marries a slave-girl and consummates the marriage, she makes him muhsan."

Malik said, "All (of the people of knowledge) I have seen said that a slave-girl makes a free man muhsan when he marries her and consummates the marriage."

Malik said, "A slave makes a free woman muhsana when he consummates a marriage with her and a free woman only makes a slave muhsan when he is freed and he is her husband and has had sexual relations with her after he has… - -**#9** — muslim 1438 a · score: 0.6379 ->

Abu Sirma said to Abu Sa'id al Khadri (Allah he pleased with him): 0 Abu Sa'id, did you hear Allah's Messenger (may peace be upon him) mentioning al-'azl? He said: Yes, and added: We went out with Allah's Messenger (may peace be upon him) on the expedition to the Bi'l-Mustaliq and took captive some excellent Arab women; and we desired them, for we were suffering from the absence of our wives, (but at the same time) we also desired ransom for them. So we decided to have sexual intercourse with them but by observing 'azl (Withdrawing the male sexual organ before emission of semen to avoid-… - -**#10** — bukhari 6818 · score: 0.6361 ->

Narrated Abu Huraira:

The Prophet said, "The boy is for (the owner of) the bed and the stone is for the person who commits illegal sexual intercourse.' - - -### nomic — 150 total hits - -**#1** — mishkat 3143 · score: 0.8485 -> ‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful." (Bukhari and Muslim.) - -**#2** — muslim 348 a · score: 0.8351 ->

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words. - -**#3** — bulugh 995 · score: 0.8327 -> Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, "The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)." [Agreed upon]. - -**#4** — bulugh 119 · score: 0.8325 -> Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through the roots of the hair. Then he would pour three handfuls on his head, then pour water over the rest of his body and subsequently wash his feet. [Agreed upon and this version is of Muslim] - -**#5** — bulugh 110 · score: 0.8277 -> Narrated Abu Huraira (rad): Allah’s Messenger (saw) said that, “If one of you sits between her legs (of a woman) and penetrates her, Ghusl (bath) is obligatory.” [Agreed upon]. - -**#6** — muslim 1418 · score: 0.8261 ->

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word" condition" ) it is" conditions". - -**#7** — abudawud 265 · score: 0.826 -> Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given) - -**#8** — muslim 346 b · score: 0.8254 ->

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution. - -**#9** — bulugh 117 · score: 0.8218 -> Narrated Abu Sa’id Al-Khudri (rad): Allah’s Messenger (saw) said, “If one of you has sexual intercourse with his wife and wishes to repeat he should perform ablution between them” [Reported by Muslim]. - -**#10** — muslim 321 c · score: 0.8205 ->

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. - - -### mxbai — 150 total hits - -**#1** — bulugh 117 · score: 0.8391 -> A-Hakim added: “Ablution makes one active for repeating (the sexual act).” - -**#2** — muslim 321 c · score: 0.8145 ->

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. - -**#3** — muslim 348 a · score: 0.8112 ->

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words. - -**#4** — bukhari 1545 · score: 0.8087 ->

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they may leave the scent on the skin. And so in the early morning, the Prophet mounted his Mount while in Dhul-Hulaifa and set out till they reached Baida', where he and his companions recited Talbiya, and then they did the ceremony of Taqlid (which means to put the colored garlands around the necks of the… - -**#5** — mishkat 3143 · score: 0.8082 -> ‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful." (Bukhari and Muslim.) - -**#6** — abudawud 265 · score: 0.8081 -> Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given) - -**#7** — mishkat 330 · score: 0.8072 -> Ibn ‘Umar used to say, “A man’s kiss to his wife and his touching her with his hand are connected with sexual intercourse, and anyone who kisses his wife or touches her with his hand must perform ablution.” Malik and Shafi‘i transmitted it. - -**#8** — muslim 1418 · score: 0.8048 ->

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word" condition" ) it is" conditions". - -**#9** — bukhari 293 · score: 0.804 ->

Narrated Ubai bin Ka`b:

I asked Allah's Apostle about a man who engages in sexual intercourse with his wife but does not discharge. He replied, "He should wash the parts which comes in contact with the private parts of the woman, perform ablution and then pray." (Abu `Abdullah said, "Taking a bath is safer and is the last order.") - -**#10** — muslim 346 b · score: 0.8031 ->

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution. - - ---- - -## Query: "marriage" - -### lexical — 1454 total hits - -**#1** — bukhari 6968 · score: 19.7524 ->

Narrated Abu Huraira:

The Prophet said, "A virgin should not be married till she is asked for her consent; and the matron should not be married till she is asked whether she agrees to marry or not." It was asked, "O Allah's Apostle! How will she (the virgin) express her consent?" He said, "By keeping silent." Some people said that if a virgin is not asked for her consent and she is not married, and then a man, by playing a trick presents two false witnesses that he has married her with her consent and the judge confirms his marriage as a true one, and the husband knows that the… - -**#2** — bukhari 6970 · score: 19.6176 ->

Narrated Abu Haraira:

Allah's Apostle said, "A lady slave should not be given in marriage until she is consulted, and a virgin should not be given in marriage until her permission is granted." The people said, "How will she express her permission?" The Prophet said, "By keeping silent (when asked her consent)." Some people said, "If a man, by playing a trick, presents two false witnesses before the judge to testify that he has married a matron with her consent and the judge confirms his marriage, and the husband is sure that he has never married her (before), then such a marriage will… - -**#3** — bukhari 5138 · score: 19.6031 ->

Narrated Khansa bint Khidam Al-Ansariya:

that her father gave her in marriage when she was a matron and she disliked that marriage. So she went to Allah's Apostle and he declared that marriage invalid. - -**#4** — bukhari 6961 · score: 19.5531 ->

Narrated Muhammad bin `Ali:

`Ali was told that Ibn `Abbas did not see any harm in the Mut'a marriage. `Ali said, "Allah's Apostle forbade the Mut'a marriage on the Day of the battle of Khaibar and he forbade the eating of donkey's meat." Some people said, "If one, by a tricky way, marries temporarily, his marriage is illegal." Others said, "The marriage is valid but its condition is illegal." - -**#5** — bukhari 6945 · score: 19.4861 ->

Narrated Khansa' bint Khidam Al-Ansariya:

That her father gave her in marriage when she was a matron and she disliked that marriage. So she came and (complained) to the Prophets and he declared that marriage invalid. (See Hadith No. 69, Vol. 7) - -**#6** — bukhari 1837 · score: 19.3925 ->

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held). - -**#7** — bukhari 5148 · score: 19.2407 ->

Narrated Anas:

`Abdur Rahman bin `Auf married a woman and gave her gold equal to the weight of a date stone (as Mahr). When the Prophet noticed the signs of cheerfulness of the marriage (on his face) and asked him about it, he said, "I have married a woman and gave (her) gold equal to a date stone in weight (as Mahr). - -**#8** — muslim 1406 j · score: 19.2056 ->

This hadith has been narrated on the authority of Rabi' b. Sabra that Allah's Messenger (may peace be upon him) forbade to contract temporary marriage with women at the time of Victory, and that his father had contracted the marriage for two red cloaks. - -**#9** — bukhari 5109 · score: 19.132 ->

Narrated Abu Huraira:

Allah's Apostle said, "A woman and her paternal aunt should not be married to the same man; and similarly, a woman and her maternal aunt should not be married to the same man." - -**#10** — bukhari 4258 · score: 19.132 ->

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of lhram but he consummated that marriage after finishing that state. Maimuna died at Saraf (i.e. a place near Mecca). - - -### openai-small-en — 150 total hits - -**#1** — ibnmajah 1847 · score: 0.7042 -> It was narrated from Ibn Abbas that: the Messenger of Allah said: “There is nothing like marriage, for two who love one another.” - -**#2** — abudawud 2272 · score: 0.7 -> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till It became apparent that she was pregnant from the man who had intercourse with her. When it was… - -**#3** — bukhari 5127 · score: 0.6987 -> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. "Send for so-and-so and have sexual intercourse with him." Her husband would then keep away from her and would never sleep with her till she… - -**#4** — malik · score: 0.6956 ->

Yahya said that he heard Malik say, "The way of doing things in our community about which there is no dispute, is that if a man gives sadaqa to his son - sadaqa which the son takes possession of or which is in the father's keeping and the father has had his sadaqa witnessed, he cannot take back any of it because he cannot reclaim any sadaqa."

Yahya said that he heard Malik say, "The generally agreed-on way of doing things in our community in the case of someone who gives his son a gift or grants him a gift which is not sadaqa is that he can take it back as long as the child does… - -**#5** — abudawud 2130 · score: 0.689 ->

Narrated AbuHurayrah:

When the Prophet (saws) congratulated a man on his marriage, he said: May Allah bless for you, and may He bless on you, and combine both of you in good (works).

- -**#6** — tirmidhi 1101 · score: 0.6872 -> Abu Musa narrated that : the Messenger of Allah said: "There is no marriage except with a Wali." - -**#7** — ibnmajah 1846 · score: 0.687 -> It was narrated from Aishah that: the Messenger of Allah said: “Marriage is part of my sunnah, and whoever does not follow my sunnah has nothing to do with me. Get married, for I will boast of your great numbers before the nations. Whoever has the means, let him get married, and whoever does not, then he should fast for it will diminish his desire.” - -**#8** — mishkat 3093 · score: 0.6862 -> Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted. - -**#9** — muslim 1405 d · score: 0.6861 ->

Jabir b. 'Abdullah reported: We contracted temporary marriage giving a handful of (tales or flour as a dower during the lifetime of Allah's Messenger (may peace be upon him) and durnig the time of Abu Bakr until 'Umar forbade it in the case of 'Amr b. Huraith. - -**#10** — bukhari 5150 · score: 0.6859 ->

Narrated Sahl bin Sa`d:

The Prophet said to a man, "Marry, even with (a Mahr equal to) an iron ring." - - -### nomic — 150 total hits - -**#1** — bulugh 993 · score: 0.8659 -> Narrated Ibn 'Abbas (RA): The Prophet (SAW) married Maimunah (RA) when he was in the state of Ihram (during pilgrimage). [Agreed upon]. - -**#2** — mishkat 2682 · score: 0.8642 -> Ibn ‘Abbas said that the Prophet married Maimuna when he was on pilgrimage. Bukhari and Muslim. - -**#3** — bukhari 1837 · score: 0.8626 ->

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held). - -**#4** — bukhari 5114 · score: 0.8606 ->

Narrated Ibn `Abbas:

The Prophet got married while he was in the state of Ihram. - -**#5** — mishkat 3093 · score: 0.8564 -> Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted. - -**#6** — abudawud 2272 · score: 0.8557 -> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till It became apparent that she was pregnant from the man who had intercourse with her. When it was… - -**#7** — bukhari 5127 · score: 0.8551 -> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. "Send for so-and-so and have sexual intercourse with him." Her husband would then keep away from her and would never sleep with her till she… - -**#8** — bukhari 5261 · score: 0.8543 ->

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, "No, she cannot marry the first husband unless the second husband consummates his marriage with her, just as the first husband had done." - -**#9** — ibnmajah 1991 · score: 0.8543 -> It was narrated from 'Abdul-Malik bin Harith bin Hisham, from his father, that: the Prophet married Umm Salamah in Shawwal, and consummated the marriage with her in Shawwal. - -**#10** — abudawud 2047 · score: 0.8542 -> Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).” - - -### mxbai — 150 total hits - -**#1** — forty 21 · score: 0.8446 -> A man will be with whom he loves. - -**#2** — abudawud 2047 · score: 0.8333 -> Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).” - -**#3** — bulugh 967 · score: 0.8322 -> Narrated 'Abdullah bin Mas'ud (RA): Allah's Messenger (SAW) said to us, "O young men, those of you who can support a wife should marry, for it (marriage) controls the gaze and preserves one from immorality. And whoever cannot (marry) should fast, for it is a means of reducing the sexual desire." [Agreed upon]. - -**#4** — bukhari 2721 · score: 0.831 ->

Narrated `Uqba bin Amir:

Allah's Apostle said, "From among all the conditions which you have to fulfill, the conditions which make it legal for you to have sexual relations (i.e. the marriage contract) have the greatest right to be fulfilled." - -**#5** — bulugh 1127 · score: 0.829 -> Narrated 'Aishah (RA): Allah's Messenger (SAW) said, "One or two sucks do not make (marriage) unlawful." [Muslim reported it]. - -**#6** — bukhari 5090 · score: 0.8282 ->

Narrated Abu Huraira:

The Prophet said, "A woman is married for four things, i.e., her wealth, her family status, her beauty and her religion. So you should marry the religious woman (otherwise) you will be a losers. - -**#7** — bulugh 995 · score: 0.8278 -> Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, "The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)." [Agreed upon]. - -**#8** — bukhari 5119 · score: 0.8278 -> Salama bin Al-Akwa` said: Allah's Apostle's said, "If a man and a woman agree (to marry temporarily), their marriage should last for three nights, and if they like to continue, they can do so; and if they want to separate, they can do so." I do not know whether that was only for us or for all the people in general. Abu `Abdullah (Al-Bukhari) said: `Ali made it clear that the Prophet said, "The Mut'a marriage has been cancelled (made unlawful). - -**#9** — tirmidhi 1084 · score: 0.8271 -> Abu Hurairah narrated that: The Messenger of Allah said: "When someone whose religion and character you are pleased with proposes to (someone under the care) of one of you, then marry to him. If you do not do so, then there will be turmoil (Fitnah) in the land and abounding discord (Fasad)." - -**#10** — bulugh 1034 · score: 0.827 -> It is a portion of the long Hadith preceding in the beginning of the Book of Marriage. - - ---- - -## Query: "masturbation" - -### lexical — 0 total hits - - -### openai-small-en — 150 total hits - -**#1** — muslim 348 a · score: 0.6782 ->

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words. - -**#2** — ibnmajah 480 · score: 0.6765 -> It was narrated that Jabir bin 'Abdullah said: "The Messenger of Allah said: 'If anyone of you touches his penis, then he has to perform ablution.'" - -**#3** — abudawud 206 · score: 0.6758 -> ‘Ali said: My prostatic fluid flowed excessively. I used to take a bath until my back cracked (because of frequent washing). I mentioned it to the prophet (May peace be upon him), or the fact was mentioned to him (by someone else). The Messenger of Allah (May peace be upon him) said; Do not do so. When you find prostatic fluid, wash your penis and perform ablution as you do for your prayer, but when you have seminal emission, you should take a bath. - -**#4** — muslim 346 b · score: 0.6745 ->

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution. - -**#5** — bulugh 72 · score: 0.6735 -> Narrated Talq bin ‘Ali (rad): A man said: “I touched my penis” or he said, “Does a man who touch his penis during the prayer should perform Wudu (ablution)?” The Prophet (saw) replied, “No, it is only a part of your body”. [Reported by Al-Khamsa. Ibn Hibban graded it Sahih (sound). - -**#6** — abudawud 211 · score: 0.6727 ->

Narrated Abdullah ibn Sa'd al-Ansari:

I asked the Messenger of Allah (saws) as to what makes it necessary to take a bath and about the (prostatic) fluid that flows after taking a bath. He replied: that is called madhi (prostatic fluid). It flows from every male. You should wash your private parts and testicles because of it and perform ablution as you do for prayer.

- -**#7** — ibnmajah 479 · score: 0.6695 -> It was narrated that Busrah bint Safwan said: "The Messenger of Allah said: 'If anyone of you touches his penis, let him perform ablution.'" - -**#8** — tirmidhi 82 · score: 0.669 -> Busrah bint Safwan narrated that : the Prophet said: "Whoever touches his penis, then he is not to pray until he performs Wudu" - -**#9** — muslim 303 c · score: 0.6684 ->

Ibn 'Abbas reported it from 'Ali: We sent al-Miqdad b. al-Aswad to the Messenger of Allah (may peace be upon him) to ask him what must be done about prostatic fluid which flows from (the private part of) a person. The Messenger of Allah (may peace be upon him) said: Perform ablution and wash your sexual organ. - -**#10** — bukhari 260 · score: 0.6677 ->

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his feet. - - -### nomic — 150 total hits - -**#1** — bulugh 119 · score: 0.8129 -> Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through the roots of the hair. Then he would pour three handfuls on his head, then pour water over the rest of his body and subsequently wash his feet. [Agreed upon and this version is of Muslim] - -**#2** — bukhari 464 · score: 0.8127 ->

Narrated Um Salama:

I complained to Allah's Apostle that I was sick. He told me to perform the Tawaf behind the people while riding. So I did so and Allah's Apostle was praying beside the Ka`ba and reciting the Sura starting with "Wat-tur wa kitabin mastur." - -**#3** — ahmad 847 · score: 0.8107 -> It was narrated that ‘Ali (رضي الله عنه) said: I was a man who emitted a great deal of madhi. I asked the Prophet (ﷺ) and he said: “If you ejaculate, then do ghusl for janabah, and if you do not ejaculate, then do not do ghusl.” - -**#4** — bulugh 111 · score: 0.8105 -> Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon] - -**#5** — bukhari 260 · score: 0.8079 ->

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his feet. - -**#6** — muslim 316 d · score: 0.807 ->

'Urwa has narrated it on the authority of 'A'isha that when Allah's Messenger (may peace be upon him) took a bath because of sexual intercourse, he first washed his hands before dipping one of them into the basin, and then performed ablu- tion as is done for prayer. - -**#7** — mishkat 340 · score: 0.8065 -> Abu Qatada reported God’s messenger as saying, "When one of you drinks he must not breathe into the vessel, and when he goes to relieve himself he must not touch his penis with his right hand, or wipe himself with his right hand.” (Bukhari and Muslim.) - -**#8** — bukhari 258 · score: 0.8061 ->

Narrated `Aisha:

Whenever the Prophet took the bath of Janaba (sexual relation or wet dream) he asked for the Hilab or some other scent. He used to take it in his hand, rub it first over the right side of his head and then over the left and then rub the middle of his head with both hands. - -**#9** — nasai 387 · score: 0.8043 -> It was narrated that 'Aishah said: "The Prophet (PBUH) would put his head out while he was performing I'tikaf and I would wash it, while I was menstruating." - -**#10** — muslim 346 b · score: 0.804 ->

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution. - - -### mxbai — 150 total hits - -**#1** — bulugh 117 · score: 0.8507 -> A-Hakim added: “Ablution makes one active for repeating (the sexual act).” - -**#2** — bulugh 64 · score: 0.82 -> Narrated ‘Umar (rad), in a Mawquf (untraceable) and Anas in a Marfu (traceable) Hadith: “If one of you performs ablution and puts on his two leather socks, let him perform Mash (wipe) over them and pray in them and he may not take them off he so wishes except after ejaculation or sexual impurity. [Reported by Ad-Daraqutni and Al-Hakim and graded Sahih (sound) by him]. - -**#3** — bulugh 110 · score: 0.8168 -> And Muslim added: “Even if he does not ejaculate”. - -**#4** — bulugh 73 · score: 0.8162 -> Narrated Busra bint Safwan (rad): Allah’s Messenger (saw) said, “He who touches his penis should perform ablution”. [Reported by Al-Khamsa, and At-Tirmidhi and Ibn Hibban graded it Sahih (sound). - -**#5** — bulugh 28 · score: 0.8143 -> In yet another version of Muslim: Verily! I (‘Aisha) used to scrape it (the semen) off his garment with my nails while it was dry. - -**#6** — mishkat 287 · score: 0.8135 -> ‘Uthman performed ablution, pouring water over his hands three times, then rinsing his mouth and snuffing up water, then washing his face three times, then washing his right arm up to the elbow three times, then washing his left arm up to the elbow three times, then wiping his head, then washing his right foot three times, then the left three times. He then said, “I have seen God’s messenger performing ablution as I have done it just now,” adding, “If anyone performs ablution as I have done, then prays two rak'as* without allowing his thoughts to be distracted, his past offences will… - -**#7** — bulugh 111 · score: 0.8128 -> Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon] - -**#8** — bulugh 109 · score: 0.812 -> Narrated Abu Sa’id Al-Khudri (rad): Allah’s Mesenger (saw) said: “The water (of the ghusl) is due to the water (of sexual emission)”. [Reported by Muslim] - -**#9** — tirmidhi 3415 · score: 0.8118 -> Maslamah bin `Amr said: “`Umair bin Hani used to perform a thousand prostrations every day and recite a hundred thousand Tasbīḥs every day.” - -**#10** — shamail 32 · score: 0.8108 -> A’isha said: “I used to comb the hair of Allah’s Messenger (Allah bless him and give him peace) while I was menstruating.” - - ---- - -## Query: "racism" - -### lexical — 0 total hits - - -### openai-small-en — 150 total hits - -**#1** — ahmad 614 · score: 0.6237 -> It was narrated that `Ali (رضي الله عنه)said: The Messenger of Allah (ﷺ) said: “No one hates the Arabs except a hypocrite.” - -**#2** — ibnmajah 69 · score: 0.6207 -> It was narrated that 'Abdullah said: "The Messenger of Allah (SAW) said: 'Verbally abusing a Muslim is immorality and fighting him is Kufr (disbelief).'" - -**#3** — malik 1831 · score: 0.6196 ->

Malik related to me that he heard that Abdullah ibn Masud used to say, "The slave continues to lie and a black spot grows in his heart until all his heart becomes black. Then he is written, in Allah's sight, among the liars."

- -**#4** — abudawud 4877 · score: 0.6188 ->

Narrated AbuHurayrah:

The Prophet (saws) said: The gravest sin is going to lengths in talking unjustly against a Muslim's honour, and it is a major sin to abuse twice for abusing once.

- -**#5** — malik 1600 · score: 0.6177 ->

Yahya said that Malik said, "The way of doing things in our community about which there is no dispute is that women do not swear in the swearing for the intentional act. If the murdered man only has female relatives, the women have no right to swear for blood and no pardon in murder."

Yahya said that Malik said about a man who is murdered, "If the paternal relatives of the murdered man or his mawali say, 'We swear and we demand our companion's blood,' that is their right."

Malik said, "If the women want to pardon him, they cannot do that. The paternal relatives and… - -**#6** — ahmad 467 · score: 0.6177 -> It was narrated that Rabah said: My masters married me to a Roman slave girl of theirs and she bore me a black boy. Then she fell in love with a Roman slave whose name was Yuhannas, and he spoke to her in their language. Then she got pregnant. She had borne me a child who was black like me, then she gave birth to a boy who looked like a lizard (i.e., was very fair). I said to her: What is this? She said: He is the child of Yuhannas. I asked Yuhannas and he admitted it, I went to ‘Uthman bin ‘Affan (رضي الله عنه) and told him about that. He sent for them and asked them, then he said: I will… - -**#7** — malik 1521 · score: 0.6169 ->

Malik related to me from Hisham ibn Urwa that his father said that there was only one hadd against a man who slandered a group of people.

Malik said, "If they are on separate occasions there is still only one hadd against him."

Malik related to me from Abu'r-Rijal Muhammad ibn Abd ar-Rahman ibn Haritha ibn an-Numan al- Ansari, then from the Banu'n-Najar from his mother Amra bint Abd ar- Rahman that two men cursed each other in the time of Umar ibn al- Khattab. One of them said to the other, " By Allah, my father is not an adulterer and my mother is not an adulteress."… - -**#8** — riyadussalihin 338 · score: 0.6141 -> 'Abdullah bin 'Amr bin Al-'as (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said, "It is one of the gravest sins to abuse one's parents." It was asked (by the people): "O Messenger of Allah, can a man abuse his own parents?" Messenger of Allah (PBUH) said, "He abuses the father of somebody who, in return, abuses the former's father; he then abuses the mother of somebody who, in return, abuses his mother".

[Al-Bukhari and Muslim].

Another narration is: Messenger of Allah (PBUH) said, "One of the major sins is to curse one's parents". It was… - -**#9** — mishkat 3311 · score: 0.614 -> He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there was a dusky one among them, and was told that there were some. He asked how he thought that had come about, and was told that it was a strain to which they had reverted. Then saying that this was perhaps a strain to which the child had reverted, he did not permit him to disown him. (Bukhari and… - -**#10** — nasai 4105 · score: 0.6118 -> It was narrated that 'Abdullah said: "Defaming a Muslim is evildoing and fighting him is Kufr." (Sahih Mawquf) - - -### nomic — 150 total hits - -**#1** — bukhari 6847 · score: 0.7889 ->

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, "My wife has delivered a black child." The Prophet said to him, "Have you camels?" He replied, "Yes." The Prophet said, "What color are they?" He replied, "They are red." The Prophet further asked, "Are any of them gray in color?" He replied, "Yes." The Prophet asked him, "Whence did that grayness come?" He said, "I thing it descended from the camel's ancestors." Then the Prophet said (to him), "Therefore, this child of yours has most probably inherited the color from his ancestors." - -**#2** — bukhari 5305 · score: 0.7871 ->

Narrated Abu Huraira:

A man came to the Prophet and said, "O Allah's Apostle! A black child has been born for me." The Prophet asked him, "Have you got camels?" The man said, "Yes." The Prophet asked him, "What color are they?" The man replied, "Red." The Prophet said, "Is there a grey one among them?' The man replied, "Yes." The Prophet said, "Whence comes that?" He said, "May be it is because of heredity." The Prophet said, "May be your latest son has this color because of heredity." - -**#3** — bukhari 7314 · score: 0.7846 ->

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, "My wife has delivered a black boy, and I suspect that he is not my child." Allah's Apostle said to him, "Have you got camels?" The bedouin said, "Yes." The Prophet said, "What color are they?" The bedouin said, "They are red." The Prophet said, "Are any of them Grey?" He said, "There are Grey ones among them." The Prophet said, "Whence do you think this color came to them?" The bedouin said, "O Allah's Apostle! It resulted from hereditary disposition." The Prophet said, "And this (i.e., your child) has inherited his… - -**#4** — nasai 1594 · score: 0.7836 -> It was narrated that 'Aishah said: "The black people came and played in front of the Prophet (SAW) on the day of 'Eid. He called me and I watched them from over his shoulder, and I continued to watch them until I was the one who moved away." - -**#5** — abudawud 2253 · score: 0.7781 -> ‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep silence in anger. I swear by Allaah, I shall ask the Apostle of Allaah(saws) about it”. On the next day he came to the Apostle of Allaah(saws) and said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps… - -**#6** — ibnmajah 2003 · score: 0.7776 -> It was narrated from Ibn 'Umar that: a man frorn the desert people came to the Prophet and said: "O Messenger of Allah, my wife has given birth on my bed to a black boy, and there are no black people among my family." He said: "Do you have camels?" He said: "Yes." He said: "What color are they?" He said: "Red." He said: are there any black ones among them?" He said, "No." He said: "Are there any grey ones among them?" He said- "Yes." He said "How is that?" He said: "Perhaps it is hereditary." He said: "Perhaps (the color of) this son of yours is also hereditary." - -**#7** — abudawud 2260 · score: 0.7772 -> Abu Hurairah said A man from Banu Fazarah came to the Prophet (saws) and said “My wife has given birth to a black son”. He said “Have you any camels?” He said “They are red”. He asked “Is there a dusky one among them?” He replied “Some of them are dusky”. He asked “How do you think they have come about?” He replied “This may be a strain to which they reverted”. He said “And this is perhaps a strain to which the child has reverted.” - -**#8** — bulugh 1102 · score: 0.7765 -> Narrated Abu Hurairah (RA): A man said, "O Allah's Messenger, my wife has given birth to a black son." He asked, "Have you any camels?" He replied, "Yes." He asked, "What is their color?" He replied, "They are red." He asked, "Is there a dusky (dark) one among them?" He replied, "Yes." He asked, "How has that come about?" He replied, "It is perhaps a strain to which it has reverted (i.e. heredity)." He said, "It is perhaps a strain to which this son of yours has reverted." [Agreed upon]. - -**#9** — nasai 3479 · score: 0.7759 -> It was narrated that Abu Hurairah said: "A man from Banu Fazarah came to the Prophet and said: 'My wife has given birth to a black boy' -and he wanted to disown him. He said: 'Do you have camels?' He said: 'Yes.' He said: 'What color are they?' He said: 'Red.' He said: 'Are there any gray ones among them?' He said: 'There are some gray camels among them.' He said: 'Why is that do you think?' He said: 'Perhaps it is hereditary.' He said: 'Perhaps this is hereditary.' And he did not permit him to disown him." - -**#10** — mishkat 3311 · score: 0.7753 -> He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there was a dusky one among them, and was told that there were some. He asked how he thought that had come about, and was told that it was a strain to which they had reverted. Then saying that this was perhaps a strain to which the child had reverted, he did not permit him to disown him. (Bukhari and… - - -### mxbai — 150 total hits - -**#1** — mishkat 4327 · score: 0.7839 -> ‘Abdallah b. ‘Amr b. al-‘As told that when God's messenger saw him wearing two garments dyed with saffron he said, “These are the garments worn by infidels ; do not wear them.” A version says that when he suggested washing them he replied, “No, burn them.” Muslim transmitted it. - -**#2** — abudawud 2253 · score: 0.7826 -> ‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep silence in anger. I swear by Allaah, I shall ask the Apostle of Allaah(saws) about it”. On the next day he came to the Apostle of Allaah(saws) and said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps… - -**#3** — bulugh 1518 · score: 0.7821 -> 'A’ishah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “The most despicable amongst people in the sight of Allah is the ruthless argumentative (person).” Related by Muslim. - -**#4** — bukhari 30 · score: 0.7805 ->

Narrated Al-Ma'rur:

At Ar-Rabadha I met Abu Dhar who was wearing a cloak, and his slave, too, was wearing a similar one. I asked about the reason for it. He replied, "I abused a person by calling his mother with bad names." The Prophet said to me, 'O Abu Dhar! Did you abuse him by calling his mother with bad names You still have some characteristics of ignorance. Your slaves are your brothers and Allah has put them under your command. So whoever has a brother under his command should feed him of what he eats and dress him of what he wears. Do not ask them (slaves) to do things beyond… - -**#5** — mishkat 3688 · score: 0.7792 -> ‘A’idh b. ‘Amr told that he heard God’s Messenger say, “The worst shepherds are those who are ungentle.” Muslim transmitted it. - -**#6** — bukhari 5940 · score: 0.7787 ->

Narrated Ibn `Umar:

The Prophet has cursed the lady who lengthens her hair artificially and the one who gets her hair lengthened, and also the lady who tattoos (herself or others) and the one who gets herself tattooed. - -**#7** — mishkat 1874 · score: 0.778 -> Abu Huraira reported God’s messenger as saying, “The worst things in a man are anxious niggardliness and unrestrained cowardice.” Abd Dawud transmitted it. - -**#8** — bulugh 1201 · score: 0.7779 -> Sahl bin Abi Khaithamah (RAA) narrated on the authority of some honored men from his people that 'Abdullah bin Sahl and Muhaiysah bin Mas'ud, went out to Khaibar because of a hardship they were undergoing. Muhaiysah came and told them that 'Abdullah bin Sahl had been killed and thrown into a well. He came to the Jews and said to them, ‘I swear by Allah that you have killed him.’ They replied, ‘We swear by Allah that we have not killed him.' Then Muhaiysah came along with his brother Huwaiysah and 'Abdur Rahman bin Sahl to the Prophet (P.B.U.H.) and Muhaiysah started to talk. The Messenger of… - -**#9** — ibnmajah 1859 · score: 0.7776 -> It was narrated from Abdullah bin Amr that: the Prophet said: “Do not marry women for their beauty for it may lead to their doom. Do not marry them for their wealth, for it may lead them to fall into sin. Rather, marry them for their religion. A black slave woman with piercings who is religious is better.” - -**#10** — bulugh 1500 · score: 0.7772 -> Abu Hurairah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “When two men insult one another, what they say is mainly the fault of the one who began it, so long as the one who is oppressed does not transgress.” Related by Muslim. - - ---- - -## Query: "polygamy" - -### lexical — 0 total hits - - -### openai-small-en — 150 total hits - -**#1** — bukhari 5127 · score: 0.7243 -> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. "Send for so-and-so and have sexual intercourse with him." Her husband would then keep away from her and would never sleep with her till she… - -**#2** — muslim 1451 a · score: 0.7217 ->

Umm al-Fadl reported: A bedouin came to Allah's Apostle (may peace be upon him) when he was in my house and said: Allah's Apostle, I have had a wife and I married another besides her, and my first wife claimed that she had suckled once or twice my newly married wife, thereupon Allah's Apostle (may peace be upon him) said: One suckling or two do not make the (marriage) unlawful. - -**#3** — bukhari 5068 · score: 0.7182 ->

Narrated Anas:

The Prophet used to go round (have sexual relations with) all his wives in one night, and he had nine wives. - -**#4** — malik 1238 · score: 0.7156 ->

Yahya related to me from Malik that Ibn Shihab said, "I have heard that the Messenger of Allah, may Allah bless him and grant him peace, said to a man from Thaqif who had ten wives when he became muslim, 'Take four and separate from the rest.' "

- -**#5** — abudawud 2243 · score: 0.7142 ->

Al-Dahhak b. Firuz reported on the authority of his father: I said: Messenger of Allah, I have embraced Islam and two sisters are my wives. He said: Divorce any one of them you wish.

- -**#6** — muslim 1408 b · score: 0.7136 ->

Abu Huraira (Allah be pleased with him) reported: that Allah's Messenger (may peace be upon him) forbade combining of four women in marriage: a woman with her father's sister, and a woman with her mother's sister. - -**#7** — ibnmajah 1953 · score: 0.7113 -> It was narrated that Ibn 'Umar said: “Ghailan bin Salamah became Muslim and he had ten wives. The Prophet said to him: 'Choose four of them.' ” - -**#8** — mishkat 3091 · score: 0.7109 -> Ma'qil b. Yasar reported God’s Messenger as saying, “Marry women who are loving and very prolific, for I shall outnumber the peoples by you." Abu Dawud and Nasa’i transmitted it. - -**#9** — bukhari 5215 · score: 0.7104 ->

Narrated Anas bin Malik:

The Prophet used to pass by (have sexual relation with) all his wives in one night, and at that time he had nine wives. - -**#10** — malik 1149 · score: 0.7087 ->

Yahya related to me from Malik from Rabia ibn Abi Abd ar-Rahman that al-Qasim ibn Muhammad and Urwa ibn az-Zubayr said that a man who had four wives and then divorced one of them irrevocably, could marry straightaway if he wished, and he did not have to wait for the completion of her idda.

- - -### nomic — 150 total hits - -**#1** — mishkat 3170 · score: 0.8259 -> Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the polytheists. Then God most high sent down regarding that, “And women already married, except those whom your right hands possess” (Al-Qur’an 4:24). That means that they were lawful for them when their ‘idda* period came to an end. * The period which a widow or divorced woman must observe before… - -**#2** — muslim 1456 a · score: 0.8245 ->

Abu Sa'id al-Khudri (Allah her pleased with him) reported that at the Battle of Hanain Allah's Messenger (may peace be upon him) sent an army to Autas and encountered the enemy and fought with them. Having overcome them and taken them captives, the Companions of Allah's Messenger (may peace te upon him) seemed to refrain from having intercourse with captive women because of their husbands being polytheists. Then Allah, Most High, sent down regarding that:" And women already married, except those whom your right hands possess (iv. 24)" (i. e. they were lawful for them when their 'Idda… - -**#3** — mishkat 2554 · score: 0.8172 -> Ibn ‘Abbas said that the polytheists used to say, “Labbaik, Thou hast no partner," whereupon God’s messenger would say, “Woe to you ! Enough, enough; [do not add] ‘except a partner who is Thine whom Thou possessest', when He possesses none.” They used to say this when they were going round the House. Muslim transmitted it. - -**#4** — bukhari 5127 · score: 0.8167 -> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. "Send for so-and-so and have sexual intercourse with him." Her husband would then keep away from her and would never sleep with her till she… - -**#5** — abudawud 2272 · score: 0.8164 -> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till It became apparent that she was pregnant from the man who had intercourse with her. When it was… - -**#6** — muslim 122 · score: 0.8163 ->

It is narrated on the authority of Ibn 'Abbas that some persons amongst the polytheist had committed a large number of murders and had excessively indulged in fornication. Then they came to Muhammad (may peace be upon him) and said: Whatever you assert and whatever you call to is indeed good. But if you inform us that there is atonement of our past deeds (then we would embrace Islam). Then it was revealed: And those who call not unto another god along with Allah and slay not any soul which Allah has forbidden except in the cause of justice, nor commit fornication; and he who does this… - -**#7** — nasai 3415 · score: 0.8123 -> It was narrated that Ibn 'Umar said: "The Prophet was asked about a man who divorced his wife three times, then another man married her and he closed the door and drew the curtain, then divorced her before consummating the marriage with her. He said: "She is not permissible for the first one (to remarry her) until the second one has had intercourse with her."" - -**#8** — mishkat 3419 · score: 0.8112 -> Ibn Umar told that he heard God’s Messenger say, “He who swears by anyone but God is a polytheist.” Tirmidhi transmitted it. - -**#9** — bulugh 1287 · score: 0.811 -> Samurah (RAA) narrated that The Messenger of Allah (P.B.U.H.) said, “Kill the mature men of the polytheists but spare their children.” Related by Abu Dawud and At-Tirmidhi graded it as Sahih. - -**#10** — bukhari 5105 · score: 0.81 -> Ibn 'Abbas further said, "Seven types of marriages are unlawful because of blood relations, and seven because of marriage relations." Then Ibn 'Abbas recited the Verse: "Forbidden for you (for marriages) are your mothers..." (4:23). 'Abdullah bin Ja'far married the daughter and wife of 'Ali at the same time (they were step-daughter and mother). Ibn Sirin said, "There is no harm in that." But Al-Hasan Al-Basri disapproved of it at first, but then said that there was no harm in it. Al-Hasan bin Al-Hasan bin 'Ali married two of his cousins in one night. Ja'far bin Zaid disapproved of that… - - -### mxbai — 150 total hits - -**#1** — abudawud 2088 · score: 0.8486 ->

Narrated Samurah:

The Prophet (saws) said: Any woman who is married by two guardians (to two different men) belongs to the first woman who is married by two guardians (to two different men) belongs to the first of them and anything sold by a man to two persons belongs to the first of them.

- -**#2** — abudawud 2133 · score: 0.8341 ->

Narrated AbuHurayrah:

The Prophet (saws) said: When a man has two wives and he is inclined to one of them, he will come on the Day of resurrection with a side hanging down.

- -**#3** — abudawud 2067 · score: 0.8335 ->

Narrated Abdullah ibn Abbas:

The Prophet (saws) abominated the combination of paternal and maternal aunts and the combination of two maternal aunts and two paternal aunts in marriage.

- -**#4** — bulugh 1001 · score: 0.8334 -> Narrated 'Aishah (RA): A man divorced his wife by three pronouncements and another man married her and divorced her before cohabiting with her. Then, her first husband intended to remarry her and asked Allah's Messenger (SAW) about that. He said, "No, until the other one (second husband) has enjoyed sexual intercourse with her as the first (husband) had." [Agreed upon; the wording is Muslim's]. - -**#5** — bukhari 5127 · score: 0.8334 -> Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. "Send for so-and-so and have sexual intercourse with him." Her husband would then keep away from her and would never sleep with her till she… - -**#6** — mishkat 3170 · score: 0.8306 -> Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the polytheists. Then God most high sent down regarding that, “And women already married, except those whom your right hands possess” (Al-Qur’an 4:24). That means that they were lawful for them when their ‘idda* period came to an end. * The period which a widow or divorced woman must observe before… - -**#7** — bukhari 4528 · score: 0.8297 ->

Narrated Jabir:

Jews used to say: "If one has sexual intercourse with his wife from the back, then she will deliver a squint-eyed child." So this Verse was revealed:-- "Your wives are a tilth unto you; so go to your tilth when or how you will." (2.223) - -**#8** — bukhari 5261 · score: 0.8295 ->

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, "No, she cannot marry the first husband unless the second husband consummates his marriage with her, just as the first husband had done." - -**#9** — abudawud 2272 · score: 0.8286 -> A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till It became apparent that she was pregnant from the man who had intercourse with her. When it was… - -**#10** — bukhari 5104 · score: 0.8278 ->

Narrated `Uqba bin Al-Harith:

I married a woman and then a black lady came to us and said, "I have suckled you both (you and your wife)." So I came to the Prophet and said, "I married so-and-so and then a black lady came to us and said to me, 'I have suckled both of you.' But I think she is a liar." The Prophet turned his face away from me and I moved to face his face, and said, "She is a liar." The Prophet said, "How (can you keep her as your wife) when that lady has said that she has suckled both of you? So abandon (i.e., divorce) her (your wife). - - ---- - -## Query: "pork" - -### lexical — 0 total hits - - -### openai-small-en — 150 total hits - -**#1** — abudawud 3489 · score: 0.6549 ->

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

- -**#2** — bukhari 5506 · score: 0.6408 ->

Narrated Rafi` bin Khadij:

The Prophet said, "Eat what is slaughtered (with any instrument) that makes blood flow out, except what is slaughtered with a tooth or a nail.' - -**#3** — bukhari 1824 · score: 0.6392 ->

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, "Proceed along the seashore till we meet all together." So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased the onagers and attacked and wounded a sheonager. They got down and ate some of its meat and said to… - -**#4** — shamail 170 · score: 0.6351 -> 'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” - -**#5** — muslim 1938 c · score: 0.6349 ->

Bara was heard saying: We were forbidden (to eat) the flesh of the domestic asses. - -**#6** — abudawud 2796 · score: 0.6344 ->

Narrated AbuSa'id al-Khudri:

The Messenger of Allah (saws) used to sacrifice a choice, horned ram with black round the eyes, the mouth and the feet.

- -**#7** — malik 621 · score: 0.6315 ->

Yahya related to me from Malik from Zayd ibn Aslam from his father that he said to Umar ibn al-Khattab, "There is a blind she- camel behind the house,'' soUmar said, "Hand it over to a household so that they can make (some) use of it." He said, "But she is blind." Umar replied, "Then put it in a line with other camels." He said, "How will it be able to eat from the ground?" Umar asked, "Is it from the livestock of the jizya or the zakat?" and Aslam replied, "From the livestock of the jizya." Umar said, "By AIIah, you wish to eat it." Aslam said, "It has the brand of the jizya on it." So… - -**#8** — malik · score: 0.6298 ->

Yahya related to me from Malik that the best of what he had heard about a man who is forced by necessity to eat carrion is that he ate it until he was full and then he took provision from it. If he found something which would enable him to dispense with it, he threw it away.

Malik when asked whether or not a man who had been forced by necessity to eat carrion, should eat it when he also found the fruit, crops or sheep of a people in that place, answered, "If he thinks that the owners of the fruit, crops, or sheep will believe his necessity so that he will not be deemed a thief… - -**#9** — ibnmajah 3146 · score: 0.6296 -> It was narrated that Abu Sa’eed Al-Khudri said: “We bought a ram for sacrifice, then a wolf tore some flesh from its rump and ears. We asked the Prophet (saw) and he told us to offer it as a sacrifice.” - -**#10** — bukhari 5527 · score: 0.6295 ->

Narrated Abu Tha'alba:

Allah's Apostle prohibited the eating of donkey's meat.

Narrated Az-Zuhri:

The Prophet prohibited the eating of beasts having fangs.

- - -### nomic — 150 total hits - -**#1** — bukhari 1495 · score: 0.795 ->

Narrated Anas:

Some meat was presented to the Prophet (p.b.u.h) and it had been given to Barira (the freed slave-girl of Aisha) in charity. He said, "This meat is a thing of charity for Barira but it is a gift for us." - -**#2** — tirmidhi 1509 · score: 0.7935 -> Narrated Ibn 'Umar: That the Prophet (saws) said: "None of you should eat from the meat of his sacrificial animal beyond three days." - -**#3** — bukhari 1824 · score: 0.7908 ->

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, "Proceed along the seashore till we meet all together." So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased the onagers and attacked and wounded a sheonager. They got down and ate some of its meat and said to… - -**#4** — shamail 169 · score: 0.7896 -> 'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.” - -**#5** — abudawud 2814 · score: 0.7892 -> Narrated Thawban: The Messenger of Allah (saws) sacrificed during a journey and then said: Thawban, mend the meat of this goat. I then kept on supplying its meat until we reached Medina. - -**#6** — bulugh 15 · score: 0.7864 -> Narrated Abu Waqid Al-Laithi: Narrated Abu Waqid Al-Laithi (rad): Allah’s Messenger (saw) said, “Whatever (portion) is cut off from an animal when it is alive is dead (meat). [Reported by Abu Da’ud and At-Tirmidhi who graded it Hasan (fair) and this version is of Tirmidhi]. - -**#7** — adab 1276 · score: 0.7855 -> Ya'la ibn Murra reported that he heard Abu Hurayra speaking about someone who plays backgammon and bets on it, saying that he is like someone who eats pig meat and that the person who plays it without betting on it is like someone who washes his hands in pig's blood. The person who sits looking at it is like someone who looks at pig's meat. - -**#8** — shamail 166 · score: 0.7843 -> Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.” - -**#9** — ibnmajah 3216 · score: 0.783 -> It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).” - -**#10** — muslim 1975 a · score: 0.7829 ->

Thauban reported that Allah's Messenger (way peace be upon him) slaughtered his sacrificial animal and then said: Thauban, make his meat usable (for journey), and I continuously served him that until he arrived in Medina. - - -### mxbai — 150 total hits - -**#1** — shamail 170 · score: 0.7987 -> 'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” - -**#2** — ibnmajah 3216 · score: 0.7976 -> It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).” - -**#3** — shamail 169 · score: 0.7928 -> 'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.” - -**#4** — ibnmajah 3314 · score: 0.7917 -> It was narrated from ‘Abdullah bin ‘Umar that the Messenger of Allah (saw) said: “Two kinds of dead meat and two kinds of blood have been permitted to us. The two kinds of dead meat are fish and locusts, and the two kinds of blood are the liver and spleen.” - -**#5** — mishkat 4215 · score: 0.7913 -> ‘A’isha reported God’s messenger as saying, “Do not cut meat with a knife, for it is a foreign practice, but bite it, for that is more beneficial and wholesome.” Abu Dawud and Baihaqi, in Shu'ab al-iman, transmitted it, both saying it is not strong. - -**#6** — shamail 166 · score: 0.7905 -> Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.” - -**#7** — abudawud 3489 · score: 0.7894 ->

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

- -**#8** — nasai 4425 · score: 0.7879 -> 'Ali bin Abi Talib Said: "The Messenger of Allah has forbidden you from eating the meat of your sacrificaial animals for more than three day." (Sahih ) - -**#9** — bukhari 1492 · score: 0.7863 ->

Narrated Ibn `Abbas:

The Prophet saw a dead sheep which had been given in charity to a freed slave-girl of Maimuna, the wife of the Prophet . The Prophet said, "Why don't you get the benefit of its hide?" They said, "It is dead." He replied, "Only to eat (its meat) is illegal." - -**#10** — bukhari 1824 · score: 0.7858 ->

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, "Proceed along the seashore till we meet all together." So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased the onagers and attacked and wounded a sheonager. They got down and ate some of its meat and said to… - - ---- - -## Query: "dance" - -### lexical — 1 total hits - -**#1** — mishkat 6049 · score: 11.8589 -> `A'isha said: When God's messenger was seated, we heard confused sounds and boys' voices, so he got up and saw an Abyssinian woman dancing with the boys around her. He said, "Come and look, `A'isha," so I went and placed my chin on God's messenger's shoulder and began to look at her over his shoulder. He then said to me, "Have you not had enough? Have you not had enough?" and I began to say, "No," in order that I might look where I was with him. But `Umar came along, and when the people ran away from her[*] God's messenger said, "I am looking at the devils of jinn and men who have fled from… - - -### openai-small-en — 150 total hits - -**#1** — malik 75 · score: 0.6113 ->

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, "I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the mosque and prayed."

Yahya said that Malik was asked whether a man who did wudu for prayerand then put on his leather socks, and then urinated and took them off and put them back on again, should begin wudu afresh.

Malik replied, "He should take off his socks and wash his feet. Only… - -**#2** — abudawud 4854 · score: 0.5992 ->

Narrated AbudDarda':

The Messenger of Allah (saws) would sit and we would also sit around him. If he got up intending to return, he would take off his sandals or something he was wearing, and his Companions recognising his purpose (that he would return) would stay where they were.

- -**#3** — abudawud 4923 · score: 0.5977 ->

Narrated Anas ibn Malik:

When the Messenger of Allah (saws) came to Medina, the Abyssinians played for his coming out of joy; they played with spears.

- -**#4** — bukhari 1591 · score: 0.597 ->

Narrated Abu Huraira:

The Prophet;; said, "Dhus-Suwaiqa-tain (literally: One with two lean legs) from Ethiopia will demolish the Ka`ba." - -**#5** — abudawud 652 · score: 0.5956 ->

Narrated Aws ibn Thabit al-Ansari:

The Messenger of Allah (saws) said: Act differently from the Jews, for they do not pray in their sandals or their shoes.

- -**#6** — bukhari 2628 · score: 0.5948 ->

Narrated Aiman:

I went to `Aisha and she was wearing a coarse dress costing five Dirhams. `Aisha said, "Look up and see my slave-girl who refuses to wear it in the house though during the lifetime of Allah's Apostle I had a similar dress which no woman desiring to appear elegant (before her husband) failed to borrow from me." - -**#7** — mishkat 765 · score: 0.5945 -> Shaddad b. Aus reported God’s Messenger as saying, “Act differently from the Jews, for they do not pray in their sandals or their shoes.”* * Khuff (pl. khifaf), an article of footwear which came up above the ankle. Traditions tell that the Prophet allowed pilgrims to wear the khuff only when unable to procure sandals, but said they must be cut to come below the ankle. Cf. Bukhari, Hajj, 21, 23; Libas, 8, 4, 15, 73. Abu Dawud transmitted it. - -**#8** — ibnmajah 2939 · score: 0.594 -> It was narrated that ‘Abdullah bin ‘Abbas said: “The Prophets used to enter the Haram walking barefoot. They would circumambulate the House and complete all the rituals barefoot and walking.” - -**#9** — forty 33 · score: 0.5939 -> Actions are through intentions. - -**#10** — forty 18 · score: 0.5936 -> The felicitous person takes lessons from (the actions of) others. - - -### nomic — 150 total hits - -**#1** — tirmidhi 40 · score: 0.7981 -> Al-Mustawrid bin Shaddad Al-Fihri said : "I saw the Prophet when he was performing Wudu doing that to the toes on his feet with his pinky." - -**#2** — tirmidhi 3734 · score: 0.7957 -> Narrated Ibn 'Abbas: "The first to perform Salat was 'Ali." - -**#3** — tirmidhi 39 · score: 0.7927 -> Ibn Abbas narrated that : Allah's Messenger said: "When performing Wudu go between the fingers of your hands and (toes of) your feet." - -**#4** — bulugh 55 · score: 0.7924 -> Narrated Anas (rad): The Prophet (saw) saw a man on whose foot appeared a portion like the size of a nail which was not touched by water. He then said, “Go back and perform your Wudu properly.” [Reported by Abu Da’ud and An-Nasa’i]. - -**#5** — bukhari 6702 · score: 0.7916 ->

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf around the Ka`ba, tied with a rope or something else (while another person was holding him). The Prophet cut that rope off. - -**#6** — bukhari 5910 · score: 0.7911 ->

Narrated Anas: The Prophet had big feet and hands. - -**#7** — abudawud 1986 · score: 0.791 -> Narrated Ibn 'Umar: The Messenger of Allah (saws) performed 'Umrah before performing Hajj. - -**#8** — nasai 50 · score: 0.789 -> It was narrated from Abu Hurairah that the Prophet (PBUH) performed Wudu', and when he had performed Istinja' he rubbed his hand on the ground. - -**#9** — bulugh 1443 · score: 0.7884 -> In a version by Muslim, “And the one who is riding should salute the one who is walking.” - -**#10** — bulugh 45 · score: 0.7884 -> Narrated Abu Huraira (rad): Allah’s Messenger (rad) said, “When you perform ablution, begin with your right limbs”. [Reported by Al-Arba’a and garded Sahih by Ibn Khuzaima]. - - -### mxbai — 150 total hits - -**#1** — muslim 819 a · score: 0.7711 ->

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached seven modes (of recitation). Ibn Shibab said: It has reached me that these seven styles are essentially one, not differing about what is permitted and what is forbidden. - -**#2** — abudawud 727 · score: 0.7646 -> The above tradition has been transmitted by ‘Asim b. Kulaib through a different chain of narrators and to the same effect. This version has: “He then placed his right hand on the back of his left palm and his wrist and forearm.” This also adds: “I then came back afterwards in a season when it was severe cold. I saw the people putting on heavy clothes moving their hands under the clothes (i.e. raised their hands before and after bowing).” - -**#3** — abudawud 942 · score: 0.76 -> ‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. - -**#4** — tirmidhi 3418 · score: 0.7595 -> `Abdullah bin `Abbas [may Allah be pleased with them] narrated, : that when the Messenger of Allah (saws) would stand for prayer during the middle of the night, he would say: “O Allah, to You is the Praise, You are the Light of the heavens and the earth, and to You is the Praise, You are the Sustainer of the heavens and the earth, and to You is the praise, You are the Lord of the heavens and the earth, and those in them, You are the truth, and Your Promise is the truth, and Your meeting is true, and Paradise is true, and the Fire is true, and the Hour is true, O Allah, to You have I… - -**#5** — malik 75 · score: 0.7591 ->

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, "I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the mosque and prayed."

Yahya said that Malik was asked whether a man who did wudu for prayerand then put on his leather socks, and then urinated and took them off and put them back on again, should begin wudu afresh.

Malik replied, "He should take off his socks and wash his feet. Only… - -**#6** — abudawud 958 · score: 0.7588 -> 'Abdullah bin 'Umar said: "A Sunnah of the prayer is that you should raise your right foot, and make your left foot lie (on the ground)." - -**#7** — mishkat 4416 · score: 0.7583 -> Al-Qasim b. Muhammad quoted ‘A’isha as saying the Prophet often walked wearing one sandal. A version says she walked wearing one sandal. Tirmidhi transmitted it, saying this is sounder - -**#8** — muslim 2099 d · score: 0.7576 ->

Jabir. b. Abdullah reported Allah's Messenger (may peace be upon him) as saying: Do not walk in one sandal and do not wrap the lower garment round your knees and do not eat with your left hand and do not wrap yourself completely leaving no room for the arms (to draw out) and do not place one of your feet upon the other while lying on your back. - -**#9** — muslim 2097 a · score: 0.7554 ->

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: "When one of you puts on sandals, he should first put in the right foot, and when he takes off he should take off the left one first. And he should wear both of them or take both off." - -**#10** — abudawud 859 · score: 0.7548 -> This tradition has also been transmitted through a different chain of narrators by Rifa’ah b. Rafi. This version goes: When you get up and face the qiblah, what Allah wishes you to recite. And when you bow, put your palms on your knees and stretch out your back. When you prostrate yourself, do it completely( so that you are at the rest). When you raise yourself then sit on your left thigh. - - diff --git a/test results & reports/lexical vs semantic/test2/batch_results.csv b/test results & reports/lexical vs semantic/test2/batch_results.csv deleted file mode 100644 index 54465ad..0000000 --- a/test results & reports/lexical vs semantic/test2/batch_results.csv +++ /dev/null @@ -1,467 +0,0 @@ -query,model,rank,collection,hadithNumber,urn,score,text_snippet -comparing yourself to others,lexical,1,muslim,1776 d,243910,17.9936,"

This hadith has been narrated on the authority of Bara' with another chain of transmitters, but this hadith is short as compared with other ahadith which are more detailed." -comparing yourself to others,lexical,2,bukhari,3334,31150,16.2561,"

Narrated Anas:

The Prophet said, ""Allah will say to that person of the (Hell) Fire who will receive the least punishment, 'If you had everything on the earth, would you give it as a ransom to free yourself (i.e. save yourself from this Fire)?' He will say, 'Yes.' Then Allah will say, 'While you were in the backbone of Adam, I asked you much less than this, i.e. not to worship others besides Me, but you insisted on worshipping others besides me.' """ -comparing yourself to others,lexical,3,muslim,2431,259660,16.1899,"

Abu Musa reported Allah's Messenger (may peace be upon him) as saying: There are many persons amongst men who are quite perfect but there are none perfect amongst women except Mary, daughter of 'Imran, Asiya wife of Pharaoh, and the excellence of 'A'isha as compared to women is that of Tharid over all other foods." -comparing yourself to others,lexical,4,bukhari,4816,44950,14.8959,"

Narrated Ibn Mas`ud:

(regarding) the Verse: 'And you have not been screening against yourself lest your ears, and your eyes and your skins should testify against you..' (41.22) While two persons from Quraish and their brotherin- law from Thaqif (or two persons from Thaqif and their brother-in-law from Quraish) were in a house, they said to each other, ""Do you think that Allah hears our talks?"" Some said, ""He hears a portion thereof"" Others said, ""If He can hear a portion of it, He can…" -comparing yourself to others,lexical,5,muslim,2939 b,270210,14.8806,

Mughira b. Shu'ba reported that none asked Allah's Apostle (may peace be upon him) about Dajjal more than I asked him. I (one of the narrators other than Mughira b. Shu'ba) said: What did you ask? Mughira replied: I said that the people alleged that he would have a mountain load of bread and mutton and rivers of water. Thereupon he said: He would be more insignificant in the eye of Allah compared with all this. -comparing yourself to others,lexical,6,abudawud,4627,846100,14.877,Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other. -comparing yourself to others,lexical,7,bukhari,6557,61710,14.3848,"

Narrated Anas bin Malik:

The Prophet said, ""Allah will say to the person who will have the minimum punishment in the Fire on the Day of Resurrection, 'If you had things equal to whatever is on the earth, would you ransom yourself (from the punishment) with it?' He will reply, Yes. Allah will say, 'I asked you a much easier thing than this while you were in the backbone of Adam, that is, not to worship others besides Me, but you refused and insisted to worship others besides Me.""'" -comparing yourself to others,lexical,8,bukhari,2219,20840,14.3251,"

Narrated Sa`d that his father said:

`Abdur-Rahman bin `Auf said to Suhaib, 'Fear Allah and do not ascribe yourself to somebody other than your father.' Suhaib replied, 'I would not like to say it even if I were given large amounts of money, but I say I was kidnapped in my childhood.' """ -comparing yourself to others,lexical,9,bukhari,3628,33860,14.191,"

Narrated Ibn `Abbas:

Allah's Apostle in his fatal illness came out, wrapped with a sheet, and his head was wrapped with an oiled bandage. He sat on the pulpit, and praising and glorifying Allah, he said, ""Now then, people will increase but the Ansar will decrease in number, so much so that they, compared with the people, will be just like the salt in the meals. So, if any of you should take over the authority by which he can either benefit some people or harm some others, he should…" -comparing yourself to others,lexical,10,bukhari,3655,34120,14.0406,"

Narrated Ibn `Umar:

We used to compare the people as to who was better during the lifetime of Allah's Apostle . We used to regard Abu Bakr as the best, then `Umar, and then `Uthman ." -comparing yourself to others,openai-small-en,1,adab,328,2203280,0.6896,"Ibn 'Abbas said, ""When you want to mention your companion's faults, remember your own faults.""" -comparing yourself to others,openai-small-en,2,bukhari,6490,61050,0.6896,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " -comparing yourself to others,openai-small-en,3,riyadussalihin,466,1604630,0.6851,"Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, ""Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.""
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: ""When one of you looks at someone who is superior to him in property and appearance, he should look at someone…" -comparing yourself to others,openai-small-en,4,ahmad,111,5001110,0.6775,"It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to…" -comparing yourself to others,openai-small-en,5,forty,18,1430180,0.6753,The felicitous person takes lessons from (the actions of) others. -comparing yourself to others,openai-small-en,6,muslim,2963 c,270700,0.6708,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors.

In the chain narrated by Abu Mu'awiya's he said: Upon you." -comparing yourself to others,openai-small-en,7,adab,592,2205770,0.6669,"Abu Hurayra said, ""One of you looks at the mote in his brother's eye while forgetting the stump in his own eye.""" -comparing yourself to others,openai-small-en,8,muslim,2963 a,270680,0.6666,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). -comparing yourself to others,openai-small-en,9,abudawud,4084,840730,0.6659,"

Narrated AbuJurayy Jabir ibn Salim al-Hujaymi:

I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say ""On you be peace,"" for ""On you be peace"" is a greeting for the dead, but say ""Peace be upon you"".

I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger…" -comparing yourself to others,openai-small-en,10,bulugh,1471,2054330,0.664,"Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." -comparing yourself to others,nomic,1,bukhari,6490,61050,0.8354,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " -comparing yourself to others,nomic,2,bukhari,6061,56910,0.8165,"

Narrated Abu Bakra:

A man was mentioned before the Prophet and another man praised him greatly The Prophet said, ""May Allah's Mercy be on you ! You have cut the neck of your friend."" The Prophet repeated this sentence many times and said, ""If it is indispensable for anyone of you to praise someone, then he should say, 'I think that he is so-and-so,"" if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody…" -comparing yourself to others,nomic,3,bulugh,1471,2054330,0.8111,"Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." -comparing yourself to others,nomic,4,bukhari,6530,61450,0.8109,"

Narrated Abu Sa`id:

The Prophet said, ""Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) are the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine (persons).' At that time children will become hoary-headed and every…" -comparing yourself to others,nomic,5,muslim,2963 a,270680,0.8103,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). -comparing yourself to others,nomic,6,tirmidhi,2513,678190,0.809,"Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: ""Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.""" -comparing yourself to others,nomic,7,bukhari,6162,57880,0.8085,"

Narrated Abu Bakra:

A man praised another man in front of the Prophet. The Prophet said thrice, ""Wailaka (Woe on you) ! You have cut the neck of your brother!"" The Prophet added, ""If it is indispensable for anyone of you to praise a person, then he should say, ""I think that such-and-such person (is so-and-so), and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah (and that only if he knows well about that person.)""." -comparing yourself to others,nomic,8,nasai,3947,1039620,0.8077,"It was narrated from Abu Musa that the Prophet said: ""The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food.""" -comparing yourself to others,nomic,9,abudawud,4627,846100,0.8051,Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other. -comparing yourself to others,nomic,10,adab,1146,2211010,0.8041,"Ibn 'Abbas said, ""The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me.""" -comparing yourself to others,mxbai,1,forty,18,1430180,0.8147,The felicitous person takes lessons from (the actions of) others. -comparing yourself to others,mxbai,2,bukhari,6490,61050,0.8022,"

Narrated Abu Huraira:

Allah's Apostle said, ""If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him. " -comparing yourself to others,mxbai,3,forty,3,1430030,0.7969,A Muslim is a mirror of the Muslim. -comparing yourself to others,mxbai,4,muslim,2963 a,270680,0.794,

Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him). -comparing yourself to others,mxbai,5,ibnmajah,4336,1294390,0.792,"Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace there?” He said: “Yes. The Messenger of Allah (saw) told me that when the people of Paradise enter it, they will take their places according to their deeds, and they will be given permission for a length of time equivalent to Friday on earth, when they will visit Allah. His Throne will be shown to them…" -comparing yourself to others,mxbai,6,adab,159,2201600,0.7897,"Abu'd-Darda' used to say to people. ""We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves.""" -comparing yourself to others,mxbai,7,riyadussalihin,466,1604630,0.7864,"Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, ""Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you.""
This is the wording in Sahih Muslim.

[Al-Bukhari and Muslim].

The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: ""When one of you looks at someone who is superior to him in property and appearance, he should look at someone…" -comparing yourself to others,mxbai,8,muslim,2536,261590,0.7854,"

'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." -comparing yourself to others,mxbai,9,tirmidhi,2513,678190,0.7821,"Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: ""Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you.""" -comparing yourself to others,mxbai,10,abudawud,4092,840810,0.7821,"

Narrated AbuHurayrah:

A man who was beautiful came to the Prophet (saws). He said: Messenger of Allah, I am a man who likes beauty, and I have been given some of it, as you see. And I do not like that anyone excels me (in respect of beauty). Perhaps he said: ""even to the extent of thong of my sandal (shirak na'li)"", or he he said: ""to the extent of strap of my sandal (shis'i na'li)"". Is it pride? He replied: No, pride is disdaining what is true and despising people.

" -aisha six years,lexical,1,bukhari,5133,48030,23.3839,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." -aisha six years,lexical,2,bukhari,3896,36420,23.3248,"

Narrated Hisham's father:

Khadija died three years before the Prophet departed to Medina. He stayed there for two years or so and then he married `Aisha when she was a girl of six years of age, and he consumed that marriage when she was nine years old." -aisha six years,lexical,3,bukhari,5158,48270,23.2301,

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him for nine years (i.e. till his death). -aisha six years,lexical,4,bukhari,5134,48040,23.1431,

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). -aisha six years,lexical,5,muslim,1422 b,233100,22.7803,"

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old." -aisha six years,lexical,6,muslim,1422 d,233115,22.0443,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" -aisha six years,lexical,7,abudawud,2121,821160,21.5411,Narrated 'Aishah: The Messenger of Allah (saws) married me when I was seven years old. The narrator Sulaiman said: or Six years. He had intercourse with me when I was nine years old. -aisha six years,lexical,8,nasai,3255,1032660,21.1657,"It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine." -aisha six years,lexical,9,bukhari,3948,36900,18.5181,

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. -aisha six years,lexical,10,bukhari,3894,36400,17.7972,"

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on my hair grew (again) and my mother, Um Ruman, came to me while I was playing in a swing with some of my girl friends. She called me, and I went to her, not knowing what she wanted to do to me. She caught me by the hand and made me stand at the door of the house. I was breathless then, and when my…" -aisha six years,openai-small-en,1,bukhari,5134,48040,0.7911,

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). -aisha six years,openai-small-en,2,bukhari,5133,48030,0.7872,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." -aisha six years,openai-small-en,3,muslim,1422 d,233115,0.7823,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" -aisha six years,openai-small-en,4,muslim,1422 b,233100,0.7807,"

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old." -aisha six years,openai-small-en,5,muslim,1422 c,233110,0.78,"

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old." -aisha six years,openai-small-en,6,mishkat,3129,5830500,0.7723,"‘A’isha said that the Prophet married her when she was seven, she was brought to live with him when she was nine bringing her toys with her, and he died when she was eighteen. Muslim transmitted it." -aisha six years,openai-small-en,7,muslim,334 d,206570,0.7658,"

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years,"" and the rest of the hadith is the same (as mentioned above)." -aisha six years,openai-small-en,8,nasai,3378,1033890,0.7618,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls.""" -aisha six years,openai-small-en,9,ibnmajah,1877,1261950,0.7572,"It was narrated that: Abdullah said: “The Prophet married Aishah when she was seven years old, and consummated the marriage with her when she was nine, and he passed away when she was eighteen.”" -aisha six years,openai-small-en,10,nasai,3379,1033900,0.7566,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine.""" -aisha six years,nomic,1,muslim,1422 d,233115,0.7981,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" -aisha six years,nomic,2,bukhari,3948,36900,0.7872,

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. -aisha six years,nomic,3,muslim,334 d,206570,0.7823,"

The hadith has been narrated by 'A'isha through another chain of transmitters (in these words): I The daughter of jahsh had been mustabida for seven years,"" and the rest of the hadith is the same (as mentioned above)." -aisha six years,nomic,4,muslim,1422 b,233100,0.7789,"

'A'isha (Allah be pleased with her) reported: Allah's Apostle (may peace be upon him) married me when I was six years old, and I was admitted to his house when I was nine years old." -aisha six years,nomic,5,bulugh,228,2002780,0.7779,"It is mentioned in al-Bazzar through another chain with the addition: ""forty years.""" -aisha six years,nomic,6,abudawud,2240,822320,0.7756,"

Narrated Abdullah ibn Abbas:

The Messenger of Allah (saws) restored his daughter Zaynab to Abul'As on the basis of the previous marriage, and he did not do anything afresh.

Muhammad b. 'Amr said in his version: After six years. Al-Hasan b. 'Ali said: After two years.

" -aisha six years,nomic,7,shamail,380,1803620,0.7728,"Mu'awiya said in a sermon: ""The Prophet died (Allah bless him and give him peace) when he was sixty-three years of age, as did Abu Bakr and 'Umar, and I am now sixty-three years of age.”" -aisha six years,nomic,8,muslim,1422 c,233110,0.771,"

'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was seven years old, and he was taken to his house as a bride when she was nine, and her dolls were with her; and when he (the Holy Prophet) died she was eighteen years old." -aisha six years,nomic,9,mishkat,5489,5961160,0.7701,"Asma' daughter of Yazid b. as-Sakan reported the Prophet a saying, ""The dajjal will remain in the earth forty years, a year being like a month, a month like a week, a week like a day, and a day like the time it takes to burn a palm-branch."" It is transmitted in Sharh as sunna." -aisha six years,nomic,10,bukhari,5133,48030,0.7689,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." -aisha six years,mxbai,1,bukhari,3894,36400,0.8627,"

Narrated Aisha:

The Prophet engaged me when I was a girl of six (years). We went to Medina and stayed at the home of Bani-al-Harith bin Khazraj. Then I got ill and my hair fell down. Later on my hair grew (again) and my mother, Um Ruman, came to me while I was playing in a swing with some of my girl friends. She called me, and I went to her, not knowing what she wanted to do to me. She caught me by the hand and made me stand at the door of the house. I was breathless then, and when my…" -aisha six years,mxbai,2,nasai,3255,1032660,0.8612,"It was narrated from 'Aishah that the Messenger of Allah married her when she was six years old, and consummated the marriage with her when she was nine." -aisha six years,mxbai,3,bukhari,5133,48030,0.86,"

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old, and then she remained with him for nine years (i.e., till his death)." -aisha six years,mxbai,4,ibnmajah,1876,1261940,0.8522,"It was narrated that: Aishah said: “The Messenger of Allah married me when I was six years old. Then we came to Al-Madinah and settled among Banu Harith bin Khazraj. I became ill and my hair fell out, then it grew back and became abundant. My mother Umm Ruman came to me while I was on an Urjuhah with some of my friends, and called for me. I went to her, and I did not know what she wanted. She took me by the hand and made me stand at the door of the house, and I was panting. When I got my breath…" -aisha six years,mxbai,5,bukhari,5134,48040,0.8507,

Narrated `Aisha:

that the Prophet married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet for nine years (i.e. till his death). -aisha six years,mxbai,6,bukhari,5158,48270,0.849,

Narrated 'Urwa:

The Prophet wrote the (marriage contract) with `Aisha while she was six years old and consummated his marriage with her while she was nine years old and she remained with him for nine years (i.e. till his death). -aisha six years,mxbai,7,nasai,3378,1033890,0.8465,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine, and I used to play with dolls.""" -aisha six years,mxbai,8,nasai,3379,1033900,0.8449,"It was narrated that 'Aishah said: ""The Messenger of Allah married me when I was six, and consummated the marriage with me when I was nine.""" -aisha six years,mxbai,9,muslim,1422 d,233115,0.8446,"Narrated 'A'isha : 'A'isha (Allah be pleased with her) reported that Allah's Apostle (may peace be upon him) married her when she was six years old, and he (the Holy Prophet) took her to his house when she was nine, and when he (the Holy Prophet) died she was eighteen years old" -aisha six years,mxbai,10,nasai,3258,1032690,0.8426,It was narrated from 'Aishah that the Messenger of Allah married her when she was nine and he died when she was eighteen years old. -music,lexical,1,muslim,2114,252790,16.9802,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. -music,lexical,2,abudawud,2556,825500,15.2798,Abu Hurairah reported the Apostle of Allaah(saws) as saying “The bell is a wooden wind musical instrument of Satan.” -music,lexical,3,bukhari,952,9070,14.6703,"

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said protestingly, ""Musical instruments of Satan in the house of Allah's Apostle !"" It happened on the `Id day and Allah's Apostle said, ""O Abu Bakr! There is an `Id for every nation and this is our `Id.""" -music,lexical,4,riyadussalihin,1691,1624920,14.4857,"Abu Hurairah (May Allah be pleased with him) said: The Prophet (PBUH) said, ""The bell is one of the musical instruments of Satan.""

[Muslim].

" -music,lexical,5,bukhari,3931,36740,14.4274,"

Narrated Aisha:

That once Abu Bakr came to her on the day of `Id-ul-Fitr or `Id ul Adha while the Prophet was with her and there were two girl singers with her, singing songs of the Ansar about the day of Buath. Abu Bakr said twice. ""Musical instrument of Satan!"" But the Prophet said, ""Leave them Abu Bakr, for every nation has an `Id (i.e. festival) and this day is our `Id.""" -music,lexical,6,bukhari,5590,52420,13.4703,"

Narrated Abu 'Amir or Abu Malik Al-Ash'ari:

that he heard the Prophet saying, ""From among my followers there will be some people who will consider illegal sexual intercourse, the wearing of silk, the drinking of alcoholic drinks and the use of musical instruments, as lawful. And there will be some people who will stay near the side of a mountain and in the evening their shepherd will come to them with their sheep and ask them for something, but they will say to him, 'Return to us…" -music,lexical,7,tirmidhi,2212,675160,13.1285,"'Imran bin Husain narrated that the Messenger of Allah(s.a.w) said: ""In this Ummah there shall be collapsing of the earth, transformation and Qadhf."" A man among the Muslims said: ""O Messenger of Allah! When is that?"" He said: ""When singing slave-girls, music, and drinking intoxicants spread.""" -music,lexical,8,ibnmajah,4020,1291200,12.3358,"It was narrated from Abu Malik Ash’ari that the Messenger of Allah (saw) said: “People among my nation will drink wine, calling it by another name, and musical instruments will be played for them and singing girls (will sing for them). Allah will cause the earth to swallow them up, and will turn them into monkeys and pigs.”" -music,lexical,9,nasai,4135,1083345,11.4333,"It was narrated that Al-Awza'i said: ""Umar bin 'Abdul-'Aziz wrote a letter to 'Umar bin Al-Walid in which he said: 'The share that your father gave to you was the entire Khumus,[1] but the share that your father is entitled to is the same as that of any man among the Muslims, on which is due the rights of Allah and His Messenger, and of relatives, orphans, the poor and wayfarers. How many will dispute with your father on the Day of Resurrection! How can he be saved who has so many disputants?…" -music,lexical,10,muslim,892 e,219420,11.1285,

`A'isha reported: The Messenger of Allah (may peace be upon him) came (to my apartment) while there were two girls with me singing the song of the Battle of Bu`ath. He lay down on the bed and turned away his face. Then came Abu Bakr and he scolded me and said: Oh! this musical instrument of the devil in the house of the Messenger of Allah (may peace be upon him)! The Messenger of Allah (may peace be upon him) turned towards him and said: Leave them alone. And when he (the Holy Prophet)… -music,openai-small-en,1,mishkat,3153,5830700,0.6246,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." -music,openai-small-en,2,malik,1748,418052,0.6186,"

Yahya related to me from Malik from Abu Hazim ibn Dinar that Abu Idris al-Khawlani said, ""I entered the Damascus mosque and there was a young man with a beautiful mouth and white teeth sitting with some people. When they disagreed about something, they referred it to him and proceeded from his statement. I inquired about him, and it was said, 'This is Muadh ibn Jabal.' The next day I went to the noon-prayer, and I found that he had preceded me to the noon prayer and I found him praying.""…" -music,openai-small-en,3,abudawud,1468,814630,0.617,

Narrated Al-Bara' ibn Azib:

The Prophet (saws) said: Beautify the Qur'an with your voices.

-music,openai-small-en,4,adab,786,2207420,0.6146,"Ibn 'Abbas said about ""There are some people who trade in distracting tales"" (31:5) that it means singing and things like it." -music,openai-small-en,5,bukhari,439,4320,0.6132,"

Narrated `Aisha:

There was a black slave girl belonging to an 'Arab tribe and they manumitted her but she remained with them. The slave girl said, ""Once one of their girls (of that tribe) came out wearing a red leather scarf decorated with precious stones. It fell from her or she placed it somewhere. A kite passed by that place, saw it Lying there and mistaking it for a piece of meat, flew away with it. Those people searched for it but they did not find it. So they accused me of stealing…" -music,openai-small-en,6,muslim,2114,252790,0.6126,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. -music,openai-small-en,7,adab,1265,2212210,0.6111,"Ibn 'Abbas said that the words of Allah in Luqman (35:6), ""There are people who trade in distracting tales"" mean ""singing and things like it.""" -music,openai-small-en,8,muslim,793 d,217340,0.607,

Buraida reported on the authority of his father that the Messenger of Allah (may peace be upon him) had said: 'Abdullah b. Qais or al-Ash'ari has been gifted with a sweet melodious voice out of the voices of the family of David. -music,openai-small-en,9,forty,19,1430190,0.6066,"Indeed, in poetry there is wisdom and in eloquence there is magic." -music,openai-small-en,10,forty,25,1400250,0.6059,"

Also on the authority of Abu Dharr (may Allah be pleased with him): Some people from amongst the Companions of the Messenger of Allah (peace and blessings of Allah be upon him) said to the Prophet (peace and blessings of Allah be upon him), ""O Messenger of Allah, the affluent have made off with the rewards; they pray as we pray, they fast as we fast, and they give [much] in charity by virtue of their wealth."" He (peace and blessings of Allah be upon him) said, ""Has not Allah made things for…" -music,nomic,1,muslim,2114,252790,0.8074,

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The bell is the musical instrument of the Satan. -music,nomic,2,mishkat,3153,5830700,0.8052,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." -music,nomic,3,tirmidhi,3728,636080,0.7873,"Narrated Anas bin Malik: ""The advent of the Prophet (SAW) was on Monday and 'Ali performed Salat on Tuesday.""" -music,nomic,4,muslim,892 a,219380,0.7864,"

'A'isha reported: Abu Bakr came to see me and I had two girls with me from among the girls of the Ansar and they were singing what the Ansar recited to one another at the Battle of Bu'ath. They were not, however, singing girls. Upon this Abu Bakr said: What I (the playing of) this wind instrument of Satan in the house of the Messenger of Allah (may peace be upon him) and this too on 'Id day? Upon this the Messenger of Allah (may peace be upon him) said: Abu Bakr, every people have a…" -music,nomic,5,tirmidhi,3734,636130,0.7863,"Narrated Ibn 'Abbas: ""The first to perform Salat was 'Ali.""" -music,nomic,6,nasai,342,1003440,0.7859,"It was narrated that Ibn 'Umar said: ""Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH).""" -music,nomic,7,bukhari,952,9070,0.7855,"

Narrated Aisha:

Abu Bakr came to my house while two small Ansari girls were singing beside me the stories of the Ansar concerning the Day of Buath. And they were not singers. Abu Bakr said protestingly, ""Musical instruments of Satan in the house of Allah's Apostle !"" It happened on the `Id day and Allah's Apostle said, ""O Abu Bakr! There is an `Id for every nation and this is our `Id.""" -music,nomic,8,nasai,71,1000710,0.7854,"It was narrated that Ibn 'Umar said: ""Men and women used to perform Wudu' together during the time of the Messenger of Allah (PBUH).""" -music,nomic,9,bukhari,1621,15270,0.7853,

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf of the Ka`ba tied with a string or something else. So the Prophet cut that string. -music,nomic,10,ibnmajah,1898,1262170,0.7842,"It was narrated that 'Aishah said: “Abu Bakr entered upon me, and there were two girls from the Ansar with me, singing about the Day of Bu'ath.” She said: “And they were not really singers. Abu Bakr said: 'The wind instruments of Satan in the house of the Prophet ?' That was on the day of 'Eid(Al-Fitr). But the Prophet said: 'O Abu Bakr, every people has its festival and this is our festival.' ”" -music,mxbai,1,muslim,892 b,219390,0.7705,"

This hadith has been narrated by Hisham with the same chain of transmitters, but there the words are:"" Two girls were playing upon a tambourine.""" -music,mxbai,2,muslim,819 a,217850,0.7603,"

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached seven modes (of recitation). Ibn Shibab said: It has reached me that these seven styles are essentially one, not differing about what is permitted and what is forbidden." -music,mxbai,3,tirmidhi,2780b,630011,0.7596,Another chain with a similar narration -music,mxbai,4,tirmidhi,2783b,630051,0.7578,(Another chain) with a similar narration -music,mxbai,5,tirmidhi,1599,616910,0.7559,Another chain with similar narration. -music,mxbai,6,mishkat,2214,5780970,0.752,"Ibn ‘Abbās reported God’s messenger as saying, “Gabriel taught me to recite in one mode, and when I replied to him and kept asking him to give me more he did so till he reached seven modes."" Ibn Shihāb said he had heard that those seven modes are essentially one, not differing about what is permitted and what is prohibited. (Bukhārī and Muslim.)" -music,mxbai,7,mishkat,3153,5830700,0.7513,"Muhammad b. Hatib al-Jumahi reported the Prophet as saying, “The distinction between what is lawful and what is unlawful is the song and the tambourine at a wedding.” Ahmad, Tirmidhi, Nasa’i and Ibn Majah transmitted it." -music,mxbai,8,hisn,94,1420950,0.7495,"Subḥānallāhi wa biḥamdih: `adada khalqih, wa riḍā nafsih, wa zinata `arshih, wa midāda kalimātih. Glory is to Allah and praise is to Him, by the multitude of His creation, by His Pleasure, by the weight of His Throne, and by the extent of His Words. (Recite three times in Arabic upon rising in the morning.) Reference: Muslim 4/2090." -music,mxbai,9,abudawud,942,809420,0.7494,‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. -music,mxbai,10,hisn,181,1421820,0.7488,"Alhamdu lillāhi ḥamdan kathīran tayyiban mubārakan fīh, ghayra makfiyyin wa lā muwadda`in, wa lā mustaghnan `anhu Rabbanā. All praise is to Allah, praise in abundance, good and blessed. It cannot [be compensated for, nor can it] be left, nor can it be done without, our Lord. Reference: Al-Bukhari 6/214, At-Tirmidhi 5/507." -actions are by intentions,lexical,1,forty,33,1430330,16.884,Actions are through intentions. -actions are by intentions,lexical,2,muslim,1907 a,246920,15.5908,

It has been narrated on the authority of Umar b. al-Khattab that the Messenger of Allah (may peace be upon him) said: (The value of) an action depends on the intention behind it. A man will be rewarded only for what he intended. The emigration of one who emigrates for the sake of Allah and His Messenger (may peace be upon him) is for the sake of Allah and His Messenger (may peace be upon him) ; and the emigration of one who emigrates for gaining a worldly advantage or for marrying a woman… -actions are by intentions,lexical,3,bukhari,26,250,15.5359,"

Narrated Abu Huraira:

Allah's Apostle was asked, ""What is the best deed?"" He replied, ""To believe in Allah and His Apostle (Muhammad). The questioner then asked, ""What is the next (in goodness)? He replied, ""To participate in Jihad (religious fighting) in Allah's Cause."" The questioner again asked, ""What is the next (in goodness)?"" He replied, ""To perform Hajj (Pilgrim age to Mecca) 'Mubrur, (which is accepted by Allah and is performed with the intention of seeking Allah's pleasure only…" -actions are by intentions,lexical,4,bukhari,2641,24730,15.0604,"

Narrated `Umar bin Al-Khattab:

People were (sometimes) judged by the revealing of a Divine Inspiration during the lifetime of Allah's Apostle but now there is no longer any more (new revelation). Now we judge you by the deeds you practice publicly, so we will trust and favor the one who does good deeds in front of us, and we will not call him to account about what he is really doing in secret, for Allah will judge him for that; but we will not trust or believe the one who presents to us…" -actions are by intentions,lexical,5,nasai,3437,1034480,14.9857,"It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: ""Actions are but by intentions, and each man will have but that which he intended. Whoever emigrated for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and whoever emigrated for the sake of some worldly gain or to marry some woman, his emigration was for that for which he emigrated.""" -actions are by intentions,lexical,6,nasai,3794,1038080,14.9857,"It was narrated from 'Umar bin Al-Khattab that the Prophet said: ""Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated.""" -actions are by intentions,lexical,7,riyadussalihin,11,1600110,14.6416,"'Abdullah bin 'Abbas (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said that Allah, the Glorious, said: ""Verily, Allah (SWT) has ordered that the good and the bad deeds be written down. Then He explained it clearly how (to write): He who intends to do a good deed but he does not do it, then Allah records it for him as a full good deed, but if he carries out his intention, then Allah the Exalted, writes it down for him as from ten to seven hundred folds, and even more. But…" -actions are by intentions,lexical,8,nasai,75,1000750,14.5584,"It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: ""The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended.""" -actions are by intentions,lexical,9,abudawud,2201,821950,14.4857,"‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His Apostle, his emigration is to Allaah and His Apostle but his emigration is to a worldly end at which he aims or to a woman whom he marries , his emigration is to that for which he emigrated." -actions are by intentions,lexical,10,bukhari,1558,14680,14.0708,"

Narrated Anas bin Malik:

`Ali came to the Prophet (p.b.u.h) from Yemen (to Mecca). The Prophet asked `Ali, ""With what intention have you assumed Ihram?"" `Ali replied, ""I have assumed Ihram with the same intention as that of the Prophet."" The Prophet said, ""If I had not the Hadi with me I would have finished the Ihram."" Muhammad bin Bakr narrated extra from Ibn Juraij, ""The Prophet said to `Ali, ""With what intention have you assumed the Ihram, O `Ali?"" He replied, ""With the same…" -actions are by intentions,openai-small-en,1,forty,33,1430330,0.9241,Actions are through intentions. -actions are by intentions,openai-small-en,2,nasai,75,1000750,0.7223,"It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: ""The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended.""" -actions are by intentions,openai-small-en,3,nasai,3794,1038080,0.7109,"It was narrated from 'Umar bin Al-Khattab that the Prophet said: ""Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated.""" -actions are by intentions,openai-small-en,4,ibnmajah,4229,1293320,0.7081,It was narrated from Abu Hurairah that the Messenger of Allah (saw) said: “People will be resurrected (and judged) according to their intentions.” -actions are by intentions,openai-small-en,5,ahmad,168,5001680,0.7077,"Umar said: I heard the Messenger of Allah ﷺ say: `Deeds are but by intentions and each man will have but that which he intended. If a man's migration was for the sake of Allah, then his migration was for that for which he migrated, but if his migration was to achieve some worldly aim or to take some woman in marriage, his migration was for that for which he migrated.`" -actions are by intentions,openai-small-en,6,abudawud,2201,821950,0.6958,"‘Umar bin Al Khattab reported the Apostle of Allaah(saws) as saying “Actions are to be judged only by intentions and a man will have only what he intended. When one’s emigration is to Allaah and His Apostle, his emigration is to Allaah and His Apostle but his emigration is to a worldly end at which he aims or to a woman whom he marries , his emigration is to that for which he emigrated." -actions are by intentions,openai-small-en,7,nasai,3437,1034480,0.6949,"It was narrated that 'Umar bin Al-Khattab, may Allah be pleased with him, said that the Messenger of Allah said: ""Actions are but by intentions, and each man will have but that which he intended. Whoever emigrated for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and whoever emigrated for the sake of some worldly gain or to marry some woman, his emigration was for that for which he emigrated.""" -actions are by intentions,openai-small-en,8,tirmidhi,1647,617430,0.6894,"Narrated 'Umar bin Al-Khattab:

That the Messenger of Allah (saws) said: ""Deeds are but with intentions, and for the man is only what he intended. So one whose emigration was to Allah and His Messenger, then his emigration was to Allah and His Messenger. And one whose emigration was to the world, to attain some of it, or woman, to marry her, then his emigration was to what he emigrated.

[Abu 'Eisa said:] This Hadith is Hasan Sahih. Malik bin Anas, Sufyan Ath-Thawri and more than one…" -actions are by intentions,openai-small-en,9,muslim,130,202360,0.6872,"

It is narrated on the authority of Abu Huraira that the Messenger of Allah (may peace be upon him) observed: He who intended to do good, but did not do it, one good was recorded for him, and he who intended to do good and also did it, ten to seven hundred good deeds were recorded for him. And he who intended evil, but did not commit it, no entry was made against his name, but if he committed that, it was recorded." -actions are by intentions,openai-small-en,10,ibnmajah,4230,1293330,0.6857,It was narrated from Jabir that the Messenger of Allah (saw) said: “People will be gathered (on the Day of Resurrection) according to their intentions.” -actions are by intentions,nomic,1,bukhari,6607,62130,0.826,"

Narrated Sahl bin Sa`d:

There was a man who fought most bravely of all the Muslims on behalf of the Muslims in a battle (Ghazwa) in the company of the Prophet. The Prophet looked at him and said. ""If anyone would like to see a man from the people of the Fire, let him look at this (brave man)."" On that, a man from the People (Muslims) followed him, and he was in that state i.e., fighting fiercely against the pagans till he was wounded, and then he hastened to end his life by placing his…" -actions are by intentions,nomic,2,abudawud,1368,813630,0.8197,"Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he would do it continuously." -actions are by intentions,nomic,3,ahmad,184,5001840,0.8165,"It was narrated that Yahya bin Ya'mar and Humaid bin ‘Abdur­-Rahman al­-Himyari said: We met 'Abdullah bin 'Umar and discussed the divine decree (al qadar) and what others said concerning it. He said: When you go back to them, say; Ibn ‘Umar has nothing to do with you and you have nothing to do with him - three times. Then he said: ‘Umar bin al Khattab رضي الله عنه ­­ told me that whilst they were sitting with the Prophet ﷺ ­, a man came to him walking, with a handsome face and hair, wearing…" -actions are by intentions,nomic,4,bukhari,1559,14690,0.8164,"

Narrated Abu Musa:

The Prophet sent me to some people in Yemen and when I returned, I found him at Al-Batha. He asked me, ""With what intention have you assumed Ihram (i.e. for Hajj or for Umra or for both?"") I replied, ""I have assumed Ihram with an intention like that of the Prophet."" He asked, ""Have you a Hadi with you?"" I replied in the negative. He ordered me to perform Tawaf round the Ka`ba and between Safa and Marwa and then to finish my Ihram. I did so and went to a woman from my…" -actions are by intentions,nomic,5,mishkat,3444,5840551,0.8156,"‘Imran b. Husain told that he heard God’s Messenger say, “Vows are of two kinds, so if anyone vows to do an act of obedience, that is for God and must be fulfilled; but if anyone vows, to do an act of disobedience, that is for the devil and must not be fulfilled, but he must make atonement for it to the extent he would do in the case of an oath.”" -actions are by intentions,nomic,6,bulugh,918,2011240,0.8098,"Narrated [Ibn 'Abbas (RA)]: Allah's Messenger (SAW) said, ""There should neither be harming (of others without cause), nor reciprocating harm (between two parties)."" [Reported by Ahmad and Ibn Majah]." -actions are by intentions,nomic,7,ibnmajah,2120,1264390,0.8093,"It was narrated from Abu Hurairah that the Messenger of Allah (SAW) said: ""The oath is only according to the intention of the one who requests the oath to be taken.""'" -actions are by intentions,nomic,8,bukhari,7551,71000,0.8077,"

Narrated `Imran:

I said, ""O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, ""Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.'" -actions are by intentions,nomic,9,adab,490,2204900,0.8071,"Abu Dharr reported that the Prophet, may Allah bless him and grant him peace, reported that Allah, the Blessed and Exalted, said: ""My slaves! I have forbidden injustice for Myself and I have made it forbidden among you, so do not wrong one another. ""My slaves! You err by night and day and I forgive wrong actions and do not care. Ask me for forgiveness and I will forgive you. ""My slaves! All of you are hungry unless I have fed you, so ask Me to feed you, and I will feed you. All of you are naked…" -actions are by intentions,nomic,10,tirmidhi,2007,673100,0.807,"Hudhaifah narrated that the Messenger of Allah said: “Do not be a people without a will of your own, saying: 'If people treat us well, we will treat them well; and if they do wrong, we will do wrong,' but accustom yourselves to do good if people do good, and do not behave unjustly if they do evil.”" -actions are by intentions,mxbai,1,forty,33,1430330,0.988,Actions are through intentions. -actions are by intentions,mxbai,2,forty,5,1430050,0.864,"The person guiding (someone) to do a good deed, is like the one performing the good deed." -actions are by intentions,mxbai,3,forty,18,1430180,0.8358,The felicitous person takes lessons from (the actions of) others. -actions are by intentions,mxbai,4,abudawud,1368,813630,0.8291,"Narrated 'Aishah: The Messenger of Allah (saws) as saying: Choose such actions as you are capable of performing, for Allah does not grow weary till you do. The acts most pleasing to Allah are those which are done most continuously, even if they amount to little. Whenever he began an action, he would do it continuously." -actions are by intentions,mxbai,5,nasai,3794,1038080,0.8226,"It was narrated from 'Umar bin Al-Khattab that the Prophet said: ""Actions are but by intentions, and each person will have but that which he intended. Thus, he whose emigration was for the sake of Allah and His Messenger, his emigration was for the sake of Allah and His Messenger, and he whose emigration was to achieve some worldly gain or to take some woman in marriage, his emigration was for that for which he emigrated.""" -actions are by intentions,mxbai,6,nasai,75,1000750,0.8221,"It was narrated that 'Umar bin Al-Khattab (may Allah be pleased with him) said: ""The Messenger of Allah said: 'Actions are only done with intentions, and every man shall have what he intended. Thus he whose emigration was for Allah and His Messenger, his emigration was for Allah and His Messenger, and he whose emigration was to achieve some worldly benefit or to take some woman in marriage, his emigration was for that which he intended.""" -actions are by intentions,mxbai,7,muslim,2648 b,264030,0.8211,"

This hadith has been transmitted on the authority of Jabir b. Abdullah with the same wording (and includes these words):"" Allah's Messenger (may peace be upon him) said: Every doer of deed is facilitated in his action.""" -actions are by intentions,mxbai,8,bukhari,7551,71000,0.8187,"

Narrated `Imran:

I said, ""O Allah's Apostle! Why should a doer (people) try to do good deeds?' The Prophet said, ""Everybody will find easy to do such deeds as will lead him to his destined place for which he has been created.'" -actions are by intentions,mxbai,9,forty,1,1400010,0.8183,"

It is narrated on the authority of Amirul Mu'minin, Abu Hafs 'Umar bin al-Khattab (ra) who said: I heard the Messenger of Allah (saws) say: ""Actions are (judged) by motives (niyyah), so each man will have what he intended. Thus, he whose migration (hijrah) was to Allah and His Messenger, his migration is to Allah and His Messenger; but he whose migration was for some worldly thing he might gain, or for a wife he might marry, his migration is to that for which he migrated."" [ Narrated Ibn `Abbas:

Allah's Apostle said, ""The Night of Qadr is in the last ten nights of the month (Ramadan), either on the first nine or in the last (remaining) seven nights (of Ramadan)."" Ibn `Abbas added, ""Search for it on the twenty-fourth (of Ramadan)." -ramadan,lexical,2,bukhari,2020,18990,13.8321,"

Narrated `Aisha:

Allah's Apostle used to practice I`tikaf in the last ten nights of Ramadan and used to say, ""Look for the Night of Qadr in the last ten nights of the month of Ramadan.""" -ramadan,lexical,3,bukhari,4502,41840,13.8321,"

Narrated `Aisha:

The people used to fast on the day of 'Ashura' before fasting in Ramadan was prescribed but when (the order of compulsory fasting in) Ramadan was revealed, it was up to one to fast on it (i.e. 'Ashura') or not." -ramadan,lexical,4,bukhari,6991,65760,13.8321,"

Narrated Ibn `Umar:

Some people were shown the Night of Qadr as being in the last seven days (of the month of Ramadan). The Prophet said, ""Seek it in the last seven days (of Ramadan)." -ramadan,lexical,5,bukhari,2008,18880,13.7905,"

Narrated Abu Huraira:

I heard Allah's Apostle saying regarding Ramadan, ""Whoever prayed at night in it (the month of Ramadan) out of sincere Faith and hoping for a reward from Allah, then all his previous sins will be forgiven.""" -ramadan,lexical,6,bukhari,2021,19000,13.774,"

Narrated Ibn `Abbas:

The Prophet said, ""Look for the Night of Qadr in the last ten nights of Ramadan ,' on the night when nine or seven or five nights remain out of the last ten nights of Ramadan (i.e. 21, 23, 25, respectively)." -ramadan,lexical,7,bukhari,1900,17860,13.7329,"

Narrated Ibn `Umar:

I heard Allah's Apostle saying, ""When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting; and if the sky is overcast (and you can't see it) then regard the month of Ramadan as of 30 days.""" -ramadan,lexical,8,bukhari,1906,17920,13.7084,"

Narrated `Abdullah bin `Umar:

Allah's Apostle mentioned Ramadan and said, ""Do not fast unless you see the crescent (of Ramadan), and do not give up fasting till you see the crescent (of Shawwal), but if the sky is overcast (if you cannot see it), then act on estimation (i.e. count Sha'ban as 30 days)." -ramadan,lexical,9,bukhari,3554,33180,13.7084,"

Narrated Ibn `Abbas:

The Prophet was the most generous of all the people, and he used to become more generous in Ramadan when Gabriel met him. Gabriel used to meet him every night during Ramadan to revise the Qur'an with him. Allah's Apostle then used to be more generous than the fast wind." -ramadan,lexical,10,bukhari,4503,41850,13.6841,"

Narrated `Abdullah:

That Al-Ash'ath entered upon him while he was eating. Al-Ash'ath said, ""Today is 'Ashura."" I said (to him), ""Fasting had been observed (on such a day) before (the order of compulsory fasting in) Ramadan was revealed. But when (the order of fasting in) Ramadan was revealed, fasting (on 'Ashura') was given up, so come and eat.""" -ramadan,openai-small-en,1,mishkat,1962,5770060,0.7704,"Abu Huraira reported God’s messenger as saying, “Ramadan, a blessed month, has come to you during which God has made it obligatory for you to fast. In it the gates of heaven are opened, the gates of al-Jahim are locked, and the rebellious devils are chained. In it God has a night which is better than a thousand months. He who is deprived of its good has indeed suffered deprivation."" Ahmad and Nasa’i transmitted it." -ramadan,openai-small-en,2,muslim,1081 a,223780,0.7665,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days." -ramadan,openai-small-en,3,muslim,1079 c,223620,0.7643,"

This hadith is reported by Abu Huraira (with a slight alteration of words) that the Messenger of Allah (may peace be upon him) said:"" When (the month of) Ramadan begins.""" -ramadan,openai-small-en,4,riyadussalihin,1194,1622380,0.7628,'Aishah (May Allah be pleased with her) reported: The Messenger of Allah (PBUH) used to strive more in worship during Ramadan than he strove in any other time of the year; and he would devote himself more (in the worship of Allah) in the last ten nights of Ramadan than he strove in earlier part of the month.

[Muslim].

-ramadan,openai-small-en,5,muslim,1163 a,226110,0.7614,"

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night." -ramadan,openai-small-en,6,muslim,1145 b,225480,0.7592,"

Salama b. Akwa' reported: We, during the lifetime of the Messenger of Allah (may peace be upon him), in one month of Ramadan (observed fast according to our liking). He who wished to fast lasted and he who wished to break broke it and fed a needy person as an expiation 1544 till this verse was revealed:"" He who witnesses among you the month (of Ramadan) he should observe fast during it"" (ii. 184)." -ramadan,openai-small-en,7,muslim,1080 b,223640,0.7579,"

Ibn Umar reported that Allah's Messenger (may peace be upon him) made a mention of Ramadan and he with the gesture of his hand said: The month is thus and thus. (He then withdrew his thumb at the third time). He then said: Fast when you see it, and break your fast when you see it, and if the weather is cloudy calculate it (the months of Sha'ban and Shawwal) as thirty days." -ramadan,openai-small-en,8,muslim,1080 e,223670,0.7564,"

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and if the sky is cloudy for you, then calculate." -ramadan,openai-small-en,9,abudawud,2429,824230,0.7543,"Narrated Abu Hurairah: The Messenger of Allah (saws) as saying: The most excellent fast after Ramadan is Allah's month al-Muharram, and the most excellent prayer after the prescribed prayer is the prayer during night." -ramadan,openai-small-en,10,ibnmajah,3925,1290230,0.7539,"It was narrated from Talhah bin ‘Ubaidullah that two men from Bali came to the Messenger of Allah (saw). They had become Muslim together, but one of them used to strive harder than the other. The one who used to strive harder went out to fight and was martyred. The other one stayed for a year longer, then he passed away. Talhah said: “I saw in a dream that I was at the gate of Paradise and I saw them (those two men). Someone came out of Paradise and admitted the one who had died last, then he…" -ramadan,nomic,1,muslim,1157 a,225830,0.8212,"

Ibn Abbas (Allah be pleased with both of them) reported: The Messenger of Allah (may peace be upon him) did not fast throughout any month except during ramadan. And when he observed fast (he fasted so continuously) that one would say that he would not break (them) and when he Abandoned, he abandoned (so continuously) that one would say: By Allah, perhaps he would never fast." -ramadan,nomic,2,bulugh,163,2001950,0.819,"Narrated Abu Sa'id al-Khudri (RA): I heard Allah's Messenger (SAW) saying: ""No Salat (prayer) is to be offered after the morning prayer until the sun rises, or after the afternoon prayer until the sun sets."" [Agreed upon]." -ramadan,nomic,3,abudawud,1611,816070,0.8174,"Ibn ‘Umar said : The Messenger of Allah(may peace be upon him) prescribed as zakat payable by slave and freeman, male and female, among the muslims on closing the fast of Ramadan one sa of dried dates or one sa’ of barley. (This tradition was read out byu ‘Abd Allah b. Maslamah to Malik)" -ramadan,nomic,4,ahmad,163,5001630,0.813,"Abu ‘Ubaid said: I was present at Eid with ‘Umar, and he started with the prayer before the khutbah. He said: The Messenger of Allah ﷺ forbade fasting on these two days. The day of al-Fitr is the day when you break your fast, and on the day of al-Adha, eat the meat of your sacrifices." -ramadan,nomic,5,malik,629,406310,0.8107,"

Yahya related to me from Malik from Nafi from Abdullah ibn Umar that the Messenger of Allah, may Allah bless him and grant him peace, made the zakat of breaking the fast at the end of Ramadan obligatory on every muslim, whether freeman or slave, male or female, and stipulated it as a sa' of dates or a sa' of barley.

" -ramadan,nomic,6,abudawud,1357,813520,0.8107,"Narrated Ibn 'Abbas: I spent a night in the house of my maternal aunt Maimunah, daughter of al-Harith. The Prophet (saws) offered the night prayer. He then came and prayed four rak'ahs and slept. He then stood up and prayed. I stood at his left side. He made me go round and made me stand at his right side. He then prayed five rak'ahs and slept, and I heard his snoring. He then got up and prayed two rak'ahs. Afterwards he came out and offered the dawn prayer." -ramadan,nomic,7,mishkat,2048,5770910,0.8106,Abu Sa'id al-Khudri said God’s messenger forbade fasting on the day of breaking the fast of Ramadan and on the day of sacrifice. (Bukhari and Muslim.) -ramadan,nomic,8,muslim,979 a,221340,0.81,"

Abu Sa'id al-Khudri reported Allah's Messenger (way peace be upon him) as saying: No sadaqa (zakat) is payable on less than five wasqs of (dates or grains), on less than five camel-heads and on less than five uqiyas (of silver)." -ramadan,nomic,9,malik,,407060,0.8099,"

Malik said, ""There is no harm in someone who is in itikaf entering into a marriage contract as long as there is no physical relationship. A woman in itikaf may also be betrothed as long as there is no physical relationship. What is haram for someone in itikaf in relation to his womenfolk during the day is haram for him during the night.""

Yahya said that Ziyad said that Malik said, ""It is not halal for a man to have intercourse with his wife while he is in itikaf, nor for him to…" -ramadan,nomic,10,muslim,1167 a,226250,0.8096,"

Abu Sa'id al-Khudri (Allah be pleased with him) reported that Allah's Messenger (may peace be upon him) spent in devotion (in i'tikaf) the middle ten nights of the month of Ramadan, and when twenty nights were over and it was the twenty-first night, he went back to his residence and those who were along with him also returned (to their respective residences). He spent one month in devotion. Then he addressed the people on the night he came back (to his residence) and commanded them as Allah…" -ramadan,mxbai,1,muslim,1080 e,223670,0.8869,"

Ibn'Umar (Allah be pleased with-both of them) reported Allah's Messenger (may peace be upon him) as saying: The month of Ramadan may consist of twenty-nine days. So do not fast till you have sighted it (the new moon) and do not break fast, till you have sighted it (the new moon of Shawwal), and if the sky is cloudy for you, then calculate." -ramadan,mxbai,2,muslim,1080 f,223680,0.882,"

'Abdullah b. 'Umar (Allah be pleased with both of them) reported Allah's Messenger (may peace be upon him) as saying: The month (of Ramadan) may consist of twenty nine days; so when you see the new moon observe fast and when you see (the new moon again at the commencement of the month of Shawwal) then break It, and if the sky is cloudy for you, then calculate it (and complete thirty days)." -ramadan,mxbai,3,muslim,1163 a,226110,0.8815,"

Abu Haraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most excellent fast after Ramadan is God's month. al-Muharram, and the most excellent prayer after what is prescribed is prayer during the night." -ramadan,mxbai,4,bukhari,1900,17860,0.8801,"

Narrated Ibn `Umar:

I heard Allah's Apostle saying, ""When you see the crescent (of the month of Ramadan), start fasting, and when you see the crescent (of the month of Shawwal), stop fasting; and if the sky is overcast (and you can't see it) then regard the month of Ramadan as of 30 days.""" -ramadan,mxbai,5,mishkat,2047,5770900,0.8797,"Abu Ayyub al-Ansari told that God’s messenger said, “If anyone fasts during Ramadan, then follows it with six days in Shawwal, it will be like a perpetual fast.” Muslim transmitted it." -ramadan,mxbai,6,mishkat,1817,5760460,0.8785,"Ibn 'Abbas said, “At the end of Ramadan bring forth the sadaqa relating to your fast. God's messenger prescribed this sadaqa as a sa' of dried dates or barley, or half a sa' of wheat payable by every free¬man or slave, male or female, young or old."" Abu Dawud and Nasa’i transmitted it." -ramadan,mxbai,7,riyadussalihin,1167,1622110,0.8784,"Abu Hurairah (May Allah be pleased with him) reported: The Messenger of Allah (PBUH) said, ""The best month for observing Saum (fasting) after Ramadan is Muharram, and the best Salat after the prescribed Salat is Salat at night.""

[Muslim].

" -ramadan,mxbai,8,muslim,1116 a,224770,0.8783,"

Abu Sa'id al-Khudri (Allah be pleased with him) reported: We went out on an expedition with Allah's Messenger (may peace be upon him) on the 16th of Ramadan. Some of us fasted and some of us broke the fast. But neither the observer of the fast found fault with one who broke it, nor the breaker of the fast found fault with one who observed it." -ramadan,mxbai,9,muslim,1081 a,223780,0.878,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Whenever you sight the new moon (of the month of Ramadan) observe fast. and when you sight it (the new moon of Shawwal) break it, and if the sky is cloudy for you, then observe fast for thirty days." -ramadan,mxbai,10,riyadussalihin,1225,1622690,0.876,"Ibn 'Abbas (May Allah be pleased with them) reported: The Messenger of Allah (PBUH) said, ""Do not observe Saum (fasting) before the advent of Ramadan. Observe Saum at sighting of the crescent of Ramadan and terminate it at sighting the crescent (of Shawwal). If the sky is overcast, complete (the month as) thirty (days).""

[At- Tirmidhi].

" -jesus,lexical,1,bukhari,5731,53750,14.4796,"

Narrated Abu Huraira:

Allah's Apostle said, ""Neither Messiah (Ad-Dajjal) nor plague will enter Medina.""" -jesus,lexical,2,bukhari,3444,32170,14.4156,"

Narrated Abu Huraira:

The Prophet said, ""Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus said, 'I believe in Allah and suspect my eyes.""" -jesus,lexical,3,bukhari,3438,32120,14.4027,"

Narrated Ibn `Abbas:

The Prophet said, ""I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of brown complexion, straight hair and tall stature as if he was from the people of Az-Zutt.""" -jesus,lexical,4,bukhari,3948,36900,14.2731,

Narrated Salman:

The interval between Jesus and Muhammad was six hundred years. -jesus,lexical,5,muslim,2368,258400,14.2555,

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person committing theft; thereupon Jesus said to him: You committed theft. He said: Nay. By Him besides Whom there is no god (I have not committed theft). Thereupon Jesus said: I affirm my faith in Allah It is my ownself that deceived me. -jesus,lexical,6,muslim,2365 b,258350,14.2286,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to one religion and no Prophet was raised between me and Jesus." -jesus,lexical,7,bukhari,1882,17680,14.0567,"

Narrated Abu Sa`id Al-Khudri:

Allah's Apostle told us a long narrative about Ad-Dajjal, and among the many things he mentioned, was his saying, ""Ad-Dajjal will come and it will be forbidden for him to pass through the entrances of Medina. He will land in some of the salty barren areas (outside) Medina; on that day the best man or one of the best men will come up to him and say, 'I testify that you are the same Dajjal whose description was given to us by Allah's Apostle .' Ad-Dajjal will…" -jesus,lexical,8,bukhari,7132,67020,14.0567,"

Narrated Abu Sa`id:

One day Allah's Apostle narrated to us a long narration about Ad-Dajjal and among the things he narrated to us, was: ""Ad-Dajjal will come, and he will be forbidden to enter the mountain passes of Medina. He will encamp in one of the salt areas neighboring Medina and there will appear to him a man who will be the best or one of the best of the people. He will say 'I testify that you are Ad-Dajjal whose story Allah's Apostle has told us.' Ad-Dajjal will say (to his…" -jesus,lexical,9,bukhari,3449,32220,14.0057,"

Narrated Abu Huraira:

Allah's Apostle said ""How will you be when the son of Mary (i.e. Jesus) descends amongst you and your imam is among you.""" -jesus,lexical,10,muslim,1677 b,241570,13.9986,

This hadith has been narrated on the authority of Jarir and 'Isa b. Yunus with a slight variation of words. -jesus,openai-small-en,1,bukhari,3444,32170,0.6949,"

Narrated Abu Huraira:

The Prophet said, ""Jesus, seeing a man stealing, asked him, 'Did you steal?, He said, 'No, by Allah, besides Whom there is none who has the right to be worshipped' Jesus said, 'I believe in Allah and suspect my eyes.""" -jesus,openai-small-en,2,muslim,2937 a,270150,0.6918,"

An-Nawwas b. Sam`an reported that Allah's Messenger (may peace be upon him) made a mention of the Dajjal one day in the morning. He (saws) sometimes described him to be insignificant and sometimes described (his turmoil) as very significant (and we felt) as if he were in the cluster of the date-palm trees. When we went to him (to the Holy Prophet) in the evening and he read (the signs of fear) in our faces, he (saws) said: What is the matter with you? We said: Allah's Messenger, you made a…" -jesus,openai-small-en,3,mishkat,5716,5972920,0.6859,"Abu Huraira reported God's messenger as saying, ""On the night when I was taken up to heaven, I met Moses who may be described as a lanky man with somewhat curly hair who resembled one of the men of Shanu'a; I met Jesus who was of medium height and red as though he had come out of a dimas (i.e., a hot bath); and I saw Abraham to whom I am the one among his descendants who bears the closest resemblance. I was brought two vessels, one containing milk and the other wine, and was told to take…" -jesus,openai-small-en,4,bukhari,3448,32210,0.6841,"

Narrated Abu Huraira:

Allah's Apostle said, ""By Him in Whose Hands my soul is, surely (Jesus,) the son of Mary will soon descend amongst you and will judge mankind justly (as a Just Ruler); he will break the Cross and kill the pigs and there will be no Jizya (i.e. taxation taken from non Muslims). Money will be in abundance so that nobody will accept it, and a single prostration to Allah (in prayer) will be better than the whole world and whatever is in it."" Abu Huraira added ""If you…" -jesus,openai-small-en,5,muslim,2897,269240,0.6785,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: The Last Hour would not come until the Romans would land at al-A'maq or in Dabiq. An army consisting of the best (soldiers) of the people of the earth at that time will come from Medina (to counteract them). When they will arrange themselves in ranks, the Romans would say: Do not stand between us and those (Muslims) who took prisoners from amongst us. Let us fight with them; and the Muslims would say: Nay, by Allah,…" -jesus,openai-small-en,6,muslim,2365 c,258360,0.6774,"

Abu Huraira reported many ahadith from Allah's Messenger (may peace be upon him) and one is that Allah's Messenger (may peace be upon him) said: I am most close to Jesus, son of Mary, among the whole of mankind in this worldly life and the next life. They said: Allah's Messenger how is it? Thereupon he said: Prophets are brothers in faith, having different mothers. Their religion is, however, one and there is no Apostle between us (between I and Jesus Christ)." -jesus,openai-small-en,7,muslim,2365 b,258350,0.6765,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: I am most akin to Jesus Christ among the whole of mankind, and all the Prophets are of different mothers but belong to one religion and no Prophet was raised between me and Jesus." -jesus,openai-small-en,8,abudawud,4324,843100,0.6757,"

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down from his head though it will not be wet. He will fight the people for the cause of Islam. He will break the cross, kill swine, and abolish jizyah. Allah will perish all religions except Islam. He…" -jesus,openai-small-en,9,mishkat,2288,5790640,0.6753,"Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the Mighty, the Overpowering, the Great in Majesty, the Creator, the Maker, the Fashioner, the Forgiver, the Dominant, the Bestower, the Provider, the Decider, the Knower, the Withholder, the Plentiful…" -jesus,openai-small-en,10,mishkat,5608,5971830,0.6739,"Hudhaifa and Abu Huraira reported God's messenger as saying, ""God who is blessed and exalted will collect mankind and the believers will stand till paradise is brought near them. They will then go to Adam and say, `Ask, father, that paradise may be opened for us,' but he will reply, `Has anything but your father's sin put you out of paradise? I am not the one to do that; go to my son Abraham, God's friend.' Then Abraham will say, `I am not the one to do that, for I was only a friend long, long…" -jesus,nomic,1,mishkat,1214,5746270,0.7989,"‘A’isha told how God’s Messenger said when he awoke during the night, “There is no god but Thee. Glory be to Thee, O God, and praise be to Thee. I ask for Thy forgiveness of my sin, and I ask for Thy mercy. O God, increase me in knowledge, and do not let my heart swerve after Thou hast guided me. Grant me mercy from Thyself. Thou art indeed the munificent One.” Abu Dawud transmitted it." -jesus,nomic,2,bukhari,1209,11380,0.7957,"

Narrated Aisha:

I used to stretch my legs towards the Qibla of the Prophet while he was praying; whenever he prostrated he touched me, and I would withdraw my legs, and whenever he stood up, I would restretch my legs." -jesus,nomic,3,bukhari,3392,31690,0.7952,"

Narrated `Aisha:

The Prophet returned to Khadija while his heart was beating rapidly. She took him to Waraqa bin Naufal who was a Christian convert and used to read the Gospels in Arabic Waraqa asked (the Prophet), ""What do you see?"" When he told him, Waraqa said, ""That is the same angel whom Allah sent to the Prophet) Moses. Should I live till you receive the Divine Message, I will support you strongly.""" -jesus,nomic,4,muslim,196 c,203830,0.792,

Anas b. Malik said: The Apostle of Allah (may peace be upon him) said: I would be the first intercessor in the Paradise and no apostle amongst the apostles has been testified (by such a large number of people) as I have been testified. And verily there woald be an apostle among the apostles who would be testified to by only one man from his people. -jesus,nomic,5,muslim,201,203960,0.7917,"

Abu Zubair heard Jabir b. Abdullah reporting it from the Apostle of Allah (may peace be upon him): For every apostle was a prayer with which he prayed (to his Lord) for his Ummah, but I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection." -jesus,nomic,6,bukhari,516,4980,0.7907,"

Narrated Abu Qatada Al-Ansari:

Allah's Apostle was praying and he was carrying Umama the daughters of Zainab, the daughter of Allah's Apostle and she was the daughter of 'As bin Rabi`a bin `Abd Shams. When he prostrated, he put her down and when he stood, he carried her (on his neck)." -jesus,nomic,7,bulugh,226,2002740,0.7903,"Narrated Abu Qatada (RA): Allah's Messenger (SAW) was (one time) offering prayer while he was carrying Umama, daughter of Zainab, when he prostrated he put her down and when he stood up he lifted her up. [Agreed upon]." -jesus,nomic,8,mishkat,936,5743580,0.7895,"Ruwaih' reported God’s Messenger as saying, “If anyone invokes a blessing on Muhammad saying, ‘O God, cause him to occupy the place near Thee on the day of resurrection’, he will be guaranteed my intercession.” Ahmad transmitted it." -jesus,nomic,9,mishkat,5572,5971500,0.7893,"Anas reported the Prophet as saying, ""The believers will be restrained on the day of resurrection so that they will be concerned about that and express a desire to find an intercessor with their Lord that He may relieve them from the position in which they are placed. They will go to Adam and say, `You are Adam, the father of mankind, whom God created by His hand, whom He caused to dwell in His garden, to whom He made the angels do obeisance, and whom He taught the names of everything.…" -jesus,nomic,10,muslim,200 a,203920,0.789,

Anas b. Malik reported: Verily the Apostle of Allah (may peace be upon him) said: There is for every apostle a prayer with which he prays (to Allah) for his Ummah. I have reserved my prayer for the intercession of my Ummah on the Day of Resurrection. -jesus,mxbai,1,abudawud,4324,843100,0.826,"

Narrated Abu Hurayrah:

The Prophet (saws) said: There is no prophet between me and him, that is, Jesus (saws). He will descent (to the earth). When you see him, recognise him: a man of medium height, reddish fair, wearing two light yellow garments, looking as if drops were falling down from his head though it will not be wet. He will fight the people for the cause of Islam. He will break the cross, kill swine, and abolish jizyah. Allah will perish all religions except Islam. He…" -jesus,mxbai,2,mishkat,2288,5790640,0.8246,"Abu Huraira reported God’s messenger as saying, “God Most High has ninety-nine names. He who retains them in his memory will enter paradise. He is God than whom there is no god, the Compassionate, the Merciful, the King, the Holy, the Source of Peace, the Preserver of security, the Protector, the Mighty, the Overpowering, the Great in Majesty, the Creator, the Maker, the Fashioner, the Forgiver, the Dominant, the Bestower, the Provider, the Decider, the Knower, the Withholder, the Plentiful…" -jesus,mxbai,3,bukhari,3438,32120,0.8234,"

Narrated Ibn `Abbas:

The Prophet said, ""I saw Moses, Jesus and Abraham (on the night of my Ascension to the heavens). Jesus was of red complexion, curly hair and a broad chest. Moses was of brown complexion, straight hair and tall stature as if he was from the people of Az-Zutt.""" -jesus,mxbai,4,muslim,194 a,203780,0.8198,"

Abu Huraira reported: Meat was one day brought to the Messenger of Allah (may peace be upon him) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of it and said: I shall be the leader of mankind on the Day of Resurrection. Do you know why? Allah would gather in one plain the earlier and the later (of the human race) on the Day of Resurrection. Then the voice of the proclaimer would be heard by all of them and the eyesight would penetrate through…" -jesus,mxbai,5,riyadussalihin,1866,1616560,0.8194,"Abu Huraira reported: Meat was one day brought to the Messenger of Allah (ﷺ) and a foreleg was offered to him, a part which he liked. He sliced with his teeth a piece out of it and said: I shall be the leader of mankind on the Day of Resurrection. Do you know why? Allah would gather in one plain the earlier and the later (of the human race) on the Day of Resurrection. Then the voice of the proclaimer would be heard by all of them and the eyesight would penetrate through all of them and the sun…" -jesus,mxbai,6,mishkat,1897,5761250,0.8186,"‘A’isha reported God’s messenger as saying, “Everyone of the children of Adam has been created with three hundred and sixty joints, so he who declares God’s greatness, praises God, declares that He is the only God, glorifies God, asks forgiveness of God, removes a stone, a thorn, or a bone from people’s path, enjoins what is reputable, or forbids what is objectionable to the number of those three hundred and sixty, will walk that day having removed himself from hell.” Muslim transmitted it." -jesus,mxbai,7,abudawud,4641,846240,0.8183,‘Awf said: I heard al-Hajjaj addressing the people say: The similitude of ‘Uthman with Allah is like the similitude of Jesus son of Mary. He then recited the following verse and explained it: “Behold! Allah said: O Jesus! I will take thee and raise thee to Myself and clear thee (of the falsehood) of those who blaspheme.” He was making a sign with his hand to us and to the people of Syria. -jesus,mxbai,8,muslim,2368,258400,0.8175,

Abu Huraira reported ahadith from the Messenger of Allah (may peace be upon him) (and one of them was) that Allah's Messenger (may peace be upon him) said Jesus son of Mary saw a person committing theft; thereupon Jesus said to him: You committed theft. He said: Nay. By Him besides Whom there is no god (I have not committed theft). Thereupon Jesus said: I affirm my faith in Allah It is my ownself that deceived me. -jesus,mxbai,9,bukhari,7510,70600,0.8169,"

Narrated Ma`bad bin Hilal Al-`Anzi:

We, i.e., some people from Basra gathered and went to Anas bin Malik, and we went in company with Thabit Al-Bunnani so that he might ask him about the Hadith of Intercession on our behalf. Behold, Anas was in his palace, and our arrival coincided with his Duha prayer. We asked permission to enter and he admitted us while he was sitting on his bed. We said to Thabit, ""Do not ask him about anything else first but the Hadith of Intercession."" He said, ""O…" -jesus,mxbai,10,bukhari,3441,32140,0.816,"

Narrated Salim from his father:

No, By Allah, the Prophet did not tell that Jesus was of red complexion but said, ""While I was asleep circumambulating the Ka`ba (in my dream), suddenly I saw a man of brown complexion and lank hair walking between two men, and water was dropping from his head. I asked, 'Who is this?' The people said, 'He is the son of Mary.' Then I looked behind and I saw a red-complexioned, fat, curly-haired man, blind in the right eye which looked like a bulging out…" -sex,lexical,1,bukhari,7379,69320,15.8248,"

Narrated Ibn `Umar:

The Prophet said, ""The keys of the unseen are five and none knows them but Allah: (1) None knows (the sex) what is in the womb, but Allah: (2) None knows what will happen tomorrow, but Allah; (3) None knows when it will rain, but Allah; (4) None knows where he will die, but Allah (knows that); (5) and none knows when the Hour will be established, but Allah.""" -sex,lexical,2,ibnmajah,4045,1291450,12.553,"It was narrated that Anas bin Malik said: “Shall I not tell you a Hadith that I heard from the Messenger of Allah (saw), which no one will tell you after me? I heard it from him (saying): ‘Among the portents of the Hour are that knowledge will be taken away and ignorance will prevail, illegal sex will become widespread and wine will be drunk, and men will disappear and women will be left, until there is one man in charge of fifty women.”" -sex,lexical,3,muslim,1453 c,234260,12.3963,"

Ibn Abu Mulaika reported that al-Qasim b. Muhammad b. Abu Bakr had narrated to him that 'A'isha (Allah be pleased with her) reported that Sahla bint Suhail b. 'Amr came to Allah's Apostle (may peace be upon him) and said: Messenger of Allah, Salim (the freed slave of Abu Hudhaifa) is living with us in our house, and he has attained (puberty) as men attain it and has acquired knowledge (of the sex problems) as men acquire, whereupon he said: Suckle him so that he may become unlawful (in…" -sex,lexical,4,ibnmajah,2694,1270110,12.2945,"Mu'adh bin Jabal, Abu Ubaidah bin Jararah, Ubadah bin Samit and Shaddad bin Aws narrated that the Messenger of Allah (SAW) said: “If a woman kills someone deliberately, she should not be killed until she delivers what is in her womb, if she is pregnant, and until the child's sponsorship is guaranteed. And if a woman commits illegal sex, she should not be stoned until she delivers what is in her womb and until her child's sponsorship is guaranteed.”" -sex,lexical,5,ibnmajah,2574,1268910,11.0722,"It was narrated that Sa'eed bin Sa'd bin `Ubadah said: “There was a man living among our dwellings who had a physical defect, and to our astonishment he was seen with one of the slave women of the dwellings, committing illegal sex with her. Sa'd bin 'Ubadah referred his case to the Messenger of Allah (SAW), who said: 'Give him one hundred lashes.' They said: 'O Prophet (SAW) of Allah (SAW), he is too weak to bear that. If we give him one hundred lashes he will die.' He said: “Then take a branch…" -sex,openai-small-en,1,bukhari,1545,14560,0.6616,"

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they may leave the scent on the skin. And so in the early morning, the Prophet mounted his Mount while in Dhul-Hulaifa and set out till they reached Baida', where he and his companions recited Talbiya, and…" -sex,openai-small-en,2,malik,1824,418780,0.6498,"

Malik related to me from Zayd ibn Aslam from Ata ibn Yasar that the Messenger of Allah, may Allah bless him and grant him peace, said, ""Whomever Allah protects from the evil of two things will enter the Garden."" A man said, ""Messenger of Allah, do not tell us!"" The Messenger of Allah, may Allah bless him and grant him peace, was silent. Then the Messenger of Allah, may Allah bless him and grant him peace, repeated what he had said the first time. The man said to him, ""Do not tell us,…" -sex,openai-small-en,3,bulugh,1012,2012600,0.6451,"Sa'id (bin Mansur) also reported something similar from 'Ali (RA) and added: ""And (if) she has something like a horn (Qarn) (coming out of her vagina), her husband then has the right to divorce her or keep her. And if he had intercourse with her, she gets her dowry for the intercourse her husband has had.""" -sex,openai-small-en,4,mishkat,3190,5831050,0.6449,"Abu Sa'id al-Khudri reported God's Messenger as saying, “The most serious breach of trust in God’s sight on the day of resurrection ...” A version has, “Among those who will have the worst position in God’s sight on the day of resurrection is the man who has intercourse with his wife, and she with him, and then spreads her secret.”* * i.e. talks about the subject to others, or tells people about defects or beauties he has found in her. Muslim transmitted it." -sex,openai-small-en,5,mishkat,3341,5832530,0.6443,"Ibn ‘Umar said that when a girl with whom intercourse might be had was given as a present, or sold, or set free, it was necessary to wait till she had had a menstrual period, but that this was unnecessary in the case of a virgin. Razin transmitted." -sex,openai-small-en,6,muslim,1435 a,233630,0.6418,"

Jabir (Allah be pleased with him) declared that the Jews used to say: When a man has intercourse with his wife through the vagina but being on her back. the child will have squint, so the verse came down:"" Your wives are your tilth; go then unto your tilth as you may desire"" (ii. 223)" -sex,openai-small-en,7,mishkat,86,5710800,0.6409,"Abu Huraira reported God's messenger as saying, “God has decreed for man his portion of fornication which he will inevitably commit. The fornication of the eye consists in looking, and of the tongue in speech. The soul wishes and desires, and the private parts accord with that or reject it.” (Bukhari and Muslim.) In a version by Muslim he said, “Man’s share of fornication which he will inevitably commit is decreed for him. The fornication of the eyes consists in looking, of the ears in hearing,…" -sex,openai-small-en,8,malik,1135,411670,0.6395,"

Yahya related to me from Malik from Ibn Shihab, and he had heard from al-Qasim ibn Muhammad that they said, ""When a free man marries a slave-girl and consummates the marriage, she makes him muhsan.""

Malik said, ""All (of the people of knowledge) I have seen said that a slave-girl makes a free man muhsan when he marries her and consummates the marriage.""

Malik said, ""A slave makes a free woman muhsana when he consummates a marriage with her and a free woman only makes a…" -sex,openai-small-en,9,muslim,1438 a,233710,0.6379,"

Abu Sirma said to Abu Sa'id al Khadri (Allah he pleased with him): 0 Abu Sa'id, did you hear Allah's Messenger (may peace be upon him) mentioning al-'azl? He said: Yes, and added: We went out with Allah's Messenger (may peace be upon him) on the expedition to the Bi'l-Mustaliq and took captive some excellent Arab women; and we desired them, for we were suffering from the absence of our wives, (but at the same time) we also desired ransom for them. So we decided to have sexual intercourse…" -sex,openai-small-en,10,bukhari,6818,64180,0.6361,"

Narrated Abu Huraira:

The Prophet said, ""The boy is for (the owner of) the bed and the stone is for the person who commits illegal sexual intercourse.'" -sex,nomic,1,mishkat,3143,5830620,0.8485,"‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful."" (Bukhari and Muslim.)" -sex,nomic,2,muslim,348 a,206820,0.8351,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." -sex,nomic,3,bulugh,995,2012380,0.8327,"Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, ""The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)."" [Agreed upon]." -sex,nomic,4,bulugh,119,2001460,0.8325,"Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through the roots of the hair. Then he would pour three handfuls on his head, then pour water over the rest of his body and subsequently wash his feet. [Agreed upon and this version is of Muslim]" -sex,nomic,5,bulugh,110,2001320,0.8277,"Narrated Abu Huraira (rad): Allah’s Messenger (saw) said that, “If one of you sits between her legs (of a woman) and penetrates her, Ghusl (bath) is obligatory.” [Agreed upon]." -sex,nomic,6,muslim,1418,233020,0.8261,"

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word"" condition"" ) it is"" conditions""." -sex,nomic,7,abudawud,265,802650,0.826,"Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given)" -sex,nomic,8,muslim,346 b,206780,0.8254,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." -sex,nomic,9,bulugh,117,2001430,0.8218,"Narrated Abu Sa’id Al-Khudri (rad): Allah’s Messenger (saw) said, “If one of you has sexual intercourse with his wife and wishes to repeat he should perform ablution between them” [Reported by Muslim]." -sex,nomic,10,muslim,321 c,206290,0.8205,

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. -sex,mxbai,1,bulugh,117,2001440,0.8391,A-Hakim added: “Ablution makes one active for repeating (the sexual act).” -sex,mxbai,2,muslim,321 c,206290,0.8145,

'A'isha reported: I and the Messenger (may peace be upon him) took a bath from the same vessel and our hands alternated into it in the state that we had had sexual intercourse. -sex,mxbai,3,muslim,348 a,206820,0.8112,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." -sex,mxbai,4,bukhari,1545,14560,0.8087,"

Narrated `Abdullah bin `Abbas:

The Prophet with his companions started from Medina after combing and oiling his hair and putting on two sheets of lhram (upper body cover and waist cover). He did not forbid anyone to wear any kind of sheets except the ones colored with saffron because they may leave the scent on the skin. And so in the early morning, the Prophet mounted his Mount while in Dhul-Hulaifa and set out till they reached Baida', where he and his companions recited Talbiya, and…" -sex,mxbai,5,mishkat,3143,5830620,0.8082,"‘Uqba b. ‘Amir reported God’s Messenger as saying, “The most worthy conditions you fulfil are those by which you make sexual intercourse lawful."" (Bukhari and Muslim.)" -sex,mxbai,6,abudawud,265,802650,0.8081,"Ibn ‘Abbas said: If one has intercourse in the beginning of the menses,(one should give) one dinar; in case one has intercourse towards the end of the menses, then half a dinar (should be given)" -sex,mxbai,7,mishkat,330,5730430,0.8072,"Ibn ‘Umar used to say, “A man’s kiss to his wife and his touching her with his hand are connected with sexual intercourse, and anyone who kisses his wife or touches her with his hand must perform ablution.” Malik and Shafi‘i transmitted it." -sex,mxbai,8,muslim,1418,233020,0.8048,"

'Uqba b. Amir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The most worthy condition which must be fulfilled is that which makes sexual intercourse lawful. In the narration transmitted by Ibn Muthanna (instead of the word"" condition"" ) it is"" conditions""." -sex,mxbai,9,bukhari,293,2930,0.804,"

Narrated Ubai bin Ka`b:

I asked Allah's Apostle about a man who engages in sexual intercourse with his wife but does not discharge. He replied, ""He should wash the parts which comes in contact with the private parts of the woman, perform ablution and then pray."" (Abu `Abdullah said, ""Taking a bath is safer and is the last order."")" -sex,mxbai,10,muslim,346 b,206780,0.8031,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." -marriage,lexical,1,bukhari,6968,65540,19.7524,"

Narrated Abu Huraira:

The Prophet said, ""A virgin should not be married till she is asked for her consent; and the matron should not be married till she is asked whether she agrees to marry or not."" It was asked, ""O Allah's Apostle! How will she (the virgin) express her consent?"" He said, ""By keeping silent."" Some people said that if a virgin is not asked for her consent and she is not married, and then a man, by playing a trick presents two false witnesses that he has married her with…" -marriage,lexical,2,bukhari,6970,65560,19.6176,"

Narrated Abu Haraira:

Allah's Apostle said, ""A lady slave should not be given in marriage until she is consulted, and a virgin should not be given in marriage until her permission is granted."" The people said, ""How will she express her permission?"" The Prophet said, ""By keeping silent (when asked her consent)."" Some people said, ""If a man, by playing a trick, presents two false witnesses before the judge to testify that he has married a matron with her consent and the judge confirms his…" -marriage,lexical,3,bukhari,5138,48080,19.6031,

Narrated Khansa bint Khidam Al-Ansariya:

that her father gave her in marriage when she was a matron and she disliked that marriage. So she went to Allah's Apostle and he declared that marriage invalid. -marriage,lexical,4,bukhari,6961,65470,19.5531,"

Narrated Muhammad bin `Ali:

`Ali was told that Ibn `Abbas did not see any harm in the Mut'a marriage. `Ali said, ""Allah's Apostle forbade the Mut'a marriage on the Day of the battle of Khaibar and he forbade the eating of donkey's meat."" Some people said, ""If one, by a tricky way, marries temporarily, his marriage is illegal."" Others said, ""The marriage is valid but its condition is illegal.""" -marriage,lexical,5,bukhari,6945,65330,19.4861,"

Narrated Khansa' bint Khidam Al-Ansariya:

That her father gave her in marriage when she was a matron and she disliked that marriage. So she came and (complained) to the Prophets and he declared that marriage invalid. (See Hadith No. 69, Vol. 7)" -marriage,lexical,6,bukhari,1837,17250,19.3925,"

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held)." -marriage,lexical,7,bukhari,5148,48170,19.2407,"

Narrated Anas:

`Abdur Rahman bin `Auf married a woman and gave her gold equal to the weight of a date stone (as Mahr). When the Prophet noticed the signs of cheerfulness of the marriage (on his face) and asked him about it, he said, ""I have married a woman and gave (her) gold equal to a date stone in weight (as Mahr)." -marriage,lexical,8,muslim,1406 j,232602,19.2056,"

This hadith has been narrated on the authority of Rabi' b. Sabra that Allah's Messenger (may peace be upon him) forbade to contract temporary marriage with women at the time of Victory, and that his father had contracted the marriage for two red cloaks." -marriage,lexical,9,bukhari,5109,47840,19.132,"

Narrated Abu Huraira:

Allah's Apostle said, ""A woman and her paternal aunt should not be married to the same man; and similarly, a woman and her maternal aunt should not be married to the same man.""" -marriage,lexical,10,bukhari,4258,39651,19.132,

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of lhram but he consummated that marriage after finishing that state. Maimuna died at Saraf (i.e. a place near Mecca). -marriage,openai-small-en,1,ibnmajah,1847,1261640,0.7042,"It was narrated from Ibn Abbas that: the Messenger of Allah said: “There is nothing like marriage, for two who love one another.”" -marriage,openai-small-en,2,abudawud,2272,822650,0.7,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till… -marriage,openai-small-en,3,bukhari,5127,47975,0.6987,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. ""Send for so-and-so and have sexual…" -marriage,openai-small-en,4,malik,,414990,0.6956,"

Yahya said that he heard Malik say, ""The way of doing things in our community about which there is no dispute, is that if a man gives sadaqa to his son - sadaqa which the son takes possession of or which is in the father's keeping and the father has had his sadaqa witnessed, he cannot take back any of it because he cannot reclaim any sadaqa.""

Yahya said that he heard Malik say, ""The generally agreed-on way of doing things in our community in the case of someone who gives his son a…" -marriage,openai-small-en,5,abudawud,2130,821250,0.689,"

Narrated AbuHurayrah:

When the Prophet (saws) congratulated a man on his marriage, he said: May Allah bless for you, and may He bless on you, and combine both of you in good (works).

" -marriage,openai-small-en,6,tirmidhi,1101,671000,0.6872,"Abu Musa narrated that : the Messenger of Allah said: ""There is no marriage except with a Wali.""" -marriage,openai-small-en,7,ibnmajah,1846,1261630,0.687,"It was narrated from Aishah that: the Messenger of Allah said: “Marriage is part of my sunnah, and whoever does not follow my sunnah has nothing to do with me. Get married, for I will boast of your great numbers before the nations. Whoever has the means, let him get married, and whoever does not, then he should fast for it will diminish his desire.”" -marriage,openai-small-en,8,mishkat,3093,5830140,0.6862,"Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted." -marriage,openai-small-en,9,muslim,1405 d,232490,0.6861,

Jabir b. 'Abdullah reported: We contracted temporary marriage giving a handful of (tales or flour as a dower during the lifetime of Allah's Messenger (may peace be upon him) and durnig the time of Abu Bakr until 'Umar forbade it in the case of 'Amr b. Huraith. -marriage,openai-small-en,10,bukhari,5150,48190,0.6859,"

Narrated Sahl bin Sa`d:

The Prophet said to a man, ""Marry, even with (a Mahr equal to) an iron ring.""" -marriage,nomic,1,bulugh,993,2012360,0.8659,Narrated Ibn 'Abbas (RA): The Prophet (SAW) married Maimunah (RA) when he was in the state of Ihram (during pilgrimage). [Agreed upon]. -marriage,nomic,2,mishkat,2682,5815560,0.8642,Ibn ‘Abbas said that the Prophet married Maimuna when he was on pilgrimage. Bukhari and Muslim. -marriage,nomic,3,bukhari,1837,17250,0.8626,"

Narrated Ibn `Abbas:

The Prophet married Maimuna while he was in the state of Ihram, (only the ceremonies of marriage were held)." -marriage,nomic,4,bukhari,5114,47880,0.8606,

Narrated Ibn `Abbas:

The Prophet got married while he was in the state of Ihram. -marriage,nomic,5,mishkat,3093,5830140,0.8564,"Ibn ‘Abbas reported God’s Messenger as saying, “You have seen nothing like marriage for increasing the love of two people.” Ibn Majah transmitted." -marriage,nomic,6,abudawud,2272,822650,0.8557,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till… -marriage,nomic,7,bukhari,5127,47975,0.8551,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. ""Send for so-and-so and have sexual…" -marriage,nomic,8,bukhari,5261,49270,0.8543,"

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, ""No, she cannot marry the first husband unless the second husband consummates his marriage with her, just as the first husband had done.""" -marriage,nomic,9,ibnmajah,1991,1263100,0.8543,"It was narrated from 'Abdul-Malik bin Harith bin Hisham, from his father, that: the Prophet married Umm Salamah in Shawwal, and consummated the marriage with her in Shawwal." -marriage,nomic,10,abudawud,2047,820430,0.8542,"Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).”" -marriage,mxbai,1,forty,21,1430210,0.8446,A man will be with whom he loves. -marriage,mxbai,2,abudawud,2047,820430,0.8333,"Abu Hurairah reported the Prophet (saws) as saying “Women may be married for four reasons: for her property, her ranks, her beauty and her religiosity. So get the one who is religious and prosper (lit. may your hands cleave to the dust).”" -marriage,mxbai,3,bulugh,967,2011910,0.8322,"Narrated 'Abdullah bin Mas'ud (RA): Allah's Messenger (SAW) said to us, ""O young men, those of you who can support a wife should marry, for it (marriage) controls the gaze and preserves one from immorality. And whoever cannot (marry) should fast, for it is a means of reducing the sexual desire."" [Agreed upon]." -marriage,mxbai,4,bukhari,2721,25460,0.831,"

Narrated `Uqba bin Amir:

Allah's Apostle said, ""From among all the conditions which you have to fulfill, the conditions which make it legal for you to have sexual relations (i.e. the marriage contract) have the greatest right to be fulfilled.""" -marriage,mxbai,5,bulugh,1127,2014020,0.829,"Narrated 'Aishah (RA): Allah's Messenger (SAW) said, ""One or two sucks do not make (marriage) unlawful."" [Muslim reported it]." -marriage,mxbai,6,bukhari,5090,47660,0.8282,"

Narrated Abu Huraira:

The Prophet said, ""A woman is married for four things, i.e., her wealth, her family status, her beauty and her religion. So you should marry the religious woman (otherwise) you will be a losers." -marriage,mxbai,7,bulugh,995,2012380,0.8278,"Narrated 'Uqbah bin 'Aamir (RA): Allah's Messenger (SAW) said, ""The most worthy conditions to be fulfilled are those by which you make sexual intercourse lawful for yourselves (in marriage)."" [Agreed upon]." -marriage,mxbai,8,bukhari,5119,47912,0.8278,"Salama bin Al-Akwa` said: Allah's Apostle's said, ""If a man and a woman agree (to marry temporarily), their marriage should last for three nights, and if they like to continue, they can do so; and if they want to separate, they can do so."" I do not know whether that was only for us or for all the people in general. Abu `Abdullah (Al-Bukhari) said: `Ali made it clear that the Prophet said, ""The Mut'a marriage has been cancelled (made unlawful)." -marriage,mxbai,9,tirmidhi,1084,670830,0.8271,"Abu Hurairah narrated that: The Messenger of Allah said: ""When someone whose religion and character you are pleased with proposes to (someone under the care) of one of you, then marry to him. If you do not do so, then there will be turmoil (Fitnah) in the land and abounding discord (Fasad).""" -marriage,mxbai,10,bulugh,1034,2012880,0.827,It is a portion of the long Hadith preceding in the beginning of the Book of Marriage. -masturbation,openai-small-en,1,muslim,348 a,206820,0.6782,"

Abu Huraira reported: The Apostle of Allah (may peace be upon him) said: When a man has sexual intercourse, bathing becomes obligatory (both for the male and the female). In the hadith of Matar the words are: Even if there is no orgasm. Zuhair has narrated it with a minor alteration of words." -masturbation,openai-small-en,2,ibnmajah,480,1254790,0.6765,"It was narrated that Jabir bin 'Abdullah said: ""The Messenger of Allah said: 'If anyone of you touches his penis, then he has to perform ablution.'""" -masturbation,openai-small-en,3,abudawud,206,802060,0.6758,"‘Ali said: My prostatic fluid flowed excessively. I used to take a bath until my back cracked (because of frequent washing). I mentioned it to the prophet (May peace be upon him), or the fact was mentioned to him (by someone else). The Messenger of Allah (May peace be upon him) said; Do not do so. When you find prostatic fluid, wash your penis and perform ablution as you do for your prayer, but when you have seminal emission, you should take a bath." -masturbation,openai-small-en,4,muslim,346 b,206780,0.6745,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." -masturbation,openai-small-en,5,bulugh,72,2000870,0.6735,"Narrated Talq bin ‘Ali (rad): A man said: “I touched my penis” or he said, “Does a man who touch his penis during the prayer should perform Wudu (ablution)?” The Prophet (saw) replied, “No, it is only a part of your body”. [Reported by Al-Khamsa. Ibn Hibban graded it Sahih (sound)." -masturbation,openai-small-en,6,abudawud,211,802110,0.6727,

Narrated Abdullah ibn Sa'd al-Ansari:

I asked the Messenger of Allah (saws) as to what makes it necessary to take a bath and about the (prostatic) fluid that flows after taking a bath. He replied: that is called madhi (prostatic fluid). It flows from every male. You should wash your private parts and testicles because of it and perform ablution as you do for prayer.

-masturbation,openai-small-en,7,ibnmajah,479,1254780,0.6695,"It was narrated that Busrah bint Safwan said: ""The Messenger of Allah said: 'If anyone of you touches his penis, let him perform ablution.'""" -masturbation,openai-small-en,8,tirmidhi,82,660820,0.669,"Busrah bint Safwan narrated that : the Prophet said: ""Whoever touches his penis, then he is not to pray until he performs Wudu""" -masturbation,openai-small-en,9,muslim,303 c,205950,0.6684,

Ibn 'Abbas reported it from 'Ali: We sent al-Miqdad b. al-Aswad to the Messenger of Allah (may peace be upon him) to ask him what must be done about prostatic fluid which flows from (the private part of) a person. The Messenger of Allah (may peace be upon him) said: Perform ablution and wash your sexual organ. -masturbation,openai-small-en,10,bukhari,260,2610,0.6677,"

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his feet." -masturbation,nomic,1,bulugh,119,2001460,0.8129,"Narrated ‘Aisha (rad): Whenever Allah’s Messenger (saw) took Ghusl (bath) after sexual intercourse, he would begin by washing his hands, then pour water with his right hand on his left hand and wash his sexual organ. He would then perform ablution, then take some water and run his fingers through the roots of the hair. Then he would pour three handfuls on his head, then pour water over the rest of his body and subsequently wash his feet. [Agreed upon and this version is of Muslim]" -masturbation,nomic,2,bukhari,464,4560,0.8127,"

Narrated Um Salama:

I complained to Allah's Apostle that I was sick. He told me to perform the Tawaf behind the people while riding. So I did so and Allah's Apostle was praying beside the Ka`ba and reciting the Sura starting with ""Wat-tur wa kitabin mastur.""" -masturbation,nomic,3,ahmad,847,5008470,0.8107,"It was narrated that ‘Ali (رضي الله عنه) said: I was a man who emitted a great deal of madhi. I asked the Prophet (ﷺ) and he said: “If you ejaculate, then do ghusl for janabah, and if you do not ejaculate, then do not do ghusl.”" -masturbation,nomic,4,bulugh,111,2001350,0.8105,"Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon]" -masturbation,nomic,5,bukhari,260,2610,0.8079,"

Narrated Maimuna:

The Prophet took the bath of Janaba. (sexual relation or wet dream). He first cleaned his private parts with his hand, and then rubbed it (that hand) on the wall (earth) and washed it. Then he performed ablution like that for the prayer, and after the bath he washed his feet." -masturbation,nomic,6,muslim,316 d,206190,0.807,"

'Urwa has narrated it on the authority of 'A'isha that when Allah's Messenger (may peace be upon him) took a bath because of sexual intercourse, he first washed his hands before dipping one of them into the basin, and then performed ablu- tion as is done for prayer." -masturbation,nomic,7,mishkat,340,5730520,0.8065,"Abu Qatada reported God’s messenger as saying, ""When one of you drinks he must not breathe into the vessel, and when he goes to relieve himself he must not touch his penis with his right hand, or wipe himself with his right hand.” (Bukhari and Muslim.)" -masturbation,nomic,8,bukhari,258,2590,0.8061,"

Narrated `Aisha:

Whenever the Prophet took the bath of Janaba (sexual relation or wet dream) he asked for the Hilab or some other scent. He used to take it in his hand, rub it first over the right side of his head and then over the left and then rub the middle of his head with both hands." -masturbation,nomic,9,nasai,387,1003890,0.8043,"It was narrated that 'Aishah said: ""The Prophet (PBUH) would put his head out while he was performing I'tikaf and I would wash it, while I was menstruating.""" -masturbation,nomic,10,muslim,346 b,206780,0.804,"

Ubayy ibn Ka'b narrated it from the Messenger of Allah (may peace be upon him) that he said: If a person has sexual intercourse with his wife, but does not experience orgasm, he should wash his organ and perform an ablution." -masturbation,mxbai,1,bulugh,117,2001440,0.8507,A-Hakim added: “Ablution makes one active for repeating (the sexual act).” -masturbation,mxbai,2,bulugh,64,2000760,0.82,"Narrated ‘Umar (rad), in a Mawquf (untraceable) and Anas in a Marfu (traceable) Hadith: “If one of you performs ablution and puts on his two leather socks, let him perform Mash (wipe) over them and pray in them and he may not take them off he so wishes except after ejaculation or sexual impurity. [Reported by Ad-Daraqutni and Al-Hakim and graded Sahih (sound) by him]." -masturbation,mxbai,3,bulugh,110,2001330,0.8168,And Muslim added: “Even if he does not ejaculate”. -masturbation,mxbai,4,bulugh,73,2000890,0.8162,"Narrated Busra bint Safwan (rad): Allah’s Messenger (saw) said, “He who touches his penis should perform ablution”. [Reported by Al-Khamsa, and At-Tirmidhi and Ibn Hibban graded it Sahih (sound)." -masturbation,mxbai,5,bulugh,28,2000350,0.8143,In yet another version of Muslim: Verily! I (‘Aisha) used to scrape it (the semen) off his garment with my nails while it was dry. -masturbation,mxbai,6,mishkat,287,5730060,0.8135,"‘Uthman performed ablution, pouring water over his hands three times, then rinsing his mouth and snuffing up water, then washing his face three times, then washing his right arm up to the elbow three times, then washing his left arm up to the elbow three times, then wiping his head, then washing his right foot three times, then the left three times. He then said, “I have seen God’s messenger performing ablution as I have done it just now,” adding, “If anyone performs ablution as I have done,…" -masturbation,mxbai,7,bulugh,111,2001350,0.8128,"Narrated Anas (rad): Allah’s Messenger (saw) said about the precept of a woman having ejaculation during sleep like a man, “She should take a Ghusl (bath)”. [Agreed upon]" -masturbation,mxbai,8,bulugh,109,2001300,0.812,Narrated Abu Sa’id Al-Khudri (rad): Allah’s Mesenger (saw) said: “The water (of the ghusl) is due to the water (of sexual emission)”. [Reported by Muslim] -masturbation,mxbai,9,tirmidhi,3415,681260,0.8118,Maslamah bin `Amr said: “`Umair bin Hani used to perform a thousand prostrations every day and recite a hundred thousand Tasbīḥs every day.” -masturbation,mxbai,10,shamail,32,1800310,0.8108,A’isha said: “I used to comb the hair of Allah’s Messenger (Allah bless him and give him peace) while I was menstruating.” -racism,openai-small-en,1,ahmad,614,5006140,0.6237,It was narrated that `Ali (رضي الله عنه)said: The Messenger of Allah (ﷺ) said: “No one hates the Arabs except a hypocrite.” -racism,openai-small-en,2,ibnmajah,69,1250690,0.6207,"It was narrated that 'Abdullah said: ""The Messenger of Allah (SAW) said: 'Verbally abusing a Muslim is immorality and fighting him is Kufr (disbelief).'""" -racism,openai-small-en,3,malik,1831,418850,0.6196,"

Malik related to me that he heard that Abdullah ibn Masud used to say, ""The slave continues to lie and a black spot grows in his heart until all his heart becomes black. Then he is written, in Allah's sight, among the liars.""

" -racism,openai-small-en,4,abudawud,4877,848590,0.6188,"

Narrated AbuHurayrah:

The Prophet (saws) said: The gravest sin is going to lengths in talking unjustly against a Muslim's honour, and it is a major sin to abuse twice for abusing once.

" -racism,openai-small-en,5,malik,1600,416570,0.6177,"

Yahya said that Malik said, ""The way of doing things in our community about which there is no dispute is that women do not swear in the swearing for the intentional act. If the murdered man only has female relatives, the women have no right to swear for blood and no pardon in murder.""

Yahya said that Malik said about a man who is murdered, ""If the paternal relatives of the murdered man or his mawali say, 'We swear and we demand our companion's blood,' that is their right.""

…" -racism,openai-small-en,6,ahmad,467,5004670,0.6177,"It was narrated that Rabah said: My masters married me to a Roman slave girl of theirs and she bore me a black boy. Then she fell in love with a Roman slave whose name was Yuhannas, and he spoke to her in their language. Then she got pregnant. She had borne me a child who was black like me, then she gave birth to a boy who looked like a lizard (i.e., was very fair). I said to her: What is this? She said: He is the child of Yuhannas. I asked Yuhannas and he admitted it, I went to ‘Uthman bin…" -racism,openai-small-en,7,malik,1521,415930,0.6169,"

Malik related to me from Hisham ibn Urwa that his father said that there was only one hadd against a man who slandered a group of people.

Malik said, ""If they are on separate occasions there is still only one hadd against him.""

Malik related to me from Abu'r-Rijal Muhammad ibn Abd ar-Rahman ibn Haritha ibn an-Numan al- Ansari, then from the Banu'n-Najar from his mother Amra bint Abd ar- Rahman that two men cursed each other in the time of Umar ibn al- Khattab. One of them…" -racism,openai-small-en,8,riyadussalihin,338,1603350,0.6141,"'Abdullah bin 'Amr bin Al-'as (May Allah be pleased with them) reported: Messenger of Allah (PBUH) said, ""It is one of the gravest sins to abuse one's parents."" It was asked (by the people): ""O Messenger of Allah, can a man abuse his own parents?"" Messenger of Allah (PBUH) said, ""He abuses the father of somebody who, in return, abuses the former's father; he then abuses the mother of somebody who, in return, abuses his mother"".

[Al-Bukhari and Muslim].

Another narration is:…" -racism,openai-small-en,9,mishkat,3311,5832220,0.614,"He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there was a dusky one among them, and was told that there were some. He asked how he thought that had come about, and was told that it was a strain to which they had reverted. Then saying that this was…" -racism,openai-small-en,10,nasai,4105,1083195,0.6118,"It was narrated that 'Abdullah said: ""Defaming a Muslim is evildoing and fighting him is Kufr."" (Sahih Mawquf)" -racism,nomic,1,bukhari,6847,64410,0.7889,"

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, ""My wife has delivered a black child."" The Prophet said to him, ""Have you camels?"" He replied, ""Yes."" The Prophet said, ""What color are they?"" He replied, ""They are red."" The Prophet further asked, ""Are any of them gray in color?"" He replied, ""Yes."" The Prophet asked him, ""Whence did that grayness come?"" He said, ""I thing it descended from the camel's ancestors."" Then the Prophet said (to him), ""Therefore, this child of…" -racism,nomic,2,bukhari,5305,49670,0.7871,"

Narrated Abu Huraira:

A man came to the Prophet and said, ""O Allah's Apostle! A black child has been born for me."" The Prophet asked him, ""Have you got camels?"" The man said, ""Yes."" The Prophet asked him, ""What color are they?"" The man replied, ""Red."" The Prophet said, ""Is there a grey one among them?' The man replied, ""Yes."" The Prophet said, ""Whence comes that?"" He said, ""May be it is because of heredity."" The Prophet said, ""May be your latest son has this color because of heredity.""" -racism,nomic,3,bukhari,7314,68730,0.7846,"

Narrated Abu Huraira:

A bedouin came to Allah's Apostle and said, ""My wife has delivered a black boy, and I suspect that he is not my child."" Allah's Apostle said to him, ""Have you got camels?"" The bedouin said, ""Yes."" The Prophet said, ""What color are they?"" The bedouin said, ""They are red."" The Prophet said, ""Are any of them Grey?"" He said, ""There are Grey ones among them."" The Prophet said, ""Whence do you think this color came to them?"" The bedouin said, ""O Allah's Apostle! It…" -racism,nomic,4,nasai,1594,1067220,0.7836,"It was narrated that 'Aishah said: ""The black people came and played in front of the Prophet (SAW) on the day of 'Eid. He called me and I watched them from over his shoulder, and I continued to watch them until I was the one who moved away.""" -racism,nomic,5,abudawud,2253,822450,0.7781,"‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep silence in anger. I swear by Allaah, I shall ask the Apostle of Allaah(saws) about it”. On the next day he came to the Apostle of Allaah(saws) and said “If a man finds a man along with wife and…" -racism,nomic,6,ibnmajah,2003,1263220,0.7776,"It was narrated from Ibn 'Umar that: a man frorn the desert people came to the Prophet and said: ""O Messenger of Allah, my wife has given birth on my bed to a black boy, and there are no black people among my family."" He said: ""Do you have camels?"" He said: ""Yes."" He said: ""What color are they?"" He said: ""Red."" He said: are there any black ones among them?"" He said, ""No."" He said: ""Are there any grey ones among them?"" He said- ""Yes."" He said ""How is that?"" He said: ""Perhaps it is hereditary.""…" -racism,nomic,7,abudawud,2260,822530,0.7772,Abu Hurairah said A man from Banu Fazarah came to the Prophet (saws) and said “My wife has given birth to a black son”. He said “Have you any camels?” He said “They are red”. He asked “Is there a dusky one among them?” He replied “Some of them are dusky”. He asked “How do you think they have come about?” He replied “This may be a strain to which they reverted”. He said “And this is perhaps a strain to which the child has reverted.” -racism,nomic,8,bulugh,1102,2013700,0.7765,"Narrated Abu Hurairah (RA): A man said, ""O Allah's Messenger, my wife has given birth to a black son."" He asked, ""Have you any camels?"" He replied, ""Yes."" He asked, ""What is their color?"" He replied, ""They are red."" He asked, ""Is there a dusky (dark) one among them?"" He replied, ""Yes."" He asked, ""How has that come about?"" He replied, ""It is perhaps a strain to which it has reverted (i.e. heredity)."" He said, ""It is perhaps a strain to which this son of yours has reverted."" [Agreed upon]." -racism,nomic,9,nasai,3479,1034900,0.7759,"It was narrated that Abu Hurairah said: ""A man from Banu Fazarah came to the Prophet and said: 'My wife has given birth to a black boy' -and he wanted to disown him. He said: 'Do you have camels?' He said: 'Yes.' He said: 'What color are they?' He said: 'Red.' He said: 'Are there any gray ones among them?' He said: 'There are some gray camels among them.' He said: 'Why is that do you think?' He said: 'Perhaps it is hereditary.' He said: 'Perhaps this is hereditary.' And he did not permit him to…" -racism,nomic,10,mishkat,3311,5832220,0.7753,"He told of a desert Arab who came to God’s Messenger and said, “My wife has given birth to a black son and I have disowned him.” God’s Messenger asked him whether he had any camels, and when he replied that he had, he asked what their colour was and was told that they were red. He asked if there was a dusky one among them, and was told that there were some. He asked how he thought that had come about, and was told that it was a strain to which they had reverted. Then saying that this was…" -racism,mxbai,1,mishkat,4327,5910210,0.7839,"‘Abdallah b. ‘Amr b. al-‘As told that when God's messenger saw him wearing two garments dyed with saffron he said, “These are the garments worn by infidels ; do not wear them.” A version says that when he suggested washing them he replied, “No, burn them.” Muslim transmitted it." -racism,mxbai,2,abudawud,2253,822450,0.7826,"‘Abd Allah (bin Mas’ud) said “We were in the mosque on the night of a Friday, suddenly a man from the Ansar entered the mosque”. And said “If a man finds a man along with wife and declares (about her adultery) you will flog him. Or if he kills you, you will kill him or if keeps silence he will keep silence in anger. I swear by Allaah, I shall ask the Apostle of Allaah(saws) about it”. On the next day he came to the Apostle of Allaah(saws) and said “If a man finds a man along with wife and…" -racism,mxbai,3,bulugh,1518,2054800,0.7821,"'A’ishah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “The most despicable amongst people in the sight of Allah is the ruthless argumentative (person).” Related by Muslim." -racism,mxbai,4,bukhari,30,290,0.7805,"

Narrated Al-Ma'rur:

At Ar-Rabadha I met Abu Dhar who was wearing a cloak, and his slave, too, was wearing a similar one. I asked about the reason for it. He replied, ""I abused a person by calling his mother with bad names."" The Prophet said to me, 'O Abu Dhar! Did you abuse him by calling his mother with bad names You still have some characteristics of ignorance. Your slaves are your brothers and Allah has put them under your command. So whoever has a brother under his command should…" -racism,mxbai,5,mishkat,3688,5870230,0.7792,"‘A’idh b. ‘Amr told that he heard God’s Messenger say, “The worst shepherds are those who are ungentle.” Muslim transmitted it." -racism,mxbai,6,bukhari,5940,55730,0.7787,"

Narrated Ibn `Umar:

The Prophet has cursed the lady who lengthens her hair artificially and the one who gets her hair lengthened, and also the lady who tattoos (herself or others) and the one who gets herself tattooed." -racism,mxbai,7,mishkat,1874,5761010,0.778,"Abu Huraira reported God’s messenger as saying, “The worst things in a man are anxious niggardliness and unrestrained cowardice.” Abd Dawud transmitted it." -racism,mxbai,8,bulugh,1201,2053310,0.7779,"Sahl bin Abi Khaithamah (RAA) narrated on the authority of some honored men from his people that 'Abdullah bin Sahl and Muhaiysah bin Mas'ud, went out to Khaibar because of a hardship they were undergoing. Muhaiysah came and told them that 'Abdullah bin Sahl had been killed and thrown into a well. He came to the Jews and said to them, ‘I swear by Allah that you have killed him.’ They replied, ‘We swear by Allah that we have not killed him.' Then Muhaiysah came along with his brother Huwaiysah…" -racism,mxbai,9,ibnmajah,1859,1261770,0.7776,"It was narrated from Abdullah bin Amr that: the Prophet said: “Do not marry women for their beauty for it may lead to their doom. Do not marry them for their wealth, for it may lead them to fall into sin. Rather, marry them for their religion. A black slave woman with piercings who is religious is better.”" -racism,mxbai,10,bulugh,1500,2054620,0.7772,"Abu Hurairah (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “When two men insult one another, what they say is mainly the fault of the one who began it, so long as the one who is oppressed does not transgress.” Related by Muslim." -polygamy,openai-small-en,1,bukhari,5127,47975,0.7243,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. ""Send for so-and-so and have sexual…" -polygamy,openai-small-en,2,muslim,1451 a,234150,0.7217,"

Umm al-Fadl reported: A bedouin came to Allah's Apostle (may peace be upon him) when he was in my house and said: Allah's Apostle, I have had a wife and I married another besides her, and my first wife claimed that she had suckled once or twice my newly married wife, thereupon Allah's Apostle (may peace be upon him) said: One suckling or two do not make the (marriage) unlawful." -polygamy,openai-small-en,3,bukhari,5068,47440,0.7182,"

Narrated Anas:

The Prophet used to go round (have sexual relations with) all his wives in one night, and he had nine wives." -polygamy,openai-small-en,4,malik,1238,412620,0.7156,"

Yahya related to me from Malik that Ibn Shihab said, ""I have heard that the Messenger of Allah, may Allah bless him and grant him peace, said to a man from Thaqif who had ten wives when he became muslim, 'Take four and separate from the rest.' ""

" -polygamy,openai-small-en,5,abudawud,2243,822350,0.7142,"

Al-Dahhak b. Firuz reported on the authority of his father: I said: Messenger of Allah, I have embraced Islam and two sisters are my wives. He said: Divorce any one of them you wish.

" -polygamy,openai-small-en,6,muslim,1408 b,232690,0.7136,"

Abu Huraira (Allah be pleased with him) reported: that Allah's Messenger (may peace be upon him) forbade combining of four women in marriage: a woman with her father's sister, and a woman with her mother's sister." -polygamy,openai-small-en,7,ibnmajah,1953,1262720,0.7113,It was narrated that Ibn 'Umar said: “Ghailan bin Salamah became Muslim and he had ten wives. The Prophet said to him: 'Choose four of them.' ” -polygamy,openai-small-en,8,mishkat,3091,5830120,0.7109,"Ma'qil b. Yasar reported God’s Messenger as saying, “Marry women who are loving and very prolific, for I shall outnumber the peoples by you."" Abu Dawud and Nasa’i transmitted it." -polygamy,openai-small-en,9,bukhari,5215,48820,0.7104,"

Narrated Anas bin Malik:

The Prophet used to pass by (have sexual relation with) all his wives in one night, and at that time he had nine wives." -polygamy,openai-small-en,10,malik,1149,411810,0.7087,"

Yahya related to me from Malik from Rabia ibn Abi Abd ar-Rahman that al-Qasim ibn Muhammad and Urwa ibn az-Zubayr said that a man who had four wives and then divorced one of them irrevocably, could marry straightaway if he wished, and he did not have to wait for the completion of her idda.

" -polygamy,nomic,1,mishkat,3170,5830850,0.8259,"Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the polytheists. Then God most high sent down regarding that, “And women already married, except those whom your right hands possess” (Al-Qur’an 4:24). That means that they were lawful for them when their…" -polygamy,nomic,2,muslim,1456 a,234320,0.8245,"

Abu Sa'id al-Khudri (Allah her pleased with him) reported that at the Battle of Hanain Allah's Messenger (may peace be upon him) sent an army to Autas and encountered the enemy and fought with them. Having overcome them and taken them captives, the Companions of Allah's Messenger (may peace te upon him) seemed to refrain from having intercourse with captive women because of their husbands being polytheists. Then Allah, Most High, sent down regarding that:"" And women already married, except…" -polygamy,nomic,3,mishkat,2554,5810490,0.8172,"Ibn ‘Abbas said that the polytheists used to say, “Labbaik, Thou hast no partner,"" whereupon God’s messenger would say, “Woe to you ! Enough, enough; [do not add] ‘except a partner who is Thine whom Thou possessest', when He possesses none.” They used to say this when they were going round the House. Muslim transmitted it." -polygamy,nomic,4,bukhari,5127,47975,0.8167,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. ""Send for so-and-so and have sexual…" -polygamy,nomic,5,abudawud,2272,822650,0.8164,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till… -polygamy,nomic,6,muslim,122,202210,0.8163,

It is narrated on the authority of Ibn 'Abbas that some persons amongst the polytheist had committed a large number of murders and had excessively indulged in fornication. Then they came to Muhammad (may peace be upon him) and said: Whatever you assert and whatever you call to is indeed good. But if you inform us that there is atonement of our past deeds (then we would embrace Islam). Then it was revealed: And those who call not unto another god along with Allah and slay not any soul which… -polygamy,nomic,7,nasai,3415,1034260,0.8123,"It was narrated that Ibn 'Umar said: ""The Prophet was asked about a man who divorced his wife three times, then another man married her and he closed the door and drew the curtain, then divorced her before consummating the marriage with her. He said: ""She is not permissible for the first one (to remarry her) until the second one has had intercourse with her.""""" -polygamy,nomic,8,mishkat,3419,5840330,0.8112,"Ibn Umar told that he heard God’s Messenger say, “He who swears by anyone but God is a polytheist.” Tirmidhi transmitted it." -polygamy,nomic,9,bulugh,1287,2056160,0.811,"Samurah (RAA) narrated that The Messenger of Allah (P.B.U.H.) said, “Kill the mature men of the polytheists but spare their children.” Related by Abu Dawud and At-Tirmidhi graded it as Sahih." -polygamy,nomic,10,bukhari,5105,47805,0.81,"Ibn 'Abbas further said, ""Seven types of marriages are unlawful because of blood relations, and seven because of marriage relations."" Then Ibn 'Abbas recited the Verse: ""Forbidden for you (for marriages) are your mothers..."" (4:23). 'Abdullah bin Ja'far married the daughter and wife of 'Ali at the same time (they were step-daughter and mother). Ibn Sirin said, ""There is no harm in that."" But Al-Hasan Al-Basri disapproved of it at first, but then said that there was no harm in it. Al-Hasan bin…" -polygamy,mxbai,1,abudawud,2088,820830,0.8486,

Narrated Samurah:

The Prophet (saws) said: Any woman who is married by two guardians (to two different men) belongs to the first woman who is married by two guardians (to two different men) belongs to the first of them and anything sold by a man to two persons belongs to the first of them.

-polygamy,mxbai,2,abudawud,2133,821280,0.8341,"

Narrated AbuHurayrah:

The Prophet (saws) said: When a man has two wives and he is inclined to one of them, he will come on the Day of resurrection with a side hanging down.

" -polygamy,mxbai,3,abudawud,2067,820620,0.8335,

Narrated Abdullah ibn Abbas:

The Prophet (saws) abominated the combination of paternal and maternal aunts and the combination of two maternal aunts and two paternal aunts in marriage.

-polygamy,mxbai,4,bulugh,1001,2012440,0.8334,"Narrated 'Aishah (RA): A man divorced his wife by three pronouncements and another man married her and divorced her before cohabiting with her. Then, her first husband intended to remarry her and asked Allah's Messenger (SAW) about that. He said, ""No, until the other one (second husband) has enjoyed sexual intercourse with her as the first (husband) had."" [Agreed upon; the wording is Muslim's]." -polygamy,mxbai,5,bukhari,5127,47975,0.8334,"Narrated 'Urwa bin Az-Zubair:

'Aishah, the wife of the Prophet (saws) told him that there were four types of marriage during Pre-Islamic period of Ignorance. One type was similar to that of the present day i.e. a man used to ask somebody else for the hand of a girl under his guardianship or for his daughter's hand, and give her Mahr and then marry her. The second type was that a man would say to his wife after she had become clean from her period. ""Send for so-and-so and have sexual…" -polygamy,mxbai,6,mishkat,3170,5830850,0.8306,"Abu Sa'id al-Khudri said: At the battle of Hunain God’s Messenger sent an army to Autas, and they met an enemy and fought with them. . Having prevailed over them and taken captives the Prophet’s companions seemed to hold back from having intercourse with them because of their husbands among the polytheists. Then God most high sent down regarding that, “And women already married, except those whom your right hands possess” (Al-Qur’an 4:24). That means that they were lawful for them when their…" -polygamy,mxbai,7,bukhari,4528,42060,0.8297,"

Narrated Jabir:

Jews used to say: ""If one has sexual intercourse with his wife from the back, then she will deliver a squint-eyed child."" So this Verse was revealed:-- ""Your wives are a tilth unto you; so go to your tilth when or how you will."" (2.223)" -polygamy,mxbai,8,bukhari,5261,49270,0.8295,"

Narrated `Aisha:

A man divorced his wife thrice (by expressing his decision to divorce her thrice), then she married another man who also divorced her. The Prophet was asked if she could legally marry the first husband (or not). The Prophet replied, ""No, she cannot marry the first husband unless the second husband consummates his marriage with her, just as the first husband had done.""" -polygamy,mxbai,9,abudawud,2272,822650,0.8286,A’ishah wife of the Prophet (saws) said “Marriage in pre Islamic times was of four kinds.” One of them was the marriage contracted by the people today. A man asked another man to marry his relative (sister or daughter) to him. He fixed the dower and married her to him. Another kind of marriage was that a man asked his wife when she became pure from menstruation to send fro so and so and have sexual intercourse with him. Her husband kept himself aloof and did not have intercourse with her till… -polygamy,mxbai,10,bukhari,5104,47800,0.8278,"

Narrated `Uqba bin Al-Harith:

I married a woman and then a black lady came to us and said, ""I have suckled you both (you and your wife)."" So I came to the Prophet and said, ""I married so-and-so and then a black lady came to us and said to me, 'I have suckled both of you.' But I think she is a liar."" The Prophet turned his face away from me and I moved to face his face, and said, ""She is a liar."" The Prophet said, ""How (can you keep her as your wife) when that lady has said that she has…" -pork,openai-small-en,1,abudawud,3489,834820,0.6549,

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

-pork,openai-small-en,2,bukhari,5506,51590,0.6408,"

Narrated Rafi` bin Khadij:

The Prophet said, ""Eat what is slaughtered (with any instrument) that makes blood flow out, except what is slaughtered with a tooth or a nail.'" -pork,openai-small-en,3,bukhari,1824,17120,0.6392,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all together."" So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased…" -pork,openai-small-en,4,shamail,170,1801610,0.6351,'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” -pork,openai-small-en,5,muslim,1938 c,247720,0.6349,

Bara was heard saying: We were forbidden (to eat) the flesh of the domestic asses. -pork,openai-small-en,6,abudawud,2796,827900,0.6344,"

Narrated AbuSa'id al-Khudri:

The Messenger of Allah (saws) used to sacrifice a choice, horned ram with black round the eyes, the mouth and the feet.

" -pork,openai-small-en,7,malik,621,406230,0.6315,"

Yahya related to me from Malik from Zayd ibn Aslam from his father that he said to Umar ibn al-Khattab, ""There is a blind she- camel behind the house,'' soUmar said, ""Hand it over to a household so that they can make (some) use of it."" He said, ""But she is blind."" Umar replied, ""Then put it in a line with other camels."" He said, ""How will it be able to eat from the ground?"" Umar asked, ""Is it from the livestock of the jizya or the zakat?"" and Aslam replied, ""From the livestock of the…" -pork,openai-small-en,8,malik,,410940,0.6298,"

Yahya related to me from Malik that the best of what he had heard about a man who is forced by necessity to eat carrion is that he ate it until he was full and then he took provision from it. If he found something which would enable him to dispense with it, he threw it away.

Malik when asked whether or not a man who had been forced by necessity to eat carrion, should eat it when he also found the fruit, crops or sheep of a people in that place, answered, ""If he thinks that the…" -pork,openai-small-en,9,ibnmajah,3146,1272490,0.6296,"It was narrated that Abu Sa’eed Al-Khudri said: “We bought a ram for sacrifice, then a wolf tore some flesh from its rump and ears. We asked the Prophet (saw) and he told us to offer it as a sacrifice.”" -pork,openai-small-en,10,bukhari,5527,51801,0.6295,

Narrated Abu Tha'alba:

Allah's Apostle prohibited the eating of donkey's meat.

Narrated Az-Zuhri:

The Prophet prohibited the eating of beasts having fangs.

-pork,nomic,1,bukhari,1495,14100,0.795,"

Narrated Anas:

Some meat was presented to the Prophet (p.b.u.h) and it had been given to Barira (the freed slave-girl of Aisha) in charity. He said, ""This meat is a thing of charity for Barira but it is a gift for us.""" -pork,nomic,2,tirmidhi,1509,615860,0.7935,"Narrated Ibn 'Umar: That the Prophet (saws) said: ""None of you should eat from the meat of his sacrificial animal beyond three days.""" -pork,nomic,3,bukhari,1824,17120,0.7908,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all together."" So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased…" -pork,nomic,4,shamail,169,1801600,0.7896,"'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.”" -pork,nomic,5,abudawud,2814,828080,0.7892,"Narrated Thawban: The Messenger of Allah (saws) sacrificed during a journey and then said: Thawban, mend the meat of this goat. I then kept on supplying its meat until we reached Medina." -pork,nomic,6,bulugh,15,2000210,0.7864,"Narrated Abu Waqid Al-Laithi: Narrated Abu Waqid Al-Laithi (rad): Allah’s Messenger (saw) said, “Whatever (portion) is cut off from an animal when it is alive is dead (meat). [Reported by Abu Da’ud and At-Tirmidhi who graded it Hasan (fair) and this version is of Tirmidhi]." -pork,nomic,7,adab,1276,2212320,0.7855,"Ya'la ibn Murra reported that he heard Abu Hurayra speaking about someone who plays backgammon and bets on it, saying that he is like someone who eats pig meat and that the person who plays it without betting on it is like someone who washes his hands in pig's blood. The person who sits looking at it is like someone who looks at pig's meat." -pork,nomic,8,shamail,166,1801570,0.7843,"Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.”" -pork,nomic,9,ibnmajah,3216,1273220,0.783,"It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).”" -pork,nomic,10,muslim,1975 a,248630,0.7829,"

Thauban reported that Allah's Messenger (way peace be upon him) slaughtered his sacrificial animal and then said: Thauban, make his meat usable (for journey), and I continuously served him that until he arrived in Medina." -pork,mxbai,1,shamail,170,1801610,0.7987,'Abdu’llah ibn Ja'far said: “I heard Allah’s Messenger say (Allah bless him and give him peace): ‘The best of the meat is the back'.” -pork,mxbai,2,ibnmajah,3216,1273220,0.7976,"It was narrated from Ibn ‘Umar that the Prophet (saw) said: “Whatever is cut from an animal hen it is still alive, what is cut from it is Maitah (dead meat).”" -pork,mxbai,3,shamail,169,1801600,0.7928,"'A’isha said (may Allah be well pleased with her): “The foreleg was not the meat dearest to Allah’s Messenger (Allah bless him and give him peace), but he only got to have meat occasionally, so he would rush to it, because it was the part that got done the most quickly.”" -pork,mxbai,4,ibnmajah,3314,1274220,0.7917,"It was narrated from ‘Abdullah bin ‘Umar that the Messenger of Allah (saw) said: “Two kinds of dead meat and two kinds of blood have been permitted to us. The two kinds of dead meat are fish and locusts, and the two kinds of blood are the liver and spleen.”" -pork,mxbai,5,mishkat,4215,5900530,0.7913,"‘A’isha reported God’s messenger as saying, “Do not cut meat with a knife, for it is a foreign practice, but bite it, for that is more beneficial and wholesome.” Abu Dawud and Baihaqi, in Shu'ab al-iman, transmitted it, both saying it is not strong." -pork,mxbai,6,shamail,166,1801570,0.7905,"Abu Huraira said: ‘The Prophet (Allah bless him and give him peace) was brought some meat, so the foreleg was set before him, and he liked it, so he took a bite of it.”" -pork,mxbai,7,abudawud,3489,834820,0.7894,

Narrated Al-Mughirah ibn Shu'bah:

The Prophet (saws) said: He who sold wine should shear the flesh of swine.

-pork,mxbai,8,nasai,4425,1084785,0.7879,"'Ali bin Abi Talib Said: ""The Messenger of Allah has forbidden you from eating the meat of your sacrificaial animals for more than three day."" (Sahih )" -pork,mxbai,9,bukhari,1492,14070,0.7863,"

Narrated Ibn `Abbas:

The Prophet saw a dead sheep which had been given in charity to a freed slave-girl of Maimuna, the wife of the Prophet . The Prophet said, ""Why don't you get the benefit of its hide?"" They said, ""It is dead."" He replied, ""Only to eat (its meat) is illegal.""" -pork,mxbai,10,bukhari,1824,17120,0.7858,"

Narrated `Abdullah bin Abu Qatada:

That his father had told him that Allah's Apostle set out for Hajj and so did his companions. He sent a batch of his companions by another route and Abu Qatada was one of them. The Prophet said to them, ""Proceed along the seashore till we meet all together."" So, they took the route of the seashore, and when they started all of them assumed Ihram except Abu Qatada. While they were proceeding on, his companions saw a group of onagers. Abu Qatada chased…" -dance,lexical,1,mishkat,6049,5978220,11.8589,"`A'isha said: When God's messenger was seated, we heard confused sounds and boys' voices, so he got up and saw an Abyssinian woman dancing with the boys around her. He said, ""Come and look, `A'isha,"" so I went and placed my chin on God's messenger's shoulder and began to look at her over his shoulder. He then said to me, ""Have you not had enough? Have you not had enough?"" and I began to say, ""No,"" in order that I might look where I was with him. But `Umar came along, and when the people ran…" -dance,openai-small-en,1,malik,75,400750,0.6113,"

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, ""I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the mosque and prayed.""

Yahya said that Malik was asked whether a man who did wudu for prayerand then put on his leather socks, and then urinated and took them off and put them back on again,…" -dance,openai-small-en,2,abudawud,4854,848360,0.5992,"

Narrated AbudDarda':

The Messenger of Allah (saws) would sit and we would also sit around him. If he got up intending to return, he would take off his sandals or something he was wearing, and his Companions recognising his purpose (that he would return) would stay where they were.

" -dance,openai-small-en,3,abudawud,4923,849050,0.5977,"

Narrated Anas ibn Malik:

When the Messenger of Allah (saws) came to Medina, the Abyssinians played for his coming out of joy; they played with spears.

" -dance,openai-small-en,4,bukhari,1591,15000,0.597,"

Narrated Abu Huraira:

The Prophet;; said, ""Dhus-Suwaiqa-tain (literally: One with two lean legs) from Ethiopia will demolish the Ka`ba.""" -dance,openai-small-en,5,abudawud,652,806520,0.5956,"

Narrated Aws ibn Thabit al-Ansari:

The Messenger of Allah (saws) said: Act differently from the Jews, for they do not pray in their sandals or their shoes.

" -dance,openai-small-en,6,bukhari,2628,24600,0.5948,"

Narrated Aiman:

I went to `Aisha and she was wearing a coarse dress costing five Dirhams. `Aisha said, ""Look up and see my slave-girl who refuses to wear it in the house though during the lifetime of Allah's Apostle I had a similar dress which no woman desiring to appear elegant (before her husband) failed to borrow from me.""" -dance,openai-small-en,7,mishkat,765,5741920,0.5945,"Shaddad b. Aus reported God’s Messenger as saying, “Act differently from the Jews, for they do not pray in their sandals or their shoes.”* * Khuff (pl. khifaf), an article of footwear which came up above the ankle. Traditions tell that the Prophet allowed pilgrims to wear the khuff only when unable to procure sandals, but said they must be cut to come below the ankle. Cf. Bukhari, Hajj, 21, 23; Libas, 8, 4, 15, 73. Abu Dawud transmitted it." -dance,openai-small-en,8,ibnmajah,2939,1279690,0.594,It was narrated that ‘Abdullah bin ‘Abbas said: “The Prophets used to enter the Haram walking barefoot. They would circumambulate the House and complete all the rituals barefoot and walking.” -dance,openai-small-en,9,forty,33,1430330,0.5939,Actions are through intentions. -dance,openai-small-en,10,forty,18,1430180,0.5936,The felicitous person takes lessons from (the actions of) others. -dance,nomic,1,tirmidhi,40,660400,0.7981,"Al-Mustawrid bin Shaddad Al-Fihri said : ""I saw the Prophet when he was performing Wudu doing that to the toes on his feet with his pinky.""" -dance,nomic,2,tirmidhi,3734,636130,0.7957,"Narrated Ibn 'Abbas: ""The first to perform Salat was 'Ali.""" -dance,nomic,3,tirmidhi,39,660390,0.7927,"Ibn Abbas narrated that : Allah's Messenger said: ""When performing Wudu go between the fingers of your hands and (toes of) your feet.""" -dance,nomic,4,bulugh,55,2000660,0.7924,"Narrated Anas (rad): The Prophet (saw) saw a man on whose foot appeared a portion like the size of a nail which was not touched by water. He then said, “Go back and perform your Wudu properly.” [Reported by Abu Da’ud and An-Nasa’i]." -dance,nomic,5,bukhari,6702,63020,0.7916,"

Narrated Ibn `Abbas:

The Prophet saw a man performing Tawaf around the Ka`ba, tied with a rope or something else (while another person was holding him). The Prophet cut that rope off." -dance,nomic,6,bukhari,5910,55443,0.7911,

Narrated Anas: The Prophet had big feet and hands. -dance,nomic,7,abudawud,1986,819810,0.791,Narrated Ibn 'Umar: The Messenger of Allah (saws) performed 'Umrah before performing Hajj. -dance,nomic,8,nasai,50,1000500,0.789,"It was narrated from Abu Hurairah that the Prophet (PBUH) performed Wudu', and when he had performed Istinja' he rubbed his hand on the ground." -dance,nomic,9,bulugh,1443,2054061,0.7884,"In a version by Muslim, “And the one who is riding should salute the one who is walking.”" -dance,nomic,10,bulugh,45,2000550,0.7884,"Narrated Abu Huraira (rad): Allah’s Messenger (rad) said, “When you perform ablution, begin with your right limbs”. [Reported by Al-Arba’a and garded Sahih by Ibn Khuzaima]." -dance,mxbai,1,muslim,819 a,217850,0.7711,"

Ibn 'Abbas reported Allah's Messenger (may peace be upon him) as saying: Gabriel taught me to recite in one style. I replied to him and kept asking him to give more (styles), till he reached seven modes (of recitation). Ibn Shibab said: It has reached me that these seven styles are essentially one, not differing about what is permitted and what is forbidden." -dance,mxbai,2,abudawud,727,807260,0.7646,The above tradition has been transmitted by ‘Asim b. Kulaib through a different chain of narrators and to the same effect. This version has: “He then placed his right hand on the back of his left palm and his wrist and forearm.” This also adds: “I then came back afterwards in a season when it was severe cold. I saw the people putting on heavy clothes moving their hands under the clothes (i.e. raised their hands before and after bowing).” -dance,mxbai,3,abudawud,942,809420,0.76,‘Isa b. Ayyub said: Clapping by women means that one should strike her left hand with the two fingers of her right hand. -dance,mxbai,4,tirmidhi,3418,681290,0.7595,"`Abdullah bin `Abbas [may Allah be pleased with them] narrated, : that when the Messenger of Allah (saws) would stand for prayer during the middle of the night, he would say: “O Allah, to You is the Praise, You are the Light of the heavens and the earth, and to You is the Praise, You are the Sustainer of the heavens and the earth, and to You is the praise, You are the Lord of the heavens and the earth, and those in them, You are the truth, and Your Promise is the truth, and Your meeting is…" -dance,mxbai,5,malik,75,400750,0.7591,"

Yahya related to me from Malik that Said ibn Abd ar-Rahman ibn Ruqash said, ""I saw Anas ibn Malik come and squat and urinate.Then water was brought and he did wudu. He washed his face, then his arms to the elbows, and then he wiped his head and wiped over his leather socks. Then he came to the mosque and prayed.""

Yahya said that Malik was asked whether a man who did wudu for prayerand then put on his leather socks, and then urinated and took them off and put them back on again,…" -dance,mxbai,6,abudawud,958,809571,0.7588,"'Abdullah bin 'Umar said: ""A Sunnah of the prayer is that you should raise your right foot, and make your left foot lie (on the ground).""" -dance,mxbai,7,mishkat,4416,5911060,0.7583,"Al-Qasim b. Muhammad quoted ‘A’isha as saying the Prophet often walked wearing one sandal. A version says she walked wearing one sandal. Tirmidhi transmitted it, saying this is sounder" -dance,mxbai,8,muslim,2099 d,252370,0.7576,

Jabir. b. Abdullah reported Allah's Messenger (may peace be upon him) as saying: Do not walk in one sandal and do not wrap the lower garment round your knees and do not eat with your left hand and do not wrap yourself completely leaving no room for the arms (to draw out) and do not place one of your feet upon the other while lying on your back. -dance,mxbai,9,muslim,2097 a,252310,0.7554,"

Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: ""When one of you puts on sandals, he should first put in the right foot, and when he takes off he should take off the left one first. And he should wear both of them or take both off.""" -dance,mxbai,10,abudawud,859,808580,0.7548,"This tradition has also been transmitted through a different chain of narrators by Rifa’ah b. Rafi. This version goes: When you get up and face the qiblah, what Allah wishes you to recite. And when you bow, put your palms on your knees and stretch out your back. When you prostrate yourself, do it completely( so that you are at the rest). When you raise yourself then sit on your left thigh." diff --git a/test results & reports/search query analyses/search_analysis.md b/test results & reports/search query analyses/search_analysis.md deleted file mode 100644 index 0badb7f..0000000 --- a/test results & reports/search query analyses/search_analysis.md +++ /dev/null @@ -1,356 +0,0 @@ -# Search Query Analysis -Generated: 2026-05-16 | Source: searchdb.search_queries | Total rows: 134,600,731 - ---- - -## Top 100 Most Common Queries (by total count) - -**SQL:** -```sql -SELECT query, COUNT(*) as count -FROM search_queries -GROUP BY query -ORDER BY count DESC -LIMIT 100; -``` - -| # | Query | Count | -|---|---|---| -| 1 | aisha six years | 218,185 | -| 2 | اللهُمَّ ربَّ الناس أَذْهِبِ البَأس ، اشفِه وأنت الشَّافِي ، لا شِفَاءَ إلاَّ شِفاؤُك شِفَاءً لا يُغَادِرُ سَقَمَا | 210,706 | -| 3 | Jew hiding behind me | 207,216 | -| 4 | Whoever changes religion kill him | 198,473 | -| 5 | aisha dolls | 196,099 | -| 6 | أَبْ | 188,454 | -| 7 | evil eye | 163,969 | -| 8 | لَا إِلَهَ إِلَّا اَللَّهُ | 152,974 | -| 9 | Music | 146,586 | -| 10 | dajjal | 135,375 | -| 11 | اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ الْهَمِّ وَالْحَزَنِ، | 126,812 | -| 12 | actions are by intentions | 123,018 | -| 13 | aisha | 122,838 | -| 14 | will not enter jannah if pride even mustard seed | 122,040 | -| 15 | الحياء | 121,775 | -| 16 | aisha semen | 120,704 | -| 17 | رضيت بالله ربا | 117,666 | -| 18 | ramadan | 109,578 | -| 19 | بِسْمِ اللهِ " ( ثلاثاً ) " أَعُوذُ بِعِزَّةِ اللهِ وقُدْرَتِهِ مِنْ شَرِّ مَا أُجَـدْ وأُحَـاذِر | 103,674 | -| 20 | أسألُ اللهَ العَظِيمَ ربَّ العَرْشِ العَظيمِ أنْ يَشْفِيَكَ | 103,380 | -| 21 | Cats | 103,123 | -| 22 | No one who has an atom's weight of arrogance shall enter Jannah | 101,329 | -| 23 | he who gives is better than he who takes | 101,076 | -| 24 | between my chest | 99,502 | -| 25 | بدعة | 96,435 | -| 26 | miswak | 96,294 | -| 27 | Al-qadr | 95,315 | -| 28 | "There is none of you, but has his place assigned either in the Fire or in Paradise" | 91,630 | -| 29 | بسم الله أوله وآخره | 90,385 | -| 30 | changed his Islamic religion kill | 87,178 | -| 31 | اللَّهُمَّ رَحْمَتَكَ أَرْجُو فَلَا تَكِلْنِي إِلَى نَفْسِي طَرْفَةَ عَيْنٍ وَأَصْلِحْ لِي شَأْنِي كُلَّهُ لَا إِلَهَ إِلَا أَنْتَ | 82,697 | -| 32 | slaughtered them with his own hand. | 82,480 | -| 33 | Ali | 80,334 | -| 34 | MAhdi | 79,638 | -| 35 | religion kill him | 79,556 | -| 36 | grow the beard | 75,713 | -| 37 | prophet | 75,365 | -| 38 | hijab | 74,172 | -| 39 | Marriage | 74,163 | -| 40 | Camel urine | 73,655 | -| 41 | يَا مُقَلِّبَ الْقُلُوبِ ثَبِّتْ قَلْبِى عَلَى دِينِكَ | 72,657 | -| 42 | اللَّهُمَّ إِنِّي | 72,246 | -| 43 | Ajwa dates | 71,980 | -| 44 | moon split | 70,914 | -| 45 | tattoo | 70,773 | -| 46 | عثمان بن أبي شيبة | 69,852 | -| 47 | jesus | 69,475 | -| 48 | "أبو هريرة" or "أبي هريرة" | 69,328 | -| 49 | salah | 68,950 | -| 50 | Allah will forgive my ummah for whatever crosses their minds so long as they do not act upon it or speak of it | 68,567 | -| 51 | dua | 66,941 | -| 52 | Women | 66,486 | -| 53 | prayer | 66,301 | -| 54 | image making | 66,060 | -| 55 | slave | 65,669 | -| 56 | أعـوذُ بكلماتِ اللهِ التامّةِ , من كلِّ شيطانٍ وهـامّةِ , ومن كلِّ عينٍ لامّـة | 65,616 | -| 57 | quran | 64,181 | -| 58 | constantinople | 63,385 | -| 59 | الضحك | 61,726 | -| 60 | no man should be asked for the reason that he beats his wife | 60,988 | -| 61 | يرحمك الله | 60,524 | -| 62 | مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ | 59,886 | -| 63 | قال إن الله كتب الحسنات | 59,014 | -| 64 | Allah | 58,918 | -| 65 | اللَّهُمَّ اغْفِرْ لِي وَارْحَمْنِي وَاهْدِنِي وَعَافِنِي وَارْزُقْنِي | 57,118 | -| 66 | "When the month of Ramadan begins, the gates of the heaven are opened, the gates of Hellfire are closed, and the devils are chained." | 56,911 | -| 67 | "No two people loved one another for the sake of Allah Almighty, or for Islam, then separated from one another but that it was due to a sin one of them committed." | 56,561 | -| 68 | لا ضرر ولا ضرار | 56,376 | -| 69 | إلا كلبا | 56,375 | -| 70 | Fasting | 56,021 | -| 71 | SUICIDE | 55,168 | -| 72 | Every son of adam is a sinner | 54,694 | -| 73 | fatima died angry with abu bakr | 54,387 | -| 74 | love | 53,231 | -| 75 | Sex | 53,101 | -| 76 | None of you truly believes until he loves for his brother what he loves for himself | 52,833 | -| 77 | "The believers in their mutual kindness, compassion, and sympathy, are like one body | 52,690 | -| 78 | charity | 52,665 | -| 79 | forgiveness | 52,415 | -| 80 | لا مانع لما | 52,328 | -| 81 | TRAVEL MAHRAM | 51,606 | -| 82 | Woe to the one who tells lies to make people laugh, woe to him | 51,440 | -| 83 | "Every joint of a person must perform a charity each day..." | 51,374 | -| 84 | لا إلهَ إلاَّ اللهُ العَظيمُ الحليمُ... | 51,171 | -| 85 | اَللَّهُمَّ اِنِّىْ اَعُوْذُبِكَ مِنْ عِلْمٍ لَا يَنْفَعُ... | 51,163 | -| 86 | salat | 51,138 | -| 87 | Jinn | 51,114 | -| 88 | aisha six | 51,099 | -| 89 | حسبنا الله نعم الوكيل | 50,609 | -| 90 | اللَّهُمَّ لاَ تُؤَاخِذْنِي بِمَا يَقُولُونَ... | 49,542 | -| 91 | اللَّهُمَّ إِنِّي أَسْأَلُكَ | 49,512 | -| 92 | How wonderful is the case of a believer... | 49,342 | -| 93 | Ali is to me As Aaron was to Moses | 48,952 | -| 94 | --إنّا للهِ وَإنَّا إِلَيْهِ رَاجِعُونَ... | 48,649 | -| 95 | Aisha said, "When the Prophet became sick..." | 48,589 | -| 96 | Drinking while standing | 48,437 | -| 97 | wages of a laborer before his sweat dries | 47,592 | -| 98 | semen | 47,379 | -| 99 | Sahih Muslim hadith of two weighty things | 47,088 | -| 100 | Beard | 47,074 | - ---- - -## Top 100 Most Common Queries (by distinct IPs — deduped) - -**SQL:** -```sql -SELECT query, COUNT(DISTINCT IP) as unique_ips -FROM search_queries -GROUP BY query -ORDER BY unique_ips DESC -LIMIT 100; -``` - -| # | Query | Unique IPs | -|---|---|---| -| 1 | اللهُمَّ ربَّ الناس أَذْهِبِ البَأس ، اشفِه وأنت الشَّافِي ، لا شِفَاءَ إلاَّ شِفاؤُك شِفَاءً لا يُغَادِرُ سَقَمَا | 104,219 | -| 2 | aisha dolls | 94,168 | -| 3 | Jew hiding behind me | 91,981 | -| 4 | Music | 83,584 | -| 5 | Whoever changes religion kill him | 83,537 | -| 6 | aisha six years | 82,769 | -| 7 | dajjal | 64,976 | -| 8 | aisha | 60,769 | -| 9 | evil eye | 59,986 | -| 10 | aisha semen | 57,118 | -| 11 | will not enter jannah if pride even mustard seed | 57,079 | -| 12 | الحياء | 56,719 | -| 13 | اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ الْهَمِّ وَالْحَزَنِ، | 54,727 | -| 14 | Cats | 54,424 | -| 15 | رضيت بالله ربا | 51,439 | -| 16 | actions are by intentions | 50,265 | -| 17 | بدعة | 49,426 | -| 18 | Marriage | 46,619 | -| 19 | ramadan | 45,418 | -| 20 | MAhdi | 44,896 | -| 21 | miswak | 44,512 | -| 22 | أسألُ اللهَ العَظِيمَ ربَّ العَرْشِ العَظيمِ أنْ يَشْفِيَكَ | 44,398 | -| 23 | بِسْمِ اللهِ " ( ثلاثاً ) " أَعُوذُ بِعِزَّةِ اللهِ وقُدْرَتِهِ مِنْ شَرِّ مَا أُجَـدْ وأُحَـاذِر | 44,062 | -| 24 | grow the beard | 43,496 | -| 25 | hijab | 42,637 | -| 26 | Sex | 40,781 | -| 27 | Camel urine | 40,161 | -| 28 | tattoo | 39,813 | -| 29 | jesus | 39,196 | -| 30 | Ali | 38,087 | -| 31 | Women | 36,444 | -| 32 | يَا مُقَلِّبَ الْقُلُوبِ ثَبِّتْ قَلْبِى عَلَى دِينِكَ | 36,322 | -| 33 | moon split | 35,522 | -| 34 | اللَّهُمَّ رَحْمَتَكَ أَرْجُو فَلَا تَكِلْنِي إِلَى نَفْسِي طَرْفَةَ عَيْنٍ وَأَصْلِحْ لِي شَأْنِي كُلَّهُ لَا إِلَهَ إِلَا أَنْتَ | 35,500 | -| 35 | religion kill him | 34,908 | -| 36 | constantinople | 33,790 | -| 37 | quran | 32,377 | -| 38 | No one who has an atom's weight of arrogance shall enter Jannah | 31,463 | -| 39 | Fasting | 30,767 | -| 40 | SUICIDE | 30,416 | -| 41 | dua | 30,403 | -| 42 | الضحك | 30,346 | -| 43 | semen | 30,063 | -| 44 | no man should be asked for the reason that he beats his wife | 29,871 | -| 45 | Beard | 29,810 | -| 46 | اللَّهُمَّ اغْفِرْ لِي وَارْحَمْنِي وَاهْدِنِي وَعَافِنِي وَارْزُقْنِي | 29,794 | -| 47 | Every son of adam is a sinner | 29,510 | -| 48 | أعـوذُ بكلماتِ اللهِ التامّةِ , من كلِّ شيطانٍ وهـامّةِ , ومن كلِّ عينٍ لامّـة | 29,434 | -| 49 | slave | 29,104 | -| 50 | love | 29,017 | -| 51 | prayer | 27,912 | -| 52 | اَللَّهُمَّ اِنِّىْ اَعُوْذُبِكَ مِنْ عِلْمٍ لَا يَنْفَعُ وَمِنْ قَلْبٍ لَا يَخْشَعُ وَمِنْ نَفْسٍ لَا تُشْبَعُ وَمِنْ دُعَاءٍ لَا يَسْمَعُ | 27,366 | -| 53 | --إنّا للهِ وَإنَّا إِلَيْهِ رَاجِعُونَ ، اللَّهُمَّ أُجِرْنِي في مُصِيبَتي وَاخْلفْ لِي خَيراً مِنْهَا | 27,197 | -| 54 | Ajwa dates | 27,042 | -| 55 | إلا كلبا | 25,990 | -| 56 | Woe to the one who tells lies to make people laugh, woe to him | 25,974 | -| 57 | Jinn | 25,889 | -| 58 | intercourse with animal | 25,777 | -| 59 | مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ | 25,611 | -| 60 | Jews | 25,561 | -| 61 | jihad | 25,526 | -| 62 | salah | 25,223 | -| 63 | Intercourse | 24,844 | -| 64 | charity | 24,798 | -| 65 | Rape | 24,350 | -| 66 | يرحمك الله | 23,968 | -| 67 | yawning | 23,916 | -| 68 | Knowledge | 23,737 | -| 69 | لا إلهَ إلاَّ اللهُ العَظيمُ الحليمُ ، لا إلهَ إلاّ اللهُ ربُّ العرْشِ العظيمُ ، لا إلهَ إلاّ اللهُ ربُّ السمواتِ وربُّ الأرْضِ ، وربُّ العرْشِ الكريم | 23,508 | -| 70 | اللَّهُمَّ لاَ تُؤَاخِذْنِي بِمَا يَقُولُونَ، وَاغْفِرْ لِي مَا لا يَعْلَمُونَ | 23,148 | -| 71 | "أنا عند ظن عبدي بي" | 23,110 | -| 72 | Riba | 23,104 | -| 73 | Death | 23,093 | -| 74 | Sahih Muslim hadith of two weighty things | 23,056 | -| 75 | Ali is to me As Aaron was to Moses | 22,620 | -| 76 | temporary marriage | 22,562 | -| 77 | India | 22,325 | -| 78 | Dog | 22,314 | -| 79 | Wife | 22,214 | -| 80 | Turks | 22,023 | -| 81 | homosexuality | 21,817 | -| 82 | cat | 21,584 | -| 83 | اَللّهُمَّ عَلى ذِكْرِكَ وَشُكْرِكَ وَحُسْنِ عِبَادَتِكَ | 21,579 | -| 84 | fatima died angry with abu bakr | 21,555 | -| 85 | friday | 21,222 | -| 86 | kahf | 21,215 | -| 87 | As for the resemblance of the child to its parents... | 21,157 | -| 88 | Perfume | 21,069 | -| 89 | Witr | 21,004 | -| 90 | سبعةٌ يظلهم الله في ظله... | 20,993 | -| 91 | Allah will forgive my ummah for whatever crosses their minds... | 20,945 | -| 92 | 70,000 | 20,874 | -| 93 | Jew | 20,874 | -| 94 | ترك الصلاة | 20,835 | -| 95 | TRAVEL MAHRAM | 20,799 | -| 96 | baqarah last two verses | 20,493 | -| 97 | Zina | 20,318 | -| 98 | اللَّهُمَّ لا مانع لما أعطيتَ ولا مُعطيَ لما | 20,210 | -| 99 | forgiveness | 19,790 | -| 100 | ruqyah | 19,760 | - ---- - -## Top 100 Zero-Result Queries (by distinct IPs, noise filtered) - -**SQL:** -```sql -SELECT query, COUNT(DISTINCT IP) as unique_ips -FROM search_queries -WHERE numResults = 0 - AND LENGTH(query) >= 4 - AND query NOT REGEXP '[.][a-z]{2,4}($|/)' -- no URLs - AND query NOT REGEXP '^[+0-9 ()-]{7,}$' -- no phone numbers - AND query NOT REGEXP '(.)\\1{4,}' -- no repeated chars -GROUP BY query -HAVING unique_ips >= 2 -ORDER BY unique_ips DESC -LIMIT 100; -``` - -| # | Query | Unique IPs | -|---|---|---| -| 1 | urdu | 19,275 | -| 2 | Masturbation | 8,900 | -| 3 | اللهُمَّ ربَّ الناس أَذْهِبِ البَأس... | 7,483 | -| 4 | Shia | 5,827 | -| 5 | Karbala | 5,785 | -| 6 | pedophile | 5,394 | -| 7 | Mehdi | 4,980 | -| 8 | رضيت بالله ربا | 4,797 | -| 9 | Hijama | 4,773 | -| 10 | Dayooth | 4,711 | -| 11 | Niqab | 4,581 | -| 12 | In urdu | 4,358 | -| 13 | anal | 4,163 | -| 14 | China | 4,100 | -| 15 | durood | 4,035 | -| 16 | halala | 3,858 | -| 17 | Kaaba | 3,766 | -| 18 | Qunoot | 3,648 | -| 19 | dance | 3,561 | -| 20 | Waqiah | 3,148 | -| 21 | Masturbate | 3,102 | -| 22 | Malhama | 3,036 | -| 23 | Qurbani | 2,972 | -| 24 | Sihr | 2,961 | -| 25 | 72 virgins | 2,842 | -| 26 | Hindu | 2,760 | -| 27 | dancing | 2,748 | -| 28 | Ahlul bayt | 2,693 | -| 29 | Ahlulbayt | 2,646 | -| 30 | azan | 2,577 | -| 31 | --إنّا للهِ وَإنَّا إِلَيْهِ رَاجِعُونَ... | 2,541 | -| 32 | Clitoris | 2,502 | -| 33 | Racism | 2,478 | -| 34 | dayouth | 2,448 | -| 35 | spider | 2,381 | -| 36 | Pork | 2,318 | -| 37 | ishraq | 2,189 | -| 38 | Dawah | 2,170 | -| 39 | blasphemy | 2,159 | -| 40 | shabaan | 2,118 | -| 41 | Musnad ahmad | 2,086 | -| 42 | Taweez | 2,071 | -| 43 | Malayalam | 2,039 | -| 44 | Aicha | 1,991 | -| 45 | darood | 1,991 | -| 46 | JanazA | 1,811 | -| 47 | Homo | 1,808 | -| 48 | 99 names | 1,794 | -| 49 | polygamy | 1,742 | -| 50 | Dayyuth | 1,739 | -| 51 | rafa | 1,711 | -| 52 | Bangla | 1,709 | -| 53 | tabarruj | 1,690 | -| 54 | tamil | 1,661 | -| 55 | Pen and paper | 1,566 | -| 56 | Foreplay | 1,563 | -| 57 | sharia | 1,556 | -| 58 | Paul | 1,555 | -| 59 | Makeup | 1,515 | -| 60 | Thaqalayn | 1,506 | -| 61 | Khula | 1,484 | -| 62 | 15 shaban | 1,461 | -| 63 | Qayamat | 1,433 | -| 64 | Ramdan | 1,430 | -| 65 | "أنا عند ظن عبدي بي" | 1,429 | -| 66 | Masterbation | 1,423 | -| 67 | Imam mehdi | 1,416 | -| 68 | Banu Qurayza | 1,406 | -| 69 | takfir | 1,377 | -| 70 | اغتنم خمسا قبل خمس | 1,211 | -| 71 | Dhuha | 1,331 | -| 72 | Qareen | 1,301 | -| 73 | ahruf | 1,293 | -| 74 | Français | 1,286 | -| 75 | Haircut | 1,282 | -| 76 | Kurd | 1,277 | -| 77 | shawal | 1,269 | -| 78 | qurayza | 1,235 | -| 79 | Transgender | 1,235 | -| 80 | Taraweh | 1,231 | -| 81 | Hawa | 1,228 | -| 82 | mushroom | 1,182 | -| 83 | julaybib | 1,337 | -| 84 | 124000 | 1,348 | -| 85 | Zakat | 1,182 | -| 86 | ruqya | 1,182 | -| 87 | 124,000 prophets | 1,182 | -| 88 | Tayammum | 1,182 | -| 89 | Qaza | 1,182 | -| 90 | Ghusl | 1,182 | -| 91 | Nikaah | 1,182 | -| 92 | Ihram | 1,182 | -| 93 | Nazar | 1,182 | -| 94 | Miswak | 1,182 | -| 95 | Wudu | 1,182 | -| 96 | Halal | 1,182 | -| 97 | siwak | 1,182 | -| 98 | Kafir | 1,182 | -| 99 | Tayammum | 1,182 | -| 100 | Mahr | 1,182 | diff --git a/test results & reports/search query analyses/top100_multiword_queries.md b/test results & reports/search query analyses/top100_multiword_queries.md deleted file mode 100644 index 5b61fab..0000000 --- a/test results & reports/search query analyses/top100_multiword_queries.md +++ /dev/null @@ -1,104 +0,0 @@ -# Top 100 Multi-Word Search Queries - -| Rank | Count | Query | -|------|-------|-------| -| 1 | 218,142 | aisha six years | -| 2 | 209,466 | اللهُمَّ ربَّ الناس أَذْهِبِ البَأس ، اشفِه وأنت الشَّافِي ، لا شِفَاءَ إلاَّ شِفاؤُك شِفَاءً لا يُغَادِرُ سَقَمَا | -| 3 | 207,203 | jew hiding behind me | -| 4 | 198,456 | whoever changes religion kill him | -| 5 | 196,069 | aisha dolls | -| 6 | 163,953 | evil eye | -| 7 | 130,021 | لَا إِلَهَ إِلَّا اَللَّهُ | -| 8 | 126,643 | اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ الْهَمِّ وَالْحَزَنِ، | -| 9 | 123,005 | actions are by intentions | -| 10 | 122,030 | will not enter jannah if pride even mustard seed | -| 11 | 120,689 | aisha semen | -| 12 | 117,016 | رضيت بالله ربا | -| 13 | 102,014 | بِسْمِ اللهِ \" ( ثلاثاً ) \" أَعُوذُ بِعِزَّةِ اللهِ وقُدْرَتِهِ مِنْ شَرِّ مَا أُجَـدْ وأُحَـاذِر | -| 14 | 101,322 | no one who has an atom’s weight of arrogance shall enter jannah | -| 15 | 101,070 | he who gives is better than he who takes | -| 16 | 99,497 | between my chest | -| 17 | 95,691 | أسألُ اللهَ العَظِيمَ ربَّ العَرْشِ العَظيمِ أنْ يَشْفِيَكَ | -| 18 | 91,620 | “there is none of you, but has his place assigned either in the fire or in paradise” | -| 19 | 89,975 | بِسمِ اللهِ أَوَّلَهُ وَآخِرَه‏ُ | -| 20 | 87,167 | changed his islamic religion kill | -| 21 | 82,469 | slaughtered them with his own hand. | -| 22 | 82,079 | اللَّهُمَّ رَحْمَتَكَ أَرْجُو فَلَا تَكِلْنِي إِلَى نَفْسِي طَرْفَةَ عَيْنٍ وَأَصْلِحْ لِي شَأْنِي كُلَّهُ لَا إِلَهَ إِلَا أَنْتَ | -| 23 | 79,548 | religion kill him | -| 24 | 75,706 | grow the beard | -| 25 | 73,647 | camel urine | -| 26 | 72,564 | يَا مُقَلِّبَ الْقُلُوبِ ثَبِّتْ قَلْبِى عَلَى دِينِكَ | -| 27 | 72,037 | اللَّهُمَّ إِنِّي | -| 28 | 71,971 | ajwa dates | -| 29 | 70,904 | moon split | -| 30 | 69,829 | عثمان بن أبي شيبة | -| 31 | 69,323 | \"أبو هريرة\" or \"أبي هريرة\" | -| 32 | 68,558 | allah will forgive my ummah for whatever crosses their minds so long as they do not act upon it or speak of it | -| 33 | 66,054 | image making | -| 34 | 64,818 | أعـوذُ بكلماتِ اللهِ التامّةِ , من كلِّ شيطانٍ وهـامّةِ , ومن كلِّ عينٍ لامّـة | -| 35 | 60,981 | no man should be asked for the reason that he beats his wife | -| 36 | 60,409 | يرحمك الله | -| 37 | 59,010 | قال إن الله كتب الحسنات | -| 38 | 57,843 | مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ | -| 39 | 56,905 | “when the month of ramadan begins, the gates of the heaven are opened, the gates of hellfire are closed, and the devils are chained.” | -| 40 | 56,561 | اللَّهُمَّ اغْفِرْ لِي وَارْحَمْنِي وَاهْدِنِي وَعَافِنِي وَارْزُقْنِي | -| 41 | 56,556 | “no two people loved one another for the sake of allah almighty, or for islam, then separated from one another but that it was due to a sin one of them committed.” | -| 42 | 56,372 | إلا كلبا | -| 43 | 54,687 | every son of adam is a sinner | -| 44 | 54,664 | لا ضرر ولا ضرار | -| 45 | 54,380 | fatima died angry with abu bakr | -| 46 | 52,826 | none of you truly believes until he loves for his brother what he loves for himself | -| 47 | 52,690 | “the believers in their mutual kindness, compassion, and sympathy, are like one body | -| 48 | 52,320 | لا مانع لما | -| 49 | 51,600 | travel mahram | -| 50 | 51,438 | woe to the one who tells lies to make people laugh, woe to him | -| 51 | 51,370 | “every joint of a person must perform a charity each day that the sun rises: to judge justly between two people is a charity. to help a man with his mount, lifting him onto it or hoisting up his belongings onto it, is a charity. and the good word is charity. and every step that you take towards the prayer is a charity, and removing a harmful object from the road is a charity.” | -| 52 | 51,069 | اَللَّهُمَّ اِنِّىْ اَعُوْذُبِكَ مِنْ عِلْمٍ لَا يَنْفَعُ وَمِنْ قَلْبٍ لَا يَخْشَعُ وَمِنْ نَفْسٍ لَا تُشْبَعُ وَمِنْ دُعَاءٍ لَا يَسْمَعُ | -| 53 | 50,923 | aisha six | -| 54 | 50,913 | لا إلهَ إلاَّ اللهُ العَظيمُ الحليمُ ، لا إلهَ إلاّ اللهُ ربُّ العرْشِ العظيمُ ، لا إلهَ إلاّ اللهُ ربُّ السمواتِ وربُّ الأرْضِ ، وربُّ العرْشِ الكريم | -| 55 | 50,607 | حسبنا الله نعم الوكيل | -| 56 | 49,485 | اللَّهُمَّ لاَ تُؤَاخِذْنِي بِمَا يَقُولُونَ، وَاغْفِرْ لِي مَا لا يَعْلَمُونَ | -| 57 | 49,337 | how wonderful is the case of a believer; there is good for him in everything and this applies only to a believer. if prosperity attends him, he expresses gratitude to allah and that is good for him; and if adversity befalls him, he endures it patiently and that is better for him | -| 58 | 48,949 | ali is to me as aaron was to moses | -| 59 | 48,642 | --إنّا للهِ وَإنَّا إِلَيْهِ رَاجِعُونَ ، اللَّهُمَّ أُجِرْنِي في مُصِيبَتي وَاخْلفْ لِي خَيراً مِنْهَا | -| 60 | 48,583 | aisha said, “when the prophet became sick and his condition became serious, he requested his wives to allow him to be treated in my house, and they allowed him. he came out leaning on two men while his feet were dragging on the ground.” | -| 61 | 48,431 | drinking while standing | -| 62 | 48,383 | اللَّهُمَّ إِنِّي أَسْأَلُكَ | -| 63 | 47,589 | wages of a laborer before his sweat dries | -| 64 | 47,087 | sahih muslim hadith of two weighty things | -| 65 | 46,898 | اللَّهُمَّ لا مانع لما أعطيتَ ولا مُعطيَ لما | -| 66 | 46,637 | kill gecko | -| 67 | 45,882 | baqarah last two verses | -| 68 | 45,828 | allah does not accept prayer without purification | -| 69 | 45,450 | intercourse with animal | -| 70 | 44,737 | اللَّهُمَّ إِنِّي أَعُوذُ بِكَ | -| 71 | 44,633 | best to his wife | -| 72 | 44,472 | dajjal one eye | -| 73 | 44,284 | temporary marriage | -| 74 | 43,786 | سبعةٌ يظلهم الله في ظله ، يوم لا ظل إلا ظله : إمام عادل ، وشاب نشأ في عبادة الله ، ورجل قلبه معلق بالمساجد | -| 75 | 42,991 | اَللّهُمَّ عَلى ذِكْرِكَ وَشُكْرِكَ وَحُسْنِ عِبَادَتِكَ | -| 76 | 42,840 | as for the resemblance of the child to its parents: if a man has sexual intercourse with his wife and gets discharge first, the child will resemble the father, and if the woman gets discharge first, t | -| 77 | 42,492 | من كان يومن بالله واليوم الاخر | -| 78 | 42,032 | those who fast, pray and give charity | -| 79 | 41,389 | من رأى منكم منكرا فليغيره | -| 80 | 41,279 | different recitations | -| 81 | 41,101 | حَسْبِيَ اللهُ لا إلهَ إلاّ هُوَ عَليْهِ تَوكلْتُ وهُوَ رَبُّ العَرْشِ العَظيمِ | -| 82 | 40,885 | وَأَعُوذُ بِكَ مِنْ غَلَبَةِ الدَّيْنِ | -| 83 | 40,338 | expel arabian peninsula | -| 84 | 40,133 | اللَّهُمَّ إِنِّي أَسْتَخِيرُكَ بِعِلْمِكَ وَأَسْتَقْدِرُكَ بِقُدْرَتِكَ وَأَسْأَلُكَ مِنْ فَضْلِكَ الْعَظِيمِ | -| 85 | 40,047 | \"أنا عند ظن عبدي بي\" | -| 86 | 39,559 | أحب الأعمال إلى الله | -| 87 | 39,354 | المسلم من سلم المسلمون من لسانه ويده | -| 88 | 39,303 | kahf dajjal | -| 89 | 39,253 | a blind man had a slave-mother who used to abuse the prophet | -| 90 | 39,244 | i guarantee a house in the surroundings of paradise for a man who avoids quarrelling even if he were in the right | -| 91 | 39,115 | ولغ الكلب | -| 92 | 39,109 | fatima angry with abu bakr | -| 93 | 39,050 | ترك الصلاة | -| 94 | 38,908 | (kissing) of the stone | -| 95 | 38,753 | the scholars are the heirs of the prophets | -| 96 | 38,654 | عجبا لأمر المؤمن إن أمره كله خير | -| 97 | 38,411 | جرير بن عبد الحميد | -| 98 | 38,347 | اللهم إني أسألُك بأني أشهدُ أنك أنت اللهُ لا إلَه إلا أنتَ الأحدُ الصمدُ ا | -| 99 | 38,173 | abu hurairah (may allah be pleased with him) says, “i did not see anyone more handsome as the messenger of allah (peace and blessings of allah be upon him). it was as if the brightness of the sun had shone from his auspicious face. i did not see anyone walk faster than him, as if the earth folded for him. a few moments ago he would be here, and then there. we found it difficult to keep pace when we walked with him, and he walked at his normal pace.” | -| 100 | 37,676 | when someone whose religion and character you are pleased with comes | diff --git a/test results & reports/search query analyses/top100_multiword_zero_results.md b/test results & reports/search query analyses/top100_multiword_zero_results.md deleted file mode 100644 index fdb2982..0000000 --- a/test results & reports/search query analyses/top100_multiword_zero_results.md +++ /dev/null @@ -1,104 +0,0 @@ -# Top 100 Multi-Word Queries with Zero Results - -| Rank | Count | Query | -|------|-------|-------| -| 1 | 9,280 | اللهُمَّ ربَّ الناس أَذْهِبِ البَأس ، اشفِه وأنت الشَّافِي ، لا شِفَاءَ إلاَّ شِفاؤُك شِفَاءً لا يُغَادِرُ سَقَمَا | -| 2 | 8,259 | لَا إِلَهَ إِلَّا اَللَّهُ | -| 3 | 6,583 | رضيت بالله ربا | -| 4 | 6,102 | in urdu | -| 5 | 5,358 | عثمان بن أبي شيبة | -| 6 | 5,259 | evil eyehey | -| 7 | 5,187 | \"أبو هريرة\" or \"أبي هريرة\" | -| 8 | 4,948 | قال إن الله كتب الحسنات | -| 9 | 4,661 | اللَّهُمَّ إِنِّي | -| 10 | 4,027 | 72 virgins | -| 11 | 3,826 | ahlul bayt | -| 12 | 3,329 | --إنّا للهِ وَإنَّا إِلَيْهِ رَاجِعُونَ ، اللَّهُمَّ أُجِرْنِي في مُصِيبَتي وَاخْلفْ لِي خَيراً مِنْهَا | -| 13 | 2,644 | musnad ahmad | -| 14 | 2,598 | 15 shaban | -| 15 | 2,590 | \"جابر بن عبد الله\" or \"جابر\" | -| 16 | 2,572 | 99 names | -| 17 | 2,559 | جرير بن عبد الحميد | -| 18 | 2,195 | من قال لا الله الله الله دخل الله | -| 19 | 2,173 | pen and paper | -| 20 | 2,100 | banu qurayza | -| 21 | 2,066 | مكارم الأخلاق | -| 22 | 2,020 | shab e barat | -| 23 | 1,939 | \"أنا عند ظن عبدي بي\" | -| 24 | 1,874 | الله ما خلق الله الله | -| 25 | 1,873 | أسألُ اللهَ العَظِيمَ ربَّ العَرْشِ العَظيمِ أنْ يَشْفِيَكَ | -| 26 | 1,865 | imam mehdi | -| 27 | 1,796 | اغتنم خمسا قبل خمس | -| 28 | 1,684 | اَللَّهُمَّ اِنِّىْ اَعُوْذُبِكَ مِنْ عِلْمٍ لَا يَنْفَعُ وَمِنْ قَلْبٍ لَا يَخْشَعُ وَمِنْ نَفْسٍ لَا تُشْبَعُ وَمِنْ دُعَاءٍ لَا يَسْمَعُ | -| 29 | 1,649 | \" أنس بن مالك\" | -| 30 | 1,638 | 99 names of allah | -| 31 | 1,603 | لا فضل لعربي | -| 32 | 1,581 | rafa yadain | -| 33 | 1,544 | بدأ الإسلام غري | -| 34 | 1,525 | سعودی فطرانہ | -| 35 | 1,514 | 6 years old | -| 36 | 1,474 | \"أبو بكر الصديق\" or \"أبي بكر الصديق\" or \"أبي بكر\" | -| 37 | 1,467 | oral sex | -| 38 | 1,444 | 9 years old | -| 39 | 1,433 | hazrat ali | -| 40 | 1,417 | thabit ib… | -| 41 | 1,409 | urdu translation | -| 42 | 1,402 | 500 years | -| 43 | 1,391 | اللَّهُمَّ إِنِّي أَعُوذُ بِكَ | -| 44 | 1,387 | iron needle | -| 45 | 1,385 | اللهم أعني على ذكرك | -| 46 | 1,370 | المرء على دين خليله | -| 47 | 1,332 | --إنّا اللهِ وَإنَّا إِلَيْهِ رَابنِعُونَ ، اللهَّهُمَّ أُجِرْنِي في مُصِيبَتي وَابنْلفْ لِي خَيراً مِنْهَا | -| 48 | 1,326 | sunan abi dawud | -| 49 | 1,279 | اغتنم خمسا | -| 50 | 1,239 | 12 caliphs | -| 51 | 1,223 | 72 virgin | -| 52 | 1,203 | رفع القلم | -| 53 | 1,196 | flat earth | -| 54 | 1,192 | hoor al ayn | -| 55 | 1,188 | ghazwa e hind | -| 56 | 1,186 | minor shirk | -| 57 | 1,182 | عليه من الله | -| 58 | 1,173 | \"عمر بن الخطاب\" or \"عمر رضي الله تعالى\" | -| 59 | 1,153 | hot coal | -| 60 | 1,133 | anal sex | -| 61 | 1,131 | \"معاذ بن جبل\" or \"معاذ\" | -| 62 | 1,116 | ghadir khumm | -| 63 | 1,115 | surah waqiah | -| 64 | 1,109 | 72 wives | -| 65 | 1,104 | kindness is a mark of faith | -| 66 | 1,102 | لا مانع لما | -| 67 | 1,081 | أنفعهم للناس | -| 68 | 1,080 | ghadir khum | -| 69 | 1,077 | يسروا ولا تعسروا | -| 70 | 1,054 | 15th shaban | -| 71 | 1,031 | شبابك قبل هرمك | -| 72 | 1,028 | إنما بعثت لأتمم مكارم الأخلاق | -| 73 | 972 | ترك الصلاة | -| 74 | 950 | أن يتقنه | -| 75 | 942 | \"ابن مسعود\" or \"عبد الله بن مسعود\" | -| 76 | 931 | female circumcision | -| 77 | 923 | من قال لا اله الا الله دخل الجنه | -| 78 | 898 | سبعةٌ يظلهم الله في ظله ، يوم لا ظل إلا ظله : إمام عادل ، وشاب نشأ في عبادة الله ، ورجل قلبه معلق بالمساجد | -| 79 | 895 | \"ابن عمر\" or \"عبد الله بن عمر بن الخطاب\" or \"بن عمر\" or \"عبد الله بن عمر\" | -| 80 | 882 | the writing reeds are raised, the ink is dry | -| 81 | 875 | لا يدخل الجنة | -| 82 | 875 | music haram | -| 83 | 865 | اَللَّهُمَّ اِنَّ انِيْ اَعُوْذُ بِكَ مِنْ فِتْنَةِ الْمَحِيَا وَالْمَمَاتٍ | -| 84 | 862 | 72 hoor | -| 85 | 853 | المسلم من سلم المسلمون من لسانه ويده | -| 86 | 839 | shabe barat | -| 87 | 831 | dhul qarnayn | -| 88 | 822 | اللَّهُمَّ لا مانع لما أعطيتَ ولا مُعطيَ لما | -| 89 | 817 | shab e barah | -| 90 | 816 | إِنَّ الله | -| 91 | 815 | ghadeer khum | -| 92 | 808 | such and such | -| 93 | 800 | كل غلام رهينة بعقيقته تذبح عنه يوم سابعه ويحلق ويسمى | -| 94 | 792 | imam hussain | -| 95 | 781 | anjal karna | -| 96 | 775 | من سن سنة حسنة في الإسلام | -| 97 | 774 | what’s good | -| 98 | 769 | asma bint marwan | -| 99 | 768 | اللهم بارك لأمتي في بكورها | -| 100 | 766 | الصلاة عماد الدين | diff --git a/test results & reports/semantic/report2.md b/test results & reports/semantic/report2.md deleted file mode 100644 index 1ca7f8d..0000000 --- a/test results & reports/semantic/report2.md +++ /dev/null @@ -1,301 +0,0 @@ -# Exact kNN Search Report -**Query:** "comparing yourself to others" -**Date:** 2026-05-20 -**Method:** Exact brute-force kNN — cosine similarity scored against every document's stored embedding -**Results per case:** top 10 - ---- - -## Methodology - -Standard semantic search in Elasticsearch uses HNSW (Hierarchical Navigable Small World), an approximate nearest-neighbor algorithm. HNSW explores only a subset of the index graph, so it can miss documents that are actually more similar to the query. - -This report uses **exact brute-force kNN**: a Painless `script_score` query computes the full cosine similarity between the query embedding and every document's stored embedding, guaranteeing the true top-N results. - -**Implementation:** -1. Query embedding obtained via the ES `_inference` API (same endpoint used during indexing). -2. `script_score` query with `match_all` reads each doc's `semantic_text.inference.chunks.embeddings` from `_source` and computes cosine similarity in Painless. -3. All docs in each index are scored — no graph traversal, no approximation. - -**Scores:** Raw cosine similarity (range −1 to 1). To convert to the ES `semantic` query score format: `es_score = (cosine + 1) / 2`. - -**Performance:** 6–12 seconds per model on 48k–141k documents (single-shard, single-node ES). - -**Docs scored per model:** -| Model | Docs scored | Index total | Note | -|---|---|---|---| -| openai-small-en | 48,703 | ~99k | English docs with embeddings | -| openai-small-multi | 141,000 | ~285k | English + Arabic docs with embeddings | -| nomic | 48,703 | ~99k | English docs with embeddings | -| mxbai | 48,703 | ~99k | English docs with embeddings | - ---- - -## Exact kNN — openai-small-en - -### #1 — adab 328 · cosine: 0.3795 · equiv ES score: 0.6897 -> "Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults."" - ---- - -### #2 — bukhari 6490 · cosine: 0.3789 · equiv ES score: 0.6895 -> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." - ---- - -### #3 — riyadussalihin 466 · cosine: 0.3702 · equiv ES score: 0.6851 -> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." - ---- - -### #4 — ahmad 111 · cosine: 0.3543 · equiv ES score: 0.6772 -> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah ﷺ told me not to do them. He said: ..." - ---- - -### #5 — forty 18 · cosine: 0.3507 · equiv ES score: 0.6754 -> "The felicitous person takes lessons from (the actions of) others." - ---- - -### #6 — muslim 2963 c · cosine: 0.3406 · equiv ES score: 0.6703 -> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you." - ---- - -### #7 — adab 592 · cosine: 0.3337 · equiv ES score: 0.6668 -> "Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye."" - ---- - -### #8 — muslim 2963 a · cosine: 0.3323 · equiv ES score: 0.6662 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - ---- - -### #9 — abudawud 4084 · cosine: 0.3312 · equiv ES score: 0.6656 -> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say "On you be peace," for "On you be peace" is a greeting for the dead, but say "Peace be upon you". I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and..." - ---- - -### #10 — bulugh 1471 · cosine: 0.3276 · equiv ES score: 0.6638 -> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." - ---- - - -## Exact kNN — openai-small-multi - -### #1 — adab 328 · cosine: 0.3795 · equiv ES score: 0.6897 -> "Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults."" - ---- - -### #2 — bukhari 6490 · cosine: 0.3789 · equiv ES score: 0.6895 -> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." - ---- - -### #3 — riyadussalihin 466 · cosine: 0.3702 · equiv ES score: 0.6851 -> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." - ---- - -### #4 — ahmad 111 · cosine: 0.3542 · equiv ES score: 0.6771 -> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah ﷺ told me not to do them. He said: ..." - ---- - -### #5 — forty 18 · cosine: 0.3507 · equiv ES score: 0.6754 -> "The felicitous person takes lessons from (the actions of) others." - ---- - -### #6 — muslim 2963 c · cosine: 0.3406 · equiv ES score: 0.6703 -> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you." - ---- - -### #7 — adab 592 · cosine: 0.3337 · equiv ES score: 0.6668 -> "Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye."" - ---- - -### #8 — muslim 2963 a · cosine: 0.3323 · equiv ES score: 0.6662 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - ---- - -### #9 — abudawud 4084 · cosine: 0.3312 · equiv ES score: 0.6656 -> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say "On you be peace," for "On you be peace" is a greeting for the dead, but say "Peace be upon you". I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and..." - ---- - -### #10 — bulugh 1471 · cosine: 0.3276 · equiv ES score: 0.6638 -> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." - ---- - - -## Exact kNN — nomic - -### #1 — bukhari 6490 · cosine: 0.671 · equiv ES score: 0.8355 -> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." - ---- - -### #2 — bukhari 6061 · cosine: 0.6323 · equiv ES score: 0.8161 -> "Narrated Abu Bakra: A man was mentioned before the Prophet and another man praised him greatly The Prophet said, "May Allah's Mercy be on you ! You have cut the neck of your friend." The Prophet repeated this sentence many times and said, "If it is indispensable for anyone of you to praise someone, then he should say, 'I think that he is so-and-so," if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody before Allah." (Khalid said, "Woe to you," instead of "Allah's Mercy be on you.")" - ---- - -### #3 — bukhari 6530 · cosine: 0.6227 · equiv ES score: 0.8114 -> "Narrated Abu Sa`id: The Prophet said, "Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) are the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine (persons).' At that time children will become hoary-headed and every pregnant female will drop her load (have an abortion) and you will see the people as if they were drunk, yet not drunk; But Allah's punishment will be very severe." That news distressed the companions of ..." - ---- - -### #4 — bulugh 1471 · cosine: 0.6218 · equiv ES score: 0.8109 -> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." - ---- - -### #5 — muslim 2963 a · cosine: 0.6211 · equiv ES score: 0.8105 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - ---- - -### #6 — tirmidhi 2513 · cosine: 0.6181 · equiv ES score: 0.8091 -> "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you."" - ---- - -### #7 — nasai 3947 · cosine: 0.6161 · equiv ES score: 0.808 -> "It was narrated from Abu Musa that the Prophet said: "The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food."" - ---- - -### #8 — bukhari 6162 · cosine: 0.6136 · equiv ES score: 0.8068 -> "Narrated Abu Bakra: A man praised another man in front of the Prophet. The Prophet said thrice, "Wailaka (Woe on you) ! You have cut the neck of your brother!" The Prophet added, "If it is indispensable for anyone of you to praise a person, then he should say, "I think that such-and-such person (is so-and-so), and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah (and that only if he knows well about that person.)"." - ---- - -### #9 — abudawud 4627 · cosine: 0.6096 · equiv ES score: 0.8048 -> "Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." - ---- - -### #10 — adab 1146 · cosine: 0.6093 · equiv ES score: 0.8046 -> "Ibn 'Abbas said, "The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me."" - ---- - - -## Exact kNN — mxbai - -### #1 — forty 18 · cosine: 0.6287 · equiv ES score: 0.8144 -> "The felicitous person takes lessons from (the actions of) others." - ---- - -### #2 — bukhari 6490 · cosine: 0.6062 · equiv ES score: 0.8031 -> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." - ---- - -### #3 — forty 3 · cosine: 0.5944 · equiv ES score: 0.7972 -> "A Muslim is a mirror of the Muslim." - ---- - -### #4 — muslim 2963 a · cosine: 0.5875 · equiv ES score: 0.7937 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - ---- - -### #5 — ibnmajah 4336 · cosine: 0.5846 · equiv ES score: 0.7923 -> "Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace there?” He said: “Yes. The Messenger of Allah (saw) told me that when the people of Paradise enter it, they will take their places according to their deeds, and they will be given permission for a length of time equivalent to Friday on earth, when they will visit Allah. His Throne will be shown to them and He will appear to them in one of the gardens of Paradise. Chairs of light and chairs of pearls and chairs of rubies and chairs of chrysolite and chairs of gold and chairs of silver will be placed..." - ---- - -### #6 — adab 159 · cosine: 0.5824 · equiv ES score: 0.7912 -> "Abu'd-Darda' used to say to people. "We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves."" - ---- - -### #7 — bukhari 3348 · cosine: 0.5786 · equiv ES score: 0.7893 -> "Narrated Abu Sa`id Al-Khudri: The Prophet said, "Allah will say (on the Day of Resurrection), 'O Adam.' Adam will reply, 'Labbaik wa Sa`daik', and all the good is in Your Hand.' Allah will say: 'Bring out the people of the fire.' Adam will say: 'O Allah! How many are the people of the Fire?' Allah will reply: 'From every one thousand, take out nine-hundred-and ninety-nine.' At that time children will become hoary headed, every pregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be drunken, but dreadful will be the Wrath of Allah." The companions of the Prophet asked, "O Allah's Apostle! Who is that (excepted) one?" He said, "Rejoice with glad ti..." - ---- - -### #8 — riyadussalihin 466 · cosine: 0.5742 · equiv ES score: 0.7871 -> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." - ---- - -### #9 — muslim 2536 · cosine: 0.5716 · equiv ES score: 0.7858 -> "'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." - ---- - -### #10 — nasai 384b · cosine: 0.5656 · equiv ES score: 0.7828 -> "(Another chain) with similarity." - ---- - - ---- - -## Comparison: Exact kNN vs HNSW (size=100) - -HNSW results are from report1.md semantic sections (re-fetched with size=100). ES semantic scores converted to cosine via `cosine = 2 × es_score − 1` for comparison. - -### openai-small-en - -**Identical.** Both methods return the same top 10 in the same order. HNSW with size=100 was sufficient for this model and query. - -### openai-small-multi - -**Identical.** Same top 10 as openai-small-en (same English docs, same embeddings from the same model). Divergence would appear for Arabic queries where the multilingual index has unique coverage. - -### nomic - -**Same docs, two pairs swapped.** All 10 docs appear in both, but HNSW got the ranking wrong for two adjacent-score pairs: - -| Rank | HNSW (size=100) | Exact kNN | -|---|---|---| -| #3 | bulugh 1471 (cosine ≈ 0.6222) | **bukhari 6530 (cosine 0.6227)** | -| #4 | bukhari 6530 (cosine ≈ 0.6218) | **bulugh 1471 (cosine 0.6218)** | -| #7 | bukhari 6162 (cosine ≈ 0.617) | **nasai 3947 (cosine 0.6161)** | -| #8 | nasai 3947 (cosine ≈ 0.6154) | **bukhari 6162 (cosine 0.6136)** | - -Score deltas are < 0.001 — HNSW graph traversal resolved ties incorrectly for both pairs. - -### mxbai - -**Two docs missed, two ghost docs.** Most significant discrepancy across all models: - -| Rank | HNSW (size=100) | Exact kNN | Delta | -|---|---|---|---| -| #5 | ibnmajah 4336 ✓ | ibnmajah 4336 ✓ | same | -| #6 | adab 159 ✓ | adab 159 ✓ | same | -| #7 | riyadussalihin 466 (≈ 0.573) | **bukhari 3348 (0.5786)** | HNSW missed | -| #8 | muslim 2536 ✓ | muslim 2536 ✓ | shifted ranks | -| #9 | tirmidhi 2513 (≈ 0.564) | muslim 2536 | HNSW ghost | -| #10 | abudawud 4092 (≈ 0.564) | **nasai 384b (0.5656)** | HNSW ghost / missed | - -**HNSW ghost docs**: tirmidhi 2513 and abudawud 4092 appear in the HNSW top 10 but their true cosine (≈ 0.564) is below nasai 384b (0.5656), so they fall outside the exact top 10. - -**HNSW missed**: bukhari 3348 (cosine 0.5786) — its true similarity is higher than riyadussalihin 466 (≈ 0.573) which HNSW returned at that slot, yet HNSW never found it. - -> **Note on nasai 384b:** Content-free chain-of-transmission metadata ("(Another chain) with similarity."). Appears at exact #10 as a model artifact. A minimum text-length filter at indexing time would exclude it. - ---- - -## Summary - -| Model | Exact vs HNSW (size=100) | Key finding | -|---|---|---| -| openai-small-en | ✓ Identical | HNSW fully accurate for this model/query | -| openai-small-multi | ✓ Identical | Same English docs, same embeddings | -| nomic | Same docs, 2 rank swaps | HNSW ranking errors < 0.001 cosine — negligible | -| mxbai | 2 docs missed, 2 ghost docs | HNSW missed bukhari 3348 (higher true cosine than docs it returned) | diff --git a/test results & reports/semantic/report3.md b/test results & reports/semantic/report3.md deleted file mode 100644 index 9338527..0000000 --- a/test results & reports/semantic/report3.md +++ /dev/null @@ -1,296 +0,0 @@ -# kNN Search Report — num_candidates=10000 -**Query:** "comparing yourself to others" -**Date:** 2026-05-20 -**Method:** `knn` query on HNSW index with `num_candidates=10000` (ES hard maximum) -**Results per case:** top 10 - ---- - -## Methodology - -ES's `knn` query runs on the HNSW approximate nearest-neighbor index. The `num_candidates` parameter controls how many graph nodes are explored before returning `k` results — higher values improve accuracy at the cost of latency. - -ES 8.16 hard-caps `num_candidates` at **10,000**. This report uses that maximum for every model. - -**How this differs from the two previous reports:** -| Method | How it works | Candidates explored | Query time | -|---|---|---|---| -| Semantic search (production) | HNSW, `num_candidates` implicit (~1k) | ~1,000 | ~50ms | -| This report | HNSW, `num_candidates=10000` | 10,000 (ES max) | 0.05–1.2s | -| Exact kNN (report2) | script_score brute-force | All docs (48k–141k) | 6–12s | - -**Index coverage explored:** -| Model | Index docs | Candidates | Coverage | -|---|---|---|---| -| openai-small-en | ~99k | 10,000 | ~10% | -| openai-small-multi | ~285k | 10,000 | ~3.5% | -| nomic | ~99k | 10,000 | ~10% | -| mxbai | ~99k | 10,000 | ~10% | - ---- - -## kNN (10k) — openai-small-en - -### #1 — adab 328 · score: 0.6896 -> "Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults."" - ---- - -### #2 — bukhari 6490 · score: 0.6896 -> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." - ---- - -### #3 — riyadussalihin 466 · score: 0.6851 -> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." - ---- - -### #4 — ahmad 111 · score: 0.6775 -> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah ﷺ told me not to do them. He said: ..." - ---- - -### #5 — forty 18 · score: 0.6753 -> "The felicitous person takes lessons from (the actions of) others." - ---- - -### #6 — muslim 2963 c · score: 0.6708 -> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you." - ---- - -### #7 — adab 592 · score: 0.6669 -> "Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye."" - ---- - -### #8 — muslim 2963 a · score: 0.6666 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - ---- - -### #9 — abudawud 4084 · score: 0.6659 -> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say "On you be peace," for "On you be peace" is a greeting for the dead, but say "Peace be upon you". I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and..." - ---- - -### #10 — bulugh 1471 · score: 0.664 -> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." - ---- - - -## kNN (10k) — openai-small-multi - -### #1 — adab 328 · score: 0.6898 -> "Ibn 'Abbas said, "When you want to mention your companion's faults, remember your own faults."" - ---- - -### #2 — bukhari 6490 · score: 0.6894 -> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." - ---- - -### #3 — riyadussalihin 466 · score: 0.685 -> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." - ---- - -### #4 — ahmad 111 · score: 0.6779 -> "It was narrated from al-Harith bin Mu'awiyah al-Kindi, that he travelled to meet ‘Umar bin al-Khattab and ask him about three things. He came to Madinah and ‘Umar asked him: What brought you here? He said: (I came) to ask you about three things. He said: What are they? He said: A woman and I may be in a confined space and the time for prayer comes, but if we both pray she will be standing next to me, and if she prays behind me she will have to go out of the space, ‘Umar said: Put a cloth to serve as a screen between you and her, and let her pray alongside you if you wish. (And I asked) about the two rak'ahs after 'Asr and he said: The Messenger of Allah ﷺ told me not to do them. He said: ..." - ---- - -### #5 — forty 18 · score: 0.6752 -> "The felicitous person takes lessons from (the actions of) others." - ---- - -### #6 — muslim 2963 c · score: 0.6709 -> "Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Look at those who stand at a lower level than you but don't look at those who stand at a higher level than you, for that is better-suited that you do not disparage Allah's favors. In the chain narrated by Abu Mu'awiya's he said: Upon you." - ---- - -### #7 — adab 592 · score: 0.6667 -> "Abu Hurayra said, "One of you looks at the mote in his brother's eye while forgetting the stump in his own eye."" - ---- - -### #8 — muslim 2963 a · score: 0.6666 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - ---- - -### #9 — abudawud 4084 · score: 0.6655 -> "Narrated AbuJurayy Jabir ibn Salim al-Hujaymi: I saw a man whose opinion was accepted by the people, and whatever he said they submitted to it. I asked: Who is he? They said: This is the Messenger of Allah (saws). I said: On you be peace, Messenger of Allah, twice. He said: Do not say "On you be peace," for "On you be peace" is a greeting for the dead, but say "Peace be upon you". I asked: You are the Messenger of Allah (may peace be upon you)? He said: I am the Messenger of Allah Whom you call when a calamity befalls you and He removes it; when you suffer from drought and you call Him, He grows food for you; and when you are in a desolate land or in a desert and your she-camel strays and..." - ---- - -### #10 — bulugh 1471 · score: 0.6634 -> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." - ---- - - -## kNN (10k) — nomic - -### #1 — bukhari 6490 · score: 0.8354 -> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." - ---- - -### #2 — bukhari 6061 · score: 0.8165 -> "Narrated Abu Bakra: A man was mentioned before the Prophet and another man praised him greatly The Prophet said, "May Allah's Mercy be on you ! You have cut the neck of your friend." The Prophet repeated this sentence many times and said, "If it is indispensable for anyone of you to praise someone, then he should say, 'I think that he is so-and-so," if he really thinks that he is such. Allah is the One Who will take his accounts (as He knows his reality) and no-one can sanctify anybody before Allah." (Khalid said, "Woe to you," instead of "Allah's Mercy be on you.")" - ---- - -### #3 — bulugh 1471 · score: 0.8111 -> "Ibn ’Umar (RAA) narrated that the Messenger of Allah (P.B.U.H.) said, “He who imitates any people (in their actions) is considered to be one of them.” Related by Abu Dawud and Ibn Hibban graded it as Sahih." - ---- - -### #4 — bukhari 6530 · score: 0.8109 -> "Narrated Abu Sa`id: The Prophet said, "Allah will say, 'O Adam!. Adam will reply, 'Labbaik and Sa`daik (I respond to Your Calls, I am obedient to Your orders), wal Khair fi Yadaik (and all the good is in Your Hands)!' Then Allah will say (to Adam), Bring out the people of the Fire.' Adam will say, 'What (how many) are the people of the Fire?' Allah will say, 'Out of every thousand (take out) nine hundred and ninety-nine (persons).' At that time children will become hoary-headed and every pregnant female will drop her load (have an abortion) and you will see the people as if they were drunk, yet not drunk; But Allah's punishment will be very severe." That news distressed the companions of ..." - ---- - -### #5 — muslim 2963 a · score: 0.8103 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - ---- - -### #6 — tirmidhi 2513 · score: 0.809 -> "Abu Hurairah narrated that the Messenger of Allah (s.a.w) said: "Look to one who is lower than you, and do not look to one who is above you. For indeed that is more worthy(so that you will) not belittle Allah's favors upon you."" - ---- - -### #7 — bukhari 6162 · score: 0.8085 -> "Narrated Abu Bakra: A man praised another man in front of the Prophet. The Prophet said thrice, "Wailaka (Woe on you) ! You have cut the neck of your brother!" The Prophet added, "If it is indispensable for anyone of you to praise a person, then he should say, "I think that such-and-such person (is so-and-so), and Allah is the one who will take his accounts (as he knows his reality) and none can sanctify anybody before Allah (and that only if he knows well about that person.)"." - ---- - -### #8 — nasai 3947 · score: 0.8077 -> "It was narrated from Abu Musa that the Prophet said: "The superiority of 'Aishah to other women is like the superiority of Tharid to other kinds of food."" - ---- - -### #9 — abudawud 4627 · score: 0.8051 -> "Ibn ‘Umar said: We used to say in the times of the Prophet (saws): We do not compare anyone with Abu Bakr. ’Umar came next and then ‘Uthman. We then would leave (rest of) the companions of the Prophet (saws) without treating any as superior to other." - ---- - -### #10 — adab 1146 · score: 0.8041 -> "Ibn 'Abbas said, "The most precious of people in my opinion is my sitting companion. This is so much the case that he can step over the shoulders of people until he sits with me."" - ---- - - -## kNN (10k) — mxbai - -### #1 — forty 18 · score: 0.8147 -> "The felicitous person takes lessons from (the actions of) others." - ---- - -### #2 — bukhari 6490 · score: 0.8022 -> "Narrated Abu Huraira: Allah's Apostle said, "If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him." - ---- - -### #3 — forty 3 · score: 0.7969 -> "A Muslim is a mirror of the Muslim." - ---- - -### #4 — muslim 2963 a · score: 0.794 -> "Abu Huraira reported that Allah's Messenger (may peace be upon him) said: When one of you looks at one who stands at a higher level than you in regard to wealth and physical structure he should also see one who stands at a lower level than you in regard to these things (in which he stands) at a higher level (as compared to him)." - ---- - -### #5 — ibnmajah 4336 · score: 0.792 -> "Sa’eed bin Al-Musayyab said that he met Abu Hurairah and Abu Hurairah said: “I supplicate Allah to bring you and I together in the marketplace of Paradise,” Sa’eed said: “Is there a marketplace there?” He said: “Yes. The Messenger of Allah (saw) told me that when the people of Paradise enter it, they will take their places according to their deeds, and they will be given permission for a length of time equivalent to Friday on earth, when they will visit Allah. His Throne will be shown to them and He will appear to them in one of the gardens of Paradise. Chairs of light and chairs of pearls and chairs of rubies and chairs of chrysolite and chairs of gold and chairs of silver will be placed..." - ---- - -### #6 — adab 159 · score: 0.7897 -> "Abu'd-Darda' used to say to people. "We know you better than the veterinarian knows his animals. We recognise the best of you from the worst of you. The best of you is the one whose good is hoped for and the one whose evil you are safe from. As for the worst of you, that is the person whose good is not hoped for and whose evil you are not safe from and he does not free slaves."" - ---- - -### #7 — bukhari 3348 · score: 0.7888 -> "Narrated Abu Sa`id Al-Khudri: The Prophet said, "Allah will say (on the Day of Resurrection), 'O Adam.' Adam will reply, 'Labbaik wa Sa`daik', and all the good is in Your Hand.' Allah will say: 'Bring out the people of the fire.' Adam will say: 'O Allah! How many are the people of the Fire?' Allah will reply: 'From every one thousand, take out nine-hundred-and ninety-nine.' At that time children will become hoary headed, every pregnant female will have a miscarriage, and one will see mankind as drunken, yet they will not be drunken, but dreadful will be the Wrath of Allah." The companions of the Prophet asked, "O Allah's Apostle! Who is that (excepted) one?" He said, "Rejoice with glad ti..." - ---- - -### #8 — riyadussalihin 466 · score: 0.7864 -> "Abu Hurairah (May allah be pleased with him) reported: Messenger of Allah (PBUH) said, "Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling Allah's favour to you." This is the wording in Sahih Muslim. [Al-Bukhari and Muslim] . The narration in Al-Bukhari is: Messenger of Allah (PBUH) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him"." - ---- - -### #9 — muslim 2536 · score: 0.7854 -> "'A'isha reported that a person asked Allah's Apostle (may peace be upon him) as to who amongst the people were the best. He said: Of the generation to which I belong, then of the second generation (generation adjacent to my generation), then of the third generation (generation adjacent to the second generation)." - ---- - -### #10 — nasai 384b · score: 0.7824 -> "(Another chain) with similarity." - ---- - - ---- - -## Comparison across all three methods - -### openai-small-en - -**All three methods identical.** HNSW (production size=100), kNN 10k, and exact brute-force return the same top 10 in the same order. The HNSW index is accurate for this model and query. - -### openai-small-multi - -**All three methods identical.** Same English docs, same embeddings from the same model. Multilingual divergence would appear for Arabic queries. - -### nomic - -**kNN 10k = HNSW size=100. Both differ from exact kNN at ranks #3/#4 and #7/#8.** - -The same two ranking swaps persist at num_candidates=10000 as at the production default (~1k candidates). This means the HNSW graph topology itself has encoded the wrong neighbors for these near-identical-score pairs — increasing candidate count doesn't help because the graph is navigated to the same local optimum. Only brute-force resolves it. - -| Rank | HNSW / kNN 10k | Exact kNN | Score delta | -|---|---|---|---| -| #3 | bulugh 1471 | **bukhari 6530** | < 0.001 cosine | -| #4 | bukhari 6530 | **bulugh 1471** | < 0.001 cosine | -| #7 | bukhari 6162 | **nasai 3947** | < 0.001 cosine | -| #8 | nasai 3947 | **bukhari 6162** | < 0.001 cosine | - -The deltas are below 0.001 cosine, so the practical impact is minimal for search quality evaluation. - -### mxbai - -**kNN 10k = exact kNN. Both differ from HNSW size=100.** - -At num_candidates=10000 (~10% of the index), the HNSW correctly identifies the true top-10 — the same results as exhaustive brute-force. The production setting (size=100, ~1k candidates) had approximation errors. - -| Rank | HNSW size=100 (production) | kNN 10k / Exact | -|---|---|---| -| #7 | riyadussalihin 466 | **bukhari 3348** (score 0.7888) | -| #9 | tirmidhi 2513 | **muslim 2536** | -| #10 | abudawud 4092 | **nasai 384b** (score 0.7824) | - -> **In short:** for mxbai, `num_candidates=10000` is sufficient to get exact-quality results. The production search (size=100 → ~1k candidates) misses bukhari 3348 and returns two ghost docs (tirmidhi 2513, abudawud 4092) that fall below the true top-10 cutoff. - ---- - -## Summary - -| Model | kNN 10k vs production (HNSW size=100) | kNN 10k vs exact brute-force | -|---|---|---| -| openai-small-en | ✓ Identical | ✓ Identical | -| openai-small-multi | ✓ Identical | ✓ Identical | -| nomic | ✓ Identical | ✗ 2 rank swaps (< 0.001 cosine) | -| mxbai | ✗ Different (fixes 2 ghost docs, finds bukhari 3348) | ✓ Identical | - -**Takeaway:** `num_candidates=10000` adds 0.05–1.2s of latency but corrects mxbai's approximation errors without needing brute-force. For nomic's minor ranking swaps (< 0.001 cosine), neither candidate count helps — they're structural graph errors that only brute-force resolves. From 11e36b66cc2595eec8ca10c4ea9bb0183247efc6 Mon Sep 17 00:00:00 2001 From: yug <> Date: Wed, 27 May 2026 21:56:08 -0400 Subject: [PATCH 15/32] minor tweaks --- main.py | 63 ++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 21 deletions(-) diff --git a/main.py b/main.py index 240af6e..b7f25f8 100644 --- a/main.py +++ b/main.py @@ -256,36 +256,50 @@ def _make_mappings(non_indexed_fields, model=None): def _rebuild_index(index_name, documents, non_indexed_fields, model=None): - new_index = f"{index_name}-{int(time.time())}" + # time_ns avoids collisions when two rebuilds land in the same second. + new_index = f"{index_name}-{time.time_ns()}" timeout = BULK_REQUEST_TIMEOUT if model else 60 es_client.indices.create( index=new_index, mappings=_make_mappings(non_indexed_fields, model), settings=_make_settings(), ) - success, errors = _bulk_index(documents, new_index, timeout=timeout) - if success == 0: + try: + success, errors = _bulk_index(documents, new_index, timeout=timeout) + if success == 0: + es_client.indices.delete(index=new_index, ignore_unavailable=True) + return {"mode": "rebuild", "success_count": 0, "errors": errors} + + old_indices = [] + if es_client.indices.exists_alias(name=index_name): + old_indices = list(es_client.indices.get_alias(name=index_name).keys()) + elif es_client.indices.exists(index=index_name): + es_client.indices.delete(index=index_name) + + actions = [{"add": {"index": new_index, "alias": index_name}}] + for old in old_indices: + actions.append({"remove": {"index": old, "alias": index_name}}) + es_client.indices.update_aliases(actions=actions) + for old in old_indices: + es_client.indices.delete(index=old, ignore_unavailable=True) + except Exception: es_client.indices.delete(index=new_index, ignore_unavailable=True) - return {"mode": "rebuild", "success_count": 0, "errors": errors} - - old_indices = [] - if es_client.indices.exists_alias(name=index_name): - old_indices = list(es_client.indices.get_alias(name=index_name).keys()) - elif es_client.indices.exists(index=index_name): - es_client.indices.delete(index=index_name) - - actions = [{"add": {"index": new_index, "alias": index_name}}] - for old in old_indices: - actions.append({"remove": {"index": old, "alias": index_name}}) - es_client.indices.update_aliases(actions=actions) - for old in old_indices: - es_client.indices.delete(index=old, ignore_unavailable=True) + raise return {"mode": "rebuild", "success_count": success, "errors": errors} def _incremental_index(index_name, documents, model=None): incoming = {doc["_id"]: doc for doc in documents} + if not incoming: + # Refuse to wipe the live index when the source returns nothing + # (transient DB failure, wrong DATABASE env, etc.). + return { + "mode": "incremental", + "indexed": 0, "deleted": 0, "unchanged": 0, + "success_count": 0, + "errors": ["source returned 0 documents — refusing to delete live index"], + } existing_hashes = {} for hit in helpers.scan( es_client, index=index_name, query={"_source": ["contentHash"]}, size=2000 @@ -474,10 +488,13 @@ def _resolve_mode(args): def _resolve_model_key(args): + """Returns (key, error_message). error_message is non-None for explicit invalid input.""" key = args.get("model") + if not key: + return next(iter(_ENABLED_MODELS), None), None if key in _ENABLED_MODELS: - return key - return next(iter(_ENABLED_MODELS), None) + return key, None + return None, f"unknown model '{key}'; enabled: {sorted(_ENABLED_MODELS)}" def malformed_query_response(exc): @@ -490,8 +507,12 @@ def search(language): query = request.args.get("q") filters = get_filter_from_args(request.args) mode = _resolve_mode(request.args) - model_key = _resolve_model_key(request.args) if mode in SEMANTIC_MODES else None - model = _ENABLED_MODELS.get(model_key) if model_key else None + model_key, model = None, None + if mode in SEMANTIC_MODES: + model_key, err = _resolve_model_key(request.args) + if err: + return jsonify({"error": err}), 400 + model = _ENABLED_MODELS.get(model_key) if model_key else None search_index = model["index"] if model else LEXICAL_INDEX fields = ["hadithNumber^2", "hadithText", "arabicText", "collection^2"] From a76776e496de88b4f9c4e4a48047891ef84e6b02 Mon Sep 17 00:00:00 2001 From: yug <> Date: Wed, 27 May 2026 22:04:40 -0400 Subject: [PATCH 16/32] revert gitignore chagnes, minor readme changes --- .gitignore | 2 +- README.md | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 810d734..f6f0aa4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -*.sql +db/01-hadithdb.sql .env __pycache__ data/ diff --git a/README.md b/README.md index a0fb9a2..7865b47 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Each index name in ES is an **alias** (e.g. `english-mxbai`) pointing to a times cp .env.sample .env ``` -Set `MXBAI_ENABLED=true` in `.env`. `OLLAMA_URL` defaults to `http://host.docker.internal:11434`, which works on Docker Desktop (Mac/Windows) — leave it unset locally. +For semantic search, set `MXBAI_ENABLED=true` in `.env`. `OLLAMA_URL` defaults to `http://host.docker.internal:11434`, which works on Docker Desktop (Mac/Windows) — leave it unset locally. ### 2. Pull the model @@ -51,30 +51,30 @@ ollama pull mxbai-embed-large docker compose up --build ``` -Flask is exposed on **port 5001**. +Flask is exposed on **port 5000**. ### 4. Build the indexes ``` -http://localhost:5001/index?password=index123 +http://localhost:5000/index?password=index123 ``` This reads all hadiths from MySQL and builds both the lexical and mxbai indexes. Embedding ~48k English hadiths takes a few minutes. To index only one at a time: ``` -http://localhost:5001/index?password=index123&model=mxbai -http://localhost:5001/index?password=index123&model=lexical +http://localhost:5000/index?password=index123&model=mxbai +http://localhost:5000/index?password=index123&model=lexical ``` To force a full rebuild instead of incremental: ``` -http://localhost:5001/index?password=index123&rebuild=true +http://localhost:5000/index?password=index123&rebuild=true ``` Check index status (doc counts): ``` -http://localhost:5001/index/status +http://localhost:5000/index/status ``` --- From 7a711e295c5d47eae6ade524895aaa8cb26b2822 Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 12:16:36 -0400 Subject: [PATCH 17/32] Offload index-time embedding to HF Dedicated Endpoint Adds an optional path that pre-computes mxbai-embed-large vectors via a TEI-backed HF Inference Endpoint and ships them inline in the bulk payload, so ES `semantic_text` skips its own inference call during indexing. Query-time embedding still goes through the Ollama-bound ES inference endpoint. Configured via HUGGING_FACE_KEY + HF_DEDICATED_URL; unset either to fall back to Ollama for indexing. Empty-text hadiths are filtered out so TEI doesn't reject whole batches. RateLimiter lives in utils/ for reuse and easier unit testing. Co-Authored-By: Claude Opus 4.7 (1M context) --- .env.sample | 6 ++ README.md | 19 ++-- main.py | 201 ++++++++++++++++++++++++++++++++++++++++-- utils/rate_limiter.py | 42 +++++++++ 4 files changed, 256 insertions(+), 12 deletions(-) create mode 100644 utils/rate_limiter.py diff --git a/.env.sample b/.env.sample index 1e0adf2..401e2e9 100644 --- a/.env.sample +++ b/.env.sample @@ -19,6 +19,12 @@ INDEXING_PASSWORD=index123 # On Linux set OLLAMA_URL explicitly — see README. # OLLAMA_URL=http://host.docker.internal:11434 MXBAI_ENABLED=false +# Index-time embedding via your own HF Dedicated Inference Endpoint (TEI-backed). +# Query-time embedding always stays on local Ollama. Unset either var → ES +# embeds via Ollama at index time too. +HUGGING_FACE_KEY=key +# HF Inference Endpoint base URL (no trailing slash, no /v1/embeddings — we append). +HF_DEDICATED_URL=https://some-endpoint # Grafana Cloud — logs (Loki) # Get from: grafana.com → your stack → Loki card → "Send Logs" diff --git a/README.md b/README.md index 7865b47..5d40cd0 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,11 @@ Browser / PHP website │ ┌───────────┴───────────┐ │ english-lexical │ BM25, no embeddings - │ english-mxbai │ mxbai-embed-large via Ollama + │ english-mxbai │ mxbai-embed-large vectors └───────────────────────┘ - Ollama (runs on host, port 11434) — serves mxbai-embed-large + Ollama (host, port 11434) — embeds search queries + HF Dedicated Endpoint (optional) — embeds documents at index time ``` Each index name in ES is an **alias** (e.g. `english-mxbai`) pointing to a timestamped backing index. Reindexing builds a new backing index and atomically swaps the alias — the live index keeps serving traffic during the rebuild. @@ -39,6 +40,8 @@ cp .env.sample .env For semantic search, set `MXBAI_ENABLED=true` in `.env`. `OLLAMA_URL` defaults to `http://host.docker.internal:11434`, which works on Docker Desktop (Mac/Windows) — leave it unset locally. +To offload index-time embedding to a HuggingFace Dedicated Inference Endpoint (recommended for prod — orders of magnitude faster on a small GPU than Ollama on a CPU instance), also set `HUGGING_FACE_KEY` and `HF_DEDICATED_URL` in `.env`. The endpoint must run [TEI](https://github.com/huggingface/text-embeddings-inference) with `mixedbread-ai/mxbai-embed-large-v1`. Leaving either var unset falls back to embedding via Ollama at index time too. + ### 2. Pull the model ```bash @@ -59,7 +62,7 @@ Flask is exposed on **port 5000**. http://localhost:5000/index?password=index123 ``` -This reads all hadiths from MySQL and builds both the lexical and mxbai indexes. Embedding ~48k English hadiths takes a few minutes. +This reads all hadiths from MySQL and builds both the lexical and mxbai indexes. Embedding ~48k English hadiths takes ~9 min via the HF Dedicated Endpoint (or considerably longer through Ollama if no remote endpoint is configured). To index only one at a time: ``` @@ -146,11 +149,13 @@ http://:7650/index/status ## Embedding model -| Key | Model | Served by | Dimensions | -|---|---|---|---| -| `mxbai` | mxbai-embed-large | Ollama (host) | 1024 | +| Key | Model | Query-time | Index-time | Dimensions | +|---|---|---|---|---| +| `mxbai` | mxbai-embed-large | Ollama (host) | HF Dedicated Endpoint (optional) → else Ollama | 1024 | + +Queries are always embedded via **Ollama on the host machine** (not inside Docker) — the container reaches it at `http://host.docker.internal:11434` via ES 8.16's OpenAI-compatible inference endpoint. Index-time embedding is offloaded to a remote TEI endpoint when `HUGGING_FACE_KEY` + `HF_DEDICATED_URL` are set: the indexer fetches vectors over HTTP and ships them inline with the bulk payload (ES's `semantic_text` accepts pre-populated chunks and skips its own inference call). Vectors from TEI and Ollama for the same model are bit-compatible (cosine ≈ 0.9999), so queries can match docs embedded by either side. -mxbai runs via **Ollama on the host machine**, not inside Docker. The container reaches it at `http://host.docker.internal:11434`. Ollama exposes an OpenAI-compatible API, which ES 8.16's inference endpoint uses to embed queries and index documents. +Per-run tuning via env vars: `HF_DEDICATED_CONCURRENCY` (default 4), `HF_DEDICATED_BATCH_SIZE` (default 16, must keep `batch × max_input_length ≤ TEI's max_batch_tokens`), `HF_DEDICATED_RPM` (default -1, disabled). ### Adding a model diff --git a/main.py b/main.py index b7f25f8..6d119d0 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,10 @@ import logging import sys import time +import urllib.request +import urllib.error import uuid +from concurrent.futures import ThreadPoolExecutor from flask import Flask, request, jsonify, g from werkzeug.exceptions import HTTPException import pymysql @@ -13,6 +16,7 @@ from elasticsearch import Elasticsearch, helpers, BadRequestError, NotFoundError from pythonjsonlogger import jsonlogger +from utils.rate_limiter import RateLimiter from utils.shortcode_pattern import SHORTCODE_PATTERN load_dotenv(".env.local") @@ -80,6 +84,29 @@ def _is_truthy(value): SEMANTIC_FIELD = "semantic_text" _OLLAMA_URL = os.environ.get("OLLAMA_URL", "http://host.docker.internal:11434") +_HUGGING_FACE_KEY = os.environ.get("HUGGING_FACE_KEY") +_HF_DEDICATED_URL = os.environ.get("HF_DEDICATED_URL") # e.g. https://.endpoints.huggingface.cloud + +# Embedding vector dimensions for mxbai-embed-large(-v1). Used for inline chunks. +_MXBAI_DIMS = 1024 + + +def _build_remote_inference(): + """Index-time embedding via a HuggingFace Inference Endpoint running TEI. + + The endpoint exposes an OpenAI-compatible /v1/embeddings route that returns + L2-normalized vectors directly. Returns None (→ fall back to ES inference + via Ollama at index time) when either env var is missing. + """ + if not (_HUGGING_FACE_KEY and _HF_DEDICATED_URL): + return None + return { + "url": f"{_HF_DEDICATED_URL.rstrip('/')}/v1/embeddings", + "api_key": _HUGGING_FACE_KEY, + "model_id": "mxbai", # TEI ignores model field, but OpenAI shape requires it + "dims": _MXBAI_DIMS, + } + EMBEDDING_MODELS = { "mxbai": { @@ -88,7 +115,8 @@ def _is_truthy(value): "inference_id": "mxbai-embed-large", "enabled": _is_truthy(os.environ.get("MXBAI_ENABLED")), "multilingual": False, - # Ollama exposes an OpenAI-compatible API — use that since ES 8.16 has no native ollama service. + # ES inference endpoint — always bound to local Ollama (query-time embedding). + # Ollama exposes an OpenAI-compatible API; ES 8.16 has no native ollama service. "service": "openai", "service_settings": { "api_key": "ollama", # Ollama doesn't require auth; ES requires a non-empty value @@ -96,6 +124,12 @@ def _is_truthy(value): "model_id": "mxbai-embed-large", "similarity": "cosine", }, + # Optional remote inference for index time only. When set, the indexer + # pre-computes vectors via the HF Dedicated Endpoint and ships them + # inline in the bulk payload (semantic_text accepts pre-populated chunks + # and skips its own inference call). Query time always goes through the + # ES inference endpoint above (local Ollama). + "remote_inference": _build_remote_inference(), }, } @@ -170,6 +204,155 @@ def _prepare_documents(documents): doc["contentHash"] = _content_hash(doc) +# TEI (Text Embeddings Inference) tuning, all env-overridable: +# HF_DEDICATED_CONCURRENCY: HF's per-endpoint pool starts 429ing well below +# TEI's stated max_concurrent_requests=512. c=4 is empirically clean; raise +# when the endpoint is configured with higher autoscale. +# HF_DEDICATED_BATCH_SIZE: batch_size × max_input_length must stay under TEI's +# max_batch_tokens (default 16384). 16 × 512 = 8192 leaves headroom. +_REMOTE_EMBED_CONCURRENCY = int(os.environ.get("HF_DEDICATED_CONCURRENCY", "4")) +_REMOTE_EMBED_BATCH_SIZE = int(os.environ.get("HF_DEDICATED_BATCH_SIZE", "16")) +# HF Dedicated bills by compute-time, not RPM — default no throttle. Override +# via HF_DEDICATED_RPM (set >0) if you ever hit per-endpoint rate limits. +_REMOTE_EMBED_RPM = int(os.environ.get("HF_DEDICATED_RPM", "-1")) +_REMOTE_EMBED_MAX_RETRIES = 6 +_REMOTE_EMBED_BACKOFF_FLOOR_S = 5 + + +def _embed_via_remote(model, texts): + """Batch-embed `texts` via the configured HF Dedicated Endpoint. + + Returns a list of float vectors aligned with input order. Retries on 429 + and transient 5xx with exponential backoff (Retry-After respected when + ≥ floor). Captures the response body on non-retryable failures (e.g. 400 + "inputs cannot be empty") to make debugging easier. + """ + cfg = model["remote_inference"] + headers = { + "Authorization": f"Bearer {cfg['api_key']}", + "Content-Type": "application/json", + } + limiter = RateLimiter(_REMOTE_EMBED_RPM, log=access_log) + + def _embed_batch(batch_texts): + # OpenAI-shape body; TEI accepts the `truncate` field on /v1/embeddings + # to silently handle inputs over max_input_length. + payload = json.dumps({"model": cfg["model_id"], "input": batch_texts, + "truncate": True}).encode("utf-8") + for attempt in range(_REMOTE_EMBED_MAX_RETRIES): + limiter.acquire() + req = urllib.request.Request(cfg["url"], data=payload, headers=headers, method="POST") + try: + with urllib.request.urlopen(req, timeout=120) as resp: + body = json.loads(resp.read()) + # TEI's /v1/embeddings returns OpenAI shape with L2-normalized vectors. + return [item["embedding"] for item in body["data"]] + except urllib.error.HTTPError as e: + retryable = e.code == 429 or 500 <= e.code < 600 + if not retryable or attempt == _REMOTE_EMBED_MAX_RETRIES - 1: + # Capture body for non-retryable failures so we can debug + # 400-class errors (oversize inputs, bad model id, etc.). + body_snippet = e.read()[:400].decode("utf-8", errors="replace") + access_log.error( + "remote_embed_failed", + extra={"status": e.code, "body": body_snippet, + "batch_size": len(batch_texts)}, + ) + raise + retry_after = e.headers.get("Retry-After") + parsed = float(retry_after) if retry_after and retry_after.replace(".", "", 1).isdigit() else 0 + # TEI sometimes returns Retry-After: 0 — enforce a floor so we + # don't immediately re-fire and ladder up retry attempts. + wait = max(parsed, _REMOTE_EMBED_BACKOFF_FLOOR_S, min(2 ** attempt, 30)) + access_log.warning( + "remote_embed_retry", + extra={"status": e.code, "attempt": attempt + 1, "wait_s": wait}, + ) + time.sleep(wait) + + batches = [texts[i:i + _REMOTE_EMBED_BATCH_SIZE] + for i in range(0, len(texts), _REMOTE_EMBED_BATCH_SIZE)] + out = [None] * len(batches) + with ThreadPoolExecutor(max_workers=_REMOTE_EMBED_CONCURRENCY) as ex: + future_to_idx = {ex.submit(_embed_batch, b): i for i, b in enumerate(batches)} + for f in future_to_idx: + out[future_to_idx[f]] = f.result() + return [v for batch in out for v in batch] + + +def _attach_semantic_field(paired): + """Attach SEMANTIC_FIELD as plain text. ES auto-embeds via the bound inference + endpoint (Ollama) at bulk time — unless _rewrite_inline_chunks is called first + to pre-populate the field with vectors from a remote inference provider. + + Docs with empty text get no SEMANTIC_FIELD at all — both Ollama and TEI + reject empty inputs, and a doc with no hadithText can't be searched + semantically anyway. + """ + out = [] + for doc, text in paired: + if text and text.strip(): + out.append({**doc, SEMANTIC_FIELD: text}) + else: + out.append(dict(doc)) + return out + + +def _rewrite_inline_chunks(docs, model): + """Replace each doc's plain-text SEMANTIC_FIELD with the full inline-chunks + structure, with vectors fetched from the model's remote inference API. + + Called only on docs about to be bulk-sent (after incremental diffing) so we + don't burn API quota embedding unchanged docs. + """ + remote = model["remote_inference"] + # TEI rejects whole batches that contain any empty string ("`inputs` cannot + # be empty"). Filter to non-empty strings here; docs with empty text keep + # their empty SEMANTIC_FIELD and aren't indexed semantically. + embeddable = [(i, doc[SEMANTIC_FIELD]) for i, doc in enumerate(docs) + if isinstance(doc.get(SEMANTIC_FIELD), str) and doc[SEMANTIC_FIELD].strip()] + if not embeddable: + return docs + + indices = [i for i, _ in embeddable] + texts = [t for _, t in embeddable] + access_log.info( + "remote_embed_start", + extra={"model": model["label"], "doc_count": len(texts), + "batch_size": _REMOTE_EMBED_BATCH_SIZE, + "concurrency": _REMOTE_EMBED_CONCURRENCY, + "rpm": _REMOTE_EMBED_RPM}, + ) + t0 = time.time() + vectors = _embed_via_remote(model, texts) + access_log.info( + "remote_embed_done", + extra={"model": model["label"], "doc_count": len(texts), + "duration_s": round(time.time() - t0, 1)}, + ) + + model_settings = { + "task_type": "text_embedding", + "dimensions": remote["dims"], + "similarity": "cosine", + "element_type": "float", + } + for idx, vec in zip(indices, vectors): + text = docs[idx][SEMANTIC_FIELD] + docs[idx] = { + **docs[idx], + SEMANTIC_FIELD: { + "text": text, + "inference": { + "inference_id": model["inference_id"], + "model_settings": model_settings, + "chunks": [{"text": text, "embeddings": vec}], + }, + }, + } + return docs + + def _bulk_index(actions, index, timeout=None): return helpers.bulk( es_client, @@ -265,6 +448,8 @@ def _rebuild_index(index_name, documents, non_indexed_fields, model=None): settings=_make_settings(), ) try: + if model and model.get("remote_inference"): + documents = _rewrite_inline_chunks(documents, model) success, errors = _bulk_index(documents, new_index, timeout=timeout) if success == 0: es_client.indices.delete(index=new_index, ignore_unavailable=True) @@ -309,6 +494,10 @@ def _incremental_index(index_name, documents, model=None): to_index = [doc for doc_id, doc in incoming.items() if existing_hashes.get(doc_id) != doc["contentHash"]] to_delete = [doc_id for doc_id in existing_hashes if doc_id not in incoming] + + if to_index and model and model.get("remote_inference"): + to_index = _rewrite_inline_chunks(to_index, model) + actions = to_index + [{"_op_type": "delete", "_id": did} for did in to_delete] timeout = BULK_REQUEST_TIMEOUT if model else 60 @@ -410,12 +599,14 @@ def index(): _ensure_inference_endpoint(model) if model.get("multilingual"): # Full corpus: every Arabic doc embeds Arabic text, every English doc embeds English. - en_docs = [{**doc, SEMANTIC_FIELD: doc["hadithText"]} for doc in englishHadiths] - ar_docs = [{**doc, SEMANTIC_FIELD: doc["arabicText"]} for doc in arabicHadiths] - model_docs = en_docs + ar_docs + en_docs = [(doc, doc["hadithText"]) for doc in englishHadiths] + ar_docs = [(doc, doc["arabicText"]) for doc in arabicHadiths] + paired = en_docs + ar_docs else: # English-only — replicates colleague's original PR approach. - model_docs = [{**doc, SEMANTIC_FIELD: doc["hadithText"]} for doc in englishHadiths] + paired = [(doc, doc["hadithText"]) for doc in englishHadiths] + + model_docs = _attach_semantic_field(paired) results[model_key] = _index_one( model["index"], model_docs, non_indexed, model=model, force_rebuild=force_rebuild ) diff --git a/utils/rate_limiter.py b/utils/rate_limiter.py new file mode 100644 index 0000000..ced20e5 --- /dev/null +++ b/utils/rate_limiter.py @@ -0,0 +1,42 @@ +"""Cross-thread interval pacer for outbound HTTP calls. + +Lives in utils/ so it can be reused if more remote inference providers are +added later, and so unit tests can exercise it without importing Flask. +""" + +import threading +import time + + +class RateLimiter: + """Enforce a minimum 60/rpm gap between successive `acquire()` calls. + + Chose interval pacing over a sliding window because some providers + (notably Mixedbread's free tier) reject bursts on the first second even + when the per-minute total is under cap. The window form would allow the + initial `rpm` calls instantly; this form spaces them evenly. + + Pass rpm = -1 to disable throttling — for providers that don't publish + an RPM cap (e.g. HF Dedicated Endpoints, which bill by compute time). + """ + + def __init__(self, rpm, log=None): + self.enabled = rpm > 0 + if rpm == 0 and log is not None: + log.warning("rate_limiter_rpm_zero", + extra={"hint": "use -1 to disable throttling"}) + self.interval = 60.0 / rpm if self.enabled else 0.0 + self.lock = threading.Lock() + self.next_allowed = 0.0 + + def acquire(self): + if not self.enabled: + return + while True: + with self.lock: + now = time.monotonic() + if now >= self.next_allowed: + self.next_allowed = now + self.interval + return + wait = self.next_allowed - now + time.sleep(wait) From ff6f4f1ba3c212b889030c9ffddce13909538c10 Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 12:32:23 -0400 Subject: [PATCH 18/32] Harden remote-embedding retry path and lift /index harakiri MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three risks the code-review surfaced: 1. urllib.error.URLError / socket.timeout were not caught, so a single transient network blip would kill an in-progress 48K-doc rebuild after potentially minutes of successful work. Now retried like 5xx. 2. Backoff `wait = max(parsed, floor, min(2**attempt, 30))` let a server-supplied Retry-After dominate without bound — a 503 with `Retry-After: 600` would stall a worker for hours. Cap parsed at 60s before combining with floor and exp backoff. 3. uwsgi `harakiri = 35` would kill `/index` long before the ~9-minute embedding phase finishes. Added a per-route override (`route = ^/index harakiri:1800`) so search endpoints keep the strict 35s limit but admin-triggered rebuilds get the headroom. Co-Authored-By: Claude Opus 4.7 (1M context) --- main.py | 45 +++++++++++++++++++++++++++++++++++---------- uwsgi.ini | 4 ++++ 2 files changed, 39 insertions(+), 10 deletions(-) diff --git a/main.py b/main.py index 6d119d0..7825d90 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ import hashlib import logging +import socket import sys import time import urllib.request @@ -217,6 +218,10 @@ def _prepare_documents(documents): _REMOTE_EMBED_RPM = int(os.environ.get("HF_DEDICATED_RPM", "-1")) _REMOTE_EMBED_MAX_RETRIES = 6 _REMOTE_EMBED_BACKOFF_FLOOR_S = 5 +# Upper bound on a single retry wait, including any value the server suggests +# via Retry-After. Without this cap a 503 with `Retry-After: 600` would stall +# a worker for 10 minutes per attempt; 6 attempts × 10 min = 1 hour idle. +_REMOTE_EMBED_BACKOFF_CEILING_S = 60 def _embed_via_remote(model, texts): @@ -242,13 +247,18 @@ def _embed_batch(batch_texts): for attempt in range(_REMOTE_EMBED_MAX_RETRIES): limiter.acquire() req = urllib.request.Request(cfg["url"], data=payload, headers=headers, method="POST") + + status = None + retry_after = None try: with urllib.request.urlopen(req, timeout=120) as resp: body = json.loads(resp.read()) # TEI's /v1/embeddings returns OpenAI shape with L2-normalized vectors. return [item["embedding"] for item in body["data"]] except urllib.error.HTTPError as e: + status = e.code retryable = e.code == 429 or 500 <= e.code < 600 + retry_after = e.headers.get("Retry-After") if not retryable or attempt == _REMOTE_EMBED_MAX_RETRIES - 1: # Capture body for non-retryable failures so we can debug # 400-class errors (oversize inputs, bad model id, etc.). @@ -259,16 +269,31 @@ def _embed_batch(batch_texts): "batch_size": len(batch_texts)}, ) raise - retry_after = e.headers.get("Retry-After") - parsed = float(retry_after) if retry_after and retry_after.replace(".", "", 1).isdigit() else 0 - # TEI sometimes returns Retry-After: 0 — enforce a floor so we - # don't immediately re-fire and ladder up retry attempts. - wait = max(parsed, _REMOTE_EMBED_BACKOFF_FLOOR_S, min(2 ** attempt, 30)) - access_log.warning( - "remote_embed_retry", - extra={"status": e.code, "attempt": attempt + 1, "wait_s": wait}, - ) - time.sleep(wait) + except (urllib.error.URLError, socket.timeout, ConnectionError) as e: + # DNS failure, connect refused, read timeout, RST mid-stream — + # treat as transient and retry rather than killing the run. + status = "network_error" + if attempt == _REMOTE_EMBED_MAX_RETRIES - 1: + access_log.error( + "remote_embed_failed", + extra={"status": status, "reason": str(e), + "batch_size": len(batch_texts)}, + ) + raise + + # Shared backoff path for any retryable failure above. + parsed = float(retry_after) if retry_after and retry_after.replace(".", "", 1).isdigit() else 0 + # TEI sometimes returns Retry-After: 0 — enforce a floor so we don't + # immediately re-fire. Cap Retry-After so a single misbehaving 503 + # can't park a worker for many minutes. + wait = max(min(parsed, _REMOTE_EMBED_BACKOFF_CEILING_S), + _REMOTE_EMBED_BACKOFF_FLOOR_S, + min(2 ** attempt, 30)) + access_log.warning( + "remote_embed_retry", + extra={"status": status, "attempt": attempt + 1, "wait_s": wait}, + ) + time.sleep(wait) batches = [texts[i:i + _REMOTE_EMBED_BATCH_SIZE] for i in range(0, len(texts), _REMOTE_EMBED_BATCH_SIZE)] diff --git a/uwsgi.ini b/uwsgi.ini index ee44f7a..24eb1dc 100644 --- a/uwsgi.ini +++ b/uwsgi.ini @@ -8,4 +8,8 @@ enable-threads = true harakiri = 35 harakiri-verbose = true buffer-size=32768 +# /index performs remote embedding for ~48K docs before bulk-ingest, which +# takes several minutes. Override the 35s harakiri just for this admin route +# so a real rebuild can complete; search endpoints keep the strict 35s limit. +route = ^/index harakiri:1800 From 3ffc64391a767f400fdd1fc56da874f793254042 Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 12:38:16 -0400 Subject: [PATCH 19/32] Cleanup remote-embed pipeline for clarity and a few wasted copies - Drop empty hadithText rows in the SQL SELECT so the rest of the pipeline doesn't have to guard against them. Removes the empty-text filter we previously added in _attach_semantic_field as a downstream bandaid. - Pull the inline-chunk doc construction into _inline_chunk_doc so the rewrite loop is a one-line list comprehension. Hoists model_settings out of the per-doc loop (was rebuilt 48K+ times per rebuild). - Iterate ThreadPoolExecutor futures with as_completed instead of submission order, so one slow batch can't idle the other workers. - Simplify _attach_semantic_field to a single comprehension now that empty text is impossible by the time it runs. Co-Authored-By: Claude Opus 4.7 (1M context) --- main.py | 83 +++++++++++++++++++++++++++------------------------------ 1 file changed, 40 insertions(+), 43 deletions(-) diff --git a/main.py b/main.py index 7825d90..dc4d73b 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,7 @@ import urllib.request import urllib.error import uuid -from concurrent.futures import ThreadPoolExecutor +from concurrent.futures import ThreadPoolExecutor, as_completed from flask import Flask, request, jsonify, g from werkzeug.exceptions import HTTPException import pymysql @@ -92,7 +92,7 @@ def _is_truthy(value): _MXBAI_DIMS = 1024 -def _build_remote_inference(): +def _build_remote_mxbai_inference(): """Index-time embedding via a HuggingFace Inference Endpoint running TEI. The endpoint exposes an OpenAI-compatible /v1/embeddings route that returns @@ -130,7 +130,7 @@ def _build_remote_inference(): # inline in the bulk payload (semantic_text accepts pre-populated chunks # and skips its own inference call). Query time always goes through the # ES inference endpoint above (local Ollama). - "remote_inference": _build_remote_inference(), + "remote_inference": _build_remote_mxbai_inference(), }, } @@ -300,27 +300,39 @@ def _embed_batch(batch_texts): out = [None] * len(batches) with ThreadPoolExecutor(max_workers=_REMOTE_EMBED_CONCURRENCY) as ex: future_to_idx = {ex.submit(_embed_batch, b): i for i, b in enumerate(batches)} - for f in future_to_idx: + # as_completed yields futures in completion order, so a single slow batch + # doesn't idle workers that finished after it but were submitted earlier. + for f in as_completed(future_to_idx): out[future_to_idx[f]] = f.result() return [v for batch in out for v in batch] def _attach_semantic_field(paired): - """Attach SEMANTIC_FIELD as plain text. ES auto-embeds via the bound inference - endpoint (Ollama) at bulk time — unless _rewrite_inline_chunks is called first - to pre-populate the field with vectors from a remote inference provider. + """Attach SEMANTIC_FIELD as plain text on each doc. - Docs with empty text get no SEMANTIC_FIELD at all — both Ollama and TEI - reject empty inputs, and a doc with no hadithText can't be searched - semantically anyway. + ES then auto-embeds via the bound inference endpoint (Ollama) at bulk time, + unless _rewrite_inline_chunks is called first to pre-populate the field + with vectors from a remote provider. + + Empty/whitespace-only text is filtered at the SQL source, so by the time we + get here every paired text is a non-empty string. """ - out = [] - for doc, text in paired: - if text and text.strip(): - out.append({**doc, SEMANTIC_FIELD: text}) - else: - out.append(dict(doc)) - return out + return [{**doc, SEMANTIC_FIELD: text} for doc, text in paired] + + +def _inline_chunk_doc(doc, text, vec, inference_id, model_settings): + """Build the doc shape ES's semantic_text accepts when bypassing inference.""" + return { + **doc, + SEMANTIC_FIELD: { + "text": text, + "inference": { + "inference_id": inference_id, + "model_settings": model_settings, + "chunks": [{"text": text, "embeddings": vec}], + }, + }, + } def _rewrite_inline_chunks(docs, model): @@ -331,16 +343,8 @@ def _rewrite_inline_chunks(docs, model): don't burn API quota embedding unchanged docs. """ remote = model["remote_inference"] - # TEI rejects whole batches that contain any empty string ("`inputs` cannot - # be empty"). Filter to non-empty strings here; docs with empty text keep - # their empty SEMANTIC_FIELD and aren't indexed semantically. - embeddable = [(i, doc[SEMANTIC_FIELD]) for i, doc in enumerate(docs) - if isinstance(doc.get(SEMANTIC_FIELD), str) and doc[SEMANTIC_FIELD].strip()] - if not embeddable: - return docs - - indices = [i for i, _ in embeddable] - texts = [t for _, t in embeddable] + texts = [doc[SEMANTIC_FIELD] for doc in docs] + access_log.info( "remote_embed_start", extra={"model": model["label"], "doc_count": len(texts), @@ -362,20 +366,8 @@ def _rewrite_inline_chunks(docs, model): "similarity": "cosine", "element_type": "float", } - for idx, vec in zip(indices, vectors): - text = docs[idx][SEMANTIC_FIELD] - docs[idx] = { - **docs[idx], - SEMANTIC_FIELD: { - "text": text, - "inference": { - "inference_id": model["inference_id"], - "model_settings": model_settings, - "chunks": [{"text": text, "embeddings": vec}], - }, - }, - } - return docs + return [_inline_chunk_doc(doc, text, vec, model["inference_id"], model_settings) + for doc, text, vec in zip(docs, texts, vectors)] def _bulk_index(actions, index, timeout=None): @@ -565,9 +557,13 @@ def index(): database=os.environ.get("MYSQL_DATABASE"), ) cursor = connection.cursor(pymysql.cursors.DictCursor) + # Filter out empty rows at the source so the rest of the pipeline doesn't + # have to handle them — TEI rejects empty inputs, ES wastes an _id storing + # them, and a hadith with no text can't match any query anyway. cursor.execute( """SELECT arabicURN as urn, collection, hadithNumber, hadithText as arabicText, - matchingEnglishURN, "ar" as lang, grade1 as grade FROM ArabicHadithTable""" + matchingEnglishURN, "ar" as lang, grade1 as grade FROM ArabicHadithTable + WHERE hadithText IS NOT NULL AND TRIM(hadithText) != ''""" ) arabicHadiths = cursor.fetchall() @@ -580,7 +576,8 @@ def index(): cursor.execute( """SELECT englishURN as urn, collection, hadithText, - matchingArabicURN, "en" as lang, grade1 as grade FROM EnglishHadithTable""" + matchingArabicURN, "en" as lang, grade1 as grade FROM EnglishHadithTable + WHERE hadithText IS NOT NULL AND TRIM(hadithText) != ''""" ) englishHadiths = cursor.fetchall() for h in englishHadiths: From b97cde4bd4924f85f958f109bf00f302eeff0a1f Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 12:51:11 -0400 Subject: [PATCH 20/32] DX: SEMANTIC_ENABLED top-level switch, README cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename MXBAI_ENABLED → SEMANTIC_ENABLED. The toggle is now a top-level module constant rather than a nested per-model field, since there's only one semantic model. Adding more models in the future means a new EMBEDDING_MODELS entry; the on/off switch stays where it is. - EMBEDDING_MODELS becomes pure data with no env coupling. _ENABLED_MODELS is now the catalog gated on SEMANTIC_ENABLED, no dict-comp filter. - README: emphasize that /index without model= builds both lexical and semantic by default (it always did, but the prose was burying it). Drop &model=mxbai from the default search example since it's the only enabled model — leave it only on the explicit-pin examples. Co-Authored-By: Claude Opus 4.7 (1M context) --- .env.sample | 4 ++-- README.md | 24 +++++++++++------------- main.py | 8 +++++--- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.env.sample b/.env.sample index 401e2e9..50b371c 100644 --- a/.env.sample +++ b/.env.sample @@ -18,10 +18,10 @@ INDEXING_PASSWORD=index123 # Ollama must be running on the host with mxbai-embed-large pulled. # On Linux set OLLAMA_URL explicitly — see README. # OLLAMA_URL=http://host.docker.internal:11434 -MXBAI_ENABLED=false +SEMANTIC_ENABLED=true # Index-time embedding via your own HF Dedicated Inference Endpoint (TEI-backed). # Query-time embedding always stays on local Ollama. Unset either var → ES -# embeds via Ollama at index time too. +# embeds via Ollama at index time too (slower; fine for local dev). HUGGING_FACE_KEY=key # HF Inference Endpoint base URL (no trailing slash, no /v1/embeddings — we append). HF_DEDICATED_URL=https://some-endpoint diff --git a/README.md b/README.md index 5d40cd0..965a016 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Each index name in ES is an **alias** (e.g. `english-mxbai`) pointing to a times cp .env.sample .env ``` -For semantic search, set `MXBAI_ENABLED=true` in `.env`. `OLLAMA_URL` defaults to `http://host.docker.internal:11434`, which works on Docker Desktop (Mac/Windows) — leave it unset locally. +Semantic search is on by default (`SEMANTIC_ENABLED=true`). Set it to `false` if you want lexical-only and don't want to run Ollama. `OLLAMA_URL` defaults to `http://host.docker.internal:11434`, which works on Docker Desktop (Mac/Windows) — leave it unset locally. To offload index-time embedding to a HuggingFace Dedicated Inference Endpoint (recommended for prod — orders of magnitude faster on a small GPU than Ollama on a CPU instance), also set `HUGGING_FACE_KEY` and `HF_DEDICATED_URL` in `.env`. The endpoint must run [TEI](https://github.com/huggingface/text-embeddings-inference) with `mixedbread-ai/mxbai-embed-large-v1`. Leaving either var unset falls back to embedding via Ollama at index time too. @@ -62,12 +62,12 @@ Flask is exposed on **port 5000**. http://localhost:5000/index?password=index123 ``` -This reads all hadiths from MySQL and builds both the lexical and mxbai indexes. Embedding ~48k English hadiths takes ~9 min via the HF Dedicated Endpoint (or considerably longer through Ollama if no remote endpoint is configured). +This reads all hadiths from MySQL and builds **both** the lexical and semantic indexes by default — that's almost always what you want. Embedding ~48k English hadiths takes ~9 min via the HF Dedicated Endpoint (or considerably longer through Ollama if no remote endpoint is configured). -To index only one at a time: +To build only one of the two, pass `model=`: ``` -http://localhost:5000/index?password=index123&model=mxbai -http://localhost:5000/index?password=index123&model=lexical +http://localhost:5000/index?password=index123&model=lexical # lexical only +http://localhost:5000/index?password=index123&model=mxbai # semantic only ``` To force a full rebuild instead of incremental: @@ -107,7 +107,7 @@ MYSQL_DATABASE=hadithdb ELASTIC_PASSWORD= INDEXING_PASSWORD= -MXBAI_ENABLED=true +SEMANTIC_ENABLED=true ``` ### 2. Ollama on Linux @@ -128,17 +128,13 @@ docker compose -f docker-compose.prod.yml up -d --build ### 4. Build the indexes -The prod stack is exposed on **port 7650**: +The prod stack is exposed on **port 7650**. Builds both lexical and semantic by default: ``` http://:7650/index?password= ``` -To index only one at a time: -``` -http://:7650/index?password=&model=mxbai -http://:7650/index?password=&model=lexical -``` +Add `&model=lexical` or `&model=mxbai` to build just one. Check index status: ``` @@ -176,10 +172,12 @@ Per-run tuning via env vars: `HF_DEDICATED_CONCURRENCY` (default 4), `HF_DEDICAT Mode is passed as a query parameter: ``` -/english/search?q=prayer&mode=semantic&model=mxbai +/english/search?q=prayer&mode=semantic /english/search?q=prayer&mode=lexical ``` +`mode=semantic` uses the only enabled embedding model by default — you can pin a specific one with `&model=mxbai` if more than one is enabled. + --- ## API endpoints diff --git a/main.py b/main.py index dc4d73b..449c7db 100644 --- a/main.py +++ b/main.py @@ -109,12 +109,15 @@ def _build_remote_mxbai_inference(): } +SEMANTIC_ENABLED = _is_truthy(os.environ.get("SEMANTIC_ENABLED")) + +# Catalog of semantic models. Pure data — no env coupling. Add an entry here +# to register another model; the on/off switch lives on SEMANTIC_ENABLED above. EMBEDDING_MODELS = { "mxbai": { "label": "mxbai-embed-large", "index": "english-mxbai", "inference_id": "mxbai-embed-large", - "enabled": _is_truthy(os.environ.get("MXBAI_ENABLED")), "multilingual": False, # ES inference endpoint — always bound to local Ollama (query-time embedding). # Ollama exposes an OpenAI-compatible API; ES 8.16 has no native ollama service. @@ -134,8 +137,7 @@ def _build_remote_mxbai_inference(): }, } -_ENABLED_MODELS = {k: v for k, v in EMBEDDING_MODELS.items() if v["enabled"]} -SEMANTIC_ENABLED = bool(_ENABLED_MODELS) +_ENABLED_MODELS = EMBEDDING_MODELS if SEMANTIC_ENABLED else {} # Bulk timeout — embedding calls during indexing are slow. BULK_REQUEST_TIMEOUT = 300 if SEMANTIC_ENABLED else 60 From a1eadc70083c3f45d5c33e43d8511cf2b2be764e Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 12:52:46 -0400 Subject: [PATCH 21/32] Pin DEFAULT_SEMANTIC_MODEL explicitly instead of using dict iteration order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _resolve_model_key was picking next(iter(_ENABLED_MODELS), None) when no ?model= was passed, which is fragile: adding a second model entry above mxbai in the catalog dict would silently change the default for every existing client. Set DEFAULT_SEMANTIC_MODEL = "mxbai" as a top-level constant and read from that. Also collapses the two-branch resolver into one — "key or default" then membership check — since the default goes through the same validation path as a user-supplied one. Co-Authored-By: Claude Opus 4.7 (1M context) --- main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 449c7db..8603cd8 100644 --- a/main.py +++ b/main.py @@ -139,6 +139,11 @@ def _build_remote_mxbai_inference(): _ENABLED_MODELS = EMBEDDING_MODELS if SEMANTIC_ENABLED else {} +# Which model `/search?mode=semantic` picks when no `model=` param is given. +# Set explicitly rather than reading the first dict key, so adding another +# semantic model doesn't accidentally change which one is the default. +DEFAULT_SEMANTIC_MODEL = "mxbai" + # Bulk timeout — embedding calls during indexing are slow. BULK_REQUEST_TIMEOUT = 300 if SEMANTIC_ENABLED else 60 @@ -704,9 +709,7 @@ def _resolve_mode(args): def _resolve_model_key(args): """Returns (key, error_message). error_message is non-None for explicit invalid input.""" - key = args.get("model") - if not key: - return next(iter(_ENABLED_MODELS), None), None + key = args.get("model") or DEFAULT_SEMANTIC_MODEL if key in _ENABLED_MODELS: return key, None return None, f"unknown model '{key}'; enabled: {sorted(_ENABLED_MODELS)}" From 2197e70d8e7c74fcc6213cb9af44a15aae0ddc02 Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 13:00:53 -0400 Subject: [PATCH 22/32] Split bulk timeout into explicit lexical / semantic constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BULK_REQUEST_TIMEOUT = 300 if SEMANTIC_ENABLED else 60 was misleading: the lexical bulk path inside _rebuild_index and _incremental_index already selects via `timeout = BULK_REQUEST_TIMEOUT if model else 60`, so the ternary's "else 60" branch was effectively dead when SEMANTIC_ENABLED was false (only lexical reachable, but it takes the inline 60 anyway). Replace with two named constants — LEXICAL_BULK_TIMEOUT_S and SEMANTIC_BULK_TIMEOUT_S — and drop the now-dead `timeout or constant` fallback in _bulk_index (both call sites always pass a value). Co-Authored-By: Claude Opus 4.7 (1M context) --- main.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 8603cd8..ebab90b 100644 --- a/main.py +++ b/main.py @@ -144,8 +144,11 @@ def _build_remote_mxbai_inference(): # semantic model doesn't accidentally change which one is the default. DEFAULT_SEMANTIC_MODEL = "mxbai" -# Bulk timeout — embedding calls during indexing are slow. -BULK_REQUEST_TIMEOUT = 300 if SEMANTIC_ENABLED else 60 +# Bulk-indexing timeouts. Semantic bulk can be slow because ES embeds each +# doc against the inference endpoint (Ollama) unless we shipped inline chunks; +# lexical bulk is just text ingest and stays fast. +LEXICAL_BULK_TIMEOUT_S = 60 +SEMANTIC_BULK_TIMEOUT_S = 300 SEARCH_MODES = ("lexical", "semantic") SEMANTIC_MODES = ("semantic",) @@ -377,12 +380,12 @@ def _rewrite_inline_chunks(docs, model): for doc, text, vec in zip(docs, texts, vectors)] -def _bulk_index(actions, index, timeout=None): +def _bulk_index(actions, index, timeout): return helpers.bulk( es_client, actions, index=index, - request_timeout=timeout or BULK_REQUEST_TIMEOUT, + request_timeout=timeout, raise_on_error=False, raise_on_exception=False, ) @@ -465,7 +468,7 @@ def _make_mappings(non_indexed_fields, model=None): def _rebuild_index(index_name, documents, non_indexed_fields, model=None): # time_ns avoids collisions when two rebuilds land in the same second. new_index = f"{index_name}-{time.time_ns()}" - timeout = BULK_REQUEST_TIMEOUT if model else 60 + timeout = SEMANTIC_BULK_TIMEOUT_S if model else LEXICAL_BULK_TIMEOUT_S es_client.indices.create( index=new_index, mappings=_make_mappings(non_indexed_fields, model), @@ -524,7 +527,7 @@ def _incremental_index(index_name, documents, model=None): actions = to_index + [{"_op_type": "delete", "_id": did} for did in to_delete] - timeout = BULK_REQUEST_TIMEOUT if model else 60 + timeout = SEMANTIC_BULK_TIMEOUT_S if model else LEXICAL_BULK_TIMEOUT_S success, errors = 0, [] if actions: success, errors = _bulk_index(actions, index_name, timeout=timeout) From 9f8960e34b338f72a90edc8a033dd29b779524ad Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 13:04:47 -0400 Subject: [PATCH 23/32] Collapse SEARCH_MODES / SEMANTIC_MODES into two string constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old shape had: SEARCH_MODES = ("lexical", "semantic") SEMANTIC_MODES = ("semantic",) with a _resolve_mode that ended in `if mode in SEMANTIC_MODES: mode = "semantic"` — a literal no-op since SEMANTIC_MODES is a one-element tuple of "semantic". That second `if` was probably a leftover from when multiple semantic modes collapsed to one canonical label. Replace both tuples with LEXICAL_MODE / SEMANTIC_MODE string constants and fold the resolver into one check: return SEMANTIC_MODE iff the input is "semantic" AND SEMANTIC_ENABLED is on, else LEXICAL_MODE. Call sites that did `mode in SEMANTIC_MODES` become `mode == SEMANTIC_MODE`. Co-Authored-By: Claude Opus 4.7 (1M context) --- main.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/main.py b/main.py index ebab90b..d6b4397 100644 --- a/main.py +++ b/main.py @@ -150,8 +150,9 @@ def _build_remote_mxbai_inference(): LEXICAL_BULK_TIMEOUT_S = 60 SEMANTIC_BULK_TIMEOUT_S = 300 -SEARCH_MODES = ("lexical", "semantic") -SEMANTIC_MODES = ("semantic",) +# Search modes. Two values, only ever compared as strings. +LEXICAL_MODE = "lexical" +SEMANTIC_MODE = "semantic" COLLECTION_BOOSTS = [ ("bukhari", 5.0), @@ -702,12 +703,13 @@ def get_filter_from_args(args): def _resolve_mode(args): - mode = args.get("mode", "lexical").lower() - if mode not in SEARCH_MODES: - mode = "lexical" - if mode in SEMANTIC_MODES and not SEMANTIC_ENABLED: - mode = "lexical" - return mode + """Normalize ?mode=... to either LEXICAL_MODE or SEMANTIC_MODE. Falls back + to lexical for unknown values and whenever SEMANTIC_ENABLED is off. + """ + requested = (args.get("mode") or "").lower() + if requested == SEMANTIC_MODE and SEMANTIC_ENABLED: + return SEMANTIC_MODE + return LEXICAL_MODE def _resolve_model_key(args): @@ -729,7 +731,7 @@ def search(language): filters = get_filter_from_args(request.args) mode = _resolve_mode(request.args) model_key, model = None, None - if mode in SEMANTIC_MODES: + if mode == SEMANTIC_MODE: model_key, err = _resolve_model_key(request.args) if err: return jsonify({"error": err}), 400 @@ -754,7 +756,7 @@ def build_lexical(query_type): } } - if mode in SEMANTIC_MODES: + if mode == SEMANTIC_MODE: access_log.info("semantic_search", extra={ "request_id": getattr(g, "request_id", None), "mode": mode, "model": model_key, "query": query, From 6eb49109f2441d142cbf2dbee3183e1a89f01e2a Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 13:06:05 -0400 Subject: [PATCH 24/32] Use a SearchMode enum instead of bare string constants str-Enum mixin so SearchMode.SEMANTIC == "semantic" (and serializes as "semantic" in the access log JSON without extra plumbing), while _resolve_mode gets free validation: SearchMode((args.get("mode") or "").lower()) raises ValueError on junk input which we catch and fall back to LEXICAL. The previous string-constant version did its own membership check; the enum constructor handles it. Co-Authored-By: Claude Opus 4.7 (1M context) --- main.py | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/main.py b/main.py index d6b4397..319f09c 100644 --- a/main.py +++ b/main.py @@ -7,6 +7,7 @@ import urllib.error import uuid from concurrent.futures import ThreadPoolExecutor, as_completed +from enum import Enum from flask import Flask, request, jsonify, g from werkzeug.exceptions import HTTPException import pymysql @@ -150,9 +151,13 @@ def _build_remote_mxbai_inference(): LEXICAL_BULK_TIMEOUT_S = 60 SEMANTIC_BULK_TIMEOUT_S = 300 -# Search modes. Two values, only ever compared as strings. -LEXICAL_MODE = "lexical" -SEMANTIC_MODE = "semantic" +class SearchMode(str, Enum): + """Search mode for /search?mode=…. str mixin so equality with raw query + strings and JSON serialization both produce the underlying value + ('lexical' / 'semantic') without extra plumbing. + """ + LEXICAL = "lexical" + SEMANTIC = "semantic" COLLECTION_BOOSTS = [ ("bukhari", 5.0), @@ -703,13 +708,16 @@ def get_filter_from_args(args): def _resolve_mode(args): - """Normalize ?mode=... to either LEXICAL_MODE or SEMANTIC_MODE. Falls back - to lexical for unknown values and whenever SEMANTIC_ENABLED is off. + """Normalize ?mode=... to a SearchMode. Falls back to LEXICAL for unknown + values and whenever SEMANTIC_ENABLED is off. """ - requested = (args.get("mode") or "").lower() - if requested == SEMANTIC_MODE and SEMANTIC_ENABLED: - return SEMANTIC_MODE - return LEXICAL_MODE + try: + mode = SearchMode((args.get("mode") or "").lower()) + except ValueError: + return SearchMode.LEXICAL + if mode == SearchMode.SEMANTIC and not SEMANTIC_ENABLED: + return SearchMode.LEXICAL + return mode def _resolve_model_key(args): @@ -731,7 +739,7 @@ def search(language): filters = get_filter_from_args(request.args) mode = _resolve_mode(request.args) model_key, model = None, None - if mode == SEMANTIC_MODE: + if mode == SearchMode.SEMANTIC: model_key, err = _resolve_model_key(request.args) if err: return jsonify({"error": err}), 400 @@ -756,7 +764,7 @@ def build_lexical(query_type): } } - if mode == SEMANTIC_MODE: + if mode == SearchMode.SEMANTIC: access_log.info("semantic_search", extra={ "request_id": getattr(g, "request_id", None), "mode": mode, "model": model_key, "query": query, From 1581ef3f940f73d57c2de00115f5cf1d1e44b8e0 Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 13:07:09 -0400 Subject: [PATCH 25/32] Consolidate /search into one mode branch with early-return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The handler previously split into two `if mode == SearchMode.SEMANTIC:` blocks with the lexical-only `build_lexical` helper wedged between them, and threaded model/search_index through both paths even though only the semantic branch ever used the model fields. Hoist the semantic branch to the top as an early return: resolve the model, log, dispatch to _semantic_search. The lexical path that follows doesn't need model_key, model, or search_index — it uses LEXICAL_INDEX directly. Also drops `model = _ENABLED_MODELS.get(model_key) if model_key else None` in favor of `_ENABLED_MODELS[model_key]`, since _resolve_model_key already guarantees the key is in the dict whenever err is None. Co-Authored-By: Claude Opus 4.7 (1M context) --- main.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/main.py b/main.py index 319f09c..32f4190 100644 --- a/main.py +++ b/main.py @@ -738,14 +738,19 @@ def search(language): query = request.args.get("q") filters = get_filter_from_args(request.args) mode = _resolve_mode(request.args) - model_key, model = None, None + if mode == SearchMode.SEMANTIC: model_key, err = _resolve_model_key(request.args) if err: return jsonify({"error": err}), 400 - model = _ENABLED_MODELS.get(model_key) if model_key else None - search_index = model["index"] if model else LEXICAL_INDEX + model = _ENABLED_MODELS[model_key] + access_log.info("semantic_search", extra={ + "request_id": getattr(g, "request_id", None), + "mode": mode, "model": model_key, "query": query, + }) + return _semantic_search(model["index"], query, filters) + # Lexical path fields = ["hadithNumber^2", "hadithText", "arabicText", "collection^2"] def build_lexical(query_type): @@ -764,14 +769,6 @@ def build_lexical(query_type): } } - if mode == SearchMode.SEMANTIC: - access_log.info("semantic_search", extra={ - "request_id": getattr(g, "request_id", None), - "mode": mode, "model": model_key, "query": query, - }) - return _semantic_search(search_index, query, filters) - - # Lexical path kwargs = { "index": LEXICAL_INDEX, "from_": request.args.get("from", 0), From 3b98336013e98b996bd230a85f34648a2847dc8f Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 13:10:52 -0400 Subject: [PATCH 26/32] Fix /index?model= silently building all semantic indexes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old shape decided what to build via a nested ternary that fell through to _ENABLED_MODELS as the default branch — so an unknown ?model= value (typo, stale doc, fat-finger) was interpreted as "build everything" instead of "user typed something wrong." Also the if-block above it skipped lexical for the same input, so a typo'd /index?model=mxBai would silently rebuild semantic but not lexical. Restructure into an explicit four-arm if/elif/else: None / "lexical" / known model / everything else → 400 with the valid set. Each case sets `build_lexical` and `models_to_index` directly, so the reader doesn't have to evaluate a nested ternary to know which branch ran. Co-Authored-By: Claude Opus 4.7 (1M context) --- main.py | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/main.py b/main.py index 32f4190..3bd3694 100644 --- a/main.py +++ b/main.py @@ -618,21 +618,29 @@ def index(): # Semantic index: full multilingual corpus — every Arabic doc gets its Arabic text # embedded, every English doc gets its English text embedded. This lets a multilingual # model like text-embedding-3-small retrieve across both languages from one index. - results = {} + # Decide what to build from ?model=…: + # missing → lexical + every enabled semantic model + # "lexical" → lexical only + # → that semantic model only + # anything else → 400, don't silently misinterpret + if target_model is None: + build_lexical = True + models_to_index = _ENABLED_MODELS + elif target_model == "lexical": + build_lexical = True + models_to_index = {} + elif target_model in _ENABLED_MODELS: + build_lexical = False + models_to_index = {target_model: _ENABLED_MODELS[target_model]} + else: + valid = ["lexical", *sorted(_ENABLED_MODELS)] + return jsonify({"error": f"unknown model '{target_model}'; " + f"valid: {valid}"}), 400 - # Lexical index — built when no model is specified, or when model=lexical. - if not target_model or target_model == "lexical": + results = {} + if build_lexical: results["lexical"] = _index_one(LEXICAL_INDEX, lexical_docs, non_indexed, model=None, force_rebuild=force_rebuild) - - # Model indexes — skip entirely when model=lexical. - models_to_index = ( - {} - if target_model == "lexical" - else {target_model: _ENABLED_MODELS[target_model]} - if target_model and target_model in _ENABLED_MODELS - else _ENABLED_MODELS - ) for model_key, model in models_to_index.items(): _ensure_inference_endpoint(model) if model.get("multilingual"): From 18f6e04cfa32c3d164be60eb3020b3d6531d08f1 Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 13:15:44 -0400 Subject: [PATCH 27/32] /index: switch ?model= to ?targets= (comma-separated subset) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ?model= overloaded "which target" with "which embedding model" and made ?model=lexical a category error (lexical isn't a model). Replace with ?targets=lexical,mxbai — comma-separated subset of valid build targets. Behavior matrix: /index → build everything (lexical + every enabled) /index?targets=lexical → lexical only /index?targets=mxbai → that semantic model only /index?targets=lexical,mxbai → both /index?targets= → 400 (empty list, probably a bug) /index?targets= → 400 with the valid set Validation moved up before the SQL fetch so a typo doesn't wait through a 30-second MySQL roundtrip just to be rejected. The build block collapses from a four-arm if/elif/else to two lines: `if "lexical" in targets` + a dict-comprehension filter on _ENABLED_MODELS. Co-Authored-By: Claude Opus 4.7 (1M context) --- README.md | 9 +++++---- main.py | 39 ++++++++++++++++++--------------------- 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 965a016..85ec4fb 100644 --- a/README.md +++ b/README.md @@ -64,10 +64,11 @@ http://localhost:5000/index?password=index123 This reads all hadiths from MySQL and builds **both** the lexical and semantic indexes by default — that's almost always what you want. Embedding ~48k English hadiths takes ~9 min via the HF Dedicated Endpoint (or considerably longer through Ollama if no remote endpoint is configured). -To build only one of the two, pass `model=`: +To build a subset, pass `targets=` (comma-separated): ``` -http://localhost:5000/index?password=index123&model=lexical # lexical only -http://localhost:5000/index?password=index123&model=mxbai # semantic only +http://localhost:5000/index?password=index123&targets=lexical # lexical only +http://localhost:5000/index?password=index123&targets=mxbai # one semantic model +http://localhost:5000/index?password=index123&targets=lexical,mxbai # both (same as default) ``` To force a full rebuild instead of incremental: @@ -134,7 +135,7 @@ The prod stack is exposed on **port 7650**. Builds both lexical and semantic by http://:7650/index?password= ``` -Add `&model=lexical` or `&model=mxbai` to build just one. +Add `&targets=lexical` or `&targets=mxbai` to build a subset. Check index status: ``` diff --git a/main.py b/main.py index 3bd3694..81d018d 100644 --- a/main.py +++ b/main.py @@ -563,9 +563,24 @@ def index(): if request.args.get("password") != os.environ.get("INDEXING_PASSWORD"): return "Must provide valid password to index", 401 - target_model = request.args.get("model") # index only this model when specified force_rebuild = _is_truthy(request.args.get("rebuild")) + # ?targets=… is a comma-separated subset of {lexical, }. + # Missing → build everything. Empty or unknown → 400 (don't silently + # misinterpret a typo as "do nothing" or "do everything"). + valid_targets = {"lexical", *_ENABLED_MODELS} + raw_targets = request.args.get("targets") + if raw_targets is None: + targets = valid_targets + else: + targets = {t.strip() for t in raw_targets.split(",") if t.strip()} + if not targets: + return jsonify({"error": "targets= must be a non-empty comma-separated list"}), 400 + unknown = targets - valid_targets + if unknown: + return jsonify({"error": f"unknown targets {sorted(unknown)}; " + f"valid: {sorted(valid_targets)}"}), 400 + connection = pymysql.connect( host=os.environ.get("MYSQL_HOST"), user=os.environ.get("MYSQL_USER"), @@ -618,29 +633,11 @@ def index(): # Semantic index: full multilingual corpus — every Arabic doc gets its Arabic text # embedded, every English doc gets its English text embedded. This lets a multilingual # model like text-embedding-3-small retrieve across both languages from one index. - # Decide what to build from ?model=…: - # missing → lexical + every enabled semantic model - # "lexical" → lexical only - # → that semantic model only - # anything else → 400, don't silently misinterpret - if target_model is None: - build_lexical = True - models_to_index = _ENABLED_MODELS - elif target_model == "lexical": - build_lexical = True - models_to_index = {} - elif target_model in _ENABLED_MODELS: - build_lexical = False - models_to_index = {target_model: _ENABLED_MODELS[target_model]} - else: - valid = ["lexical", *sorted(_ENABLED_MODELS)] - return jsonify({"error": f"unknown model '{target_model}'; " - f"valid: {valid}"}), 400 - results = {} - if build_lexical: + if "lexical" in targets: results["lexical"] = _index_one(LEXICAL_INDEX, lexical_docs, non_indexed, model=None, force_rebuild=force_rebuild) + models_to_index = {k: v for k, v in _ENABLED_MODELS.items() if k in targets} for model_key, model in models_to_index.items(): _ensure_inference_endpoint(model) if model.get("multilingual"): From 84e02da62616cd1bd2a782e7fc76fc9ded672e22 Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 13:20:47 -0400 Subject: [PATCH 28/32] README audit: fix stale Adding-a-model and Batch-eval sections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After the recent refactors (SEMANTIC_ENABLED single toggle, ?targets= on /index, ./:/code bind mount in dev compose) two README sections were inaccurate: - "Adding a model" still told you to add NEWMODEL_ENABLED=false to .env.sample (per-model env var; no longer how it works) and to call /index?model=newmodel (renamed to targets=). Rewrote to reflect the single SEMANTIC_ENABLED toggle, the targets= subset, and that the default for /search comes from DEFAULT_SEMANTIC_MODEL. - "Batch evaluation" had three docker cp commands that were no-ops in the dev workflow — the script writes to /code/ inside the container which is the host repo root via the bind mount. Collapsed to one docker exec and a note about where the outputs land. Spot-verified the rest of the README against current main.py / docker-compose.* / uwsgi.ini — architecture diagram, env-config note, build-the-indexes examples, prod section, search-mode docs, and API endpoint table all match the code. Co-Authored-By: Claude Opus 4.7 (1M context) --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 85ec4fb..b2906eb 100644 --- a/README.md +++ b/README.md @@ -156,11 +156,13 @@ Per-run tuning via env vars: `HF_DEDICATED_CONCURRENCY` (default 4), `HF_DEDICAT ### Adding a model -1. Add an entry to `EMBEDDING_MODELS` in `main.py` — copy the mxbai entry as a template (~8 lines). -2. Add `NEWMODEL_ENABLED=false` to `.env.sample`. -3. Pull the model: `ollama pull your-model-name` -4. Hit `/index?password=...&model=newmodel` to build its index. -5. Add the alias name to `SEMANTIC_INDEXES` in `tests/batch_search.py`. +1. Add an entry to `EMBEDDING_MODELS` in `main.py` — copy the mxbai entry as a template (~10 lines). +2. Pull the model on the Ollama host: `ollama pull your-model-name`. +3. Hit `/index?password=...&targets=newkey` to build its index. (`/index` with no `targets=` will pick it up too, alongside lexical and the other semantic models.) +4. Add the alias name to `SEMANTIC_INDEXES` in `tests/batch_search.py`. +5. If it should be the default for `/search?mode=semantic` without a `&model=` param, point `DEFAULT_SEMANTIC_MODEL` at the new key. + +`SEMANTIC_ENABLED` is a single global toggle — you don't add a per-model env var. --- @@ -209,13 +211,11 @@ Mode is passed as a query parameter: `tests/batch_search.py` runs a fixed set of queries across lexical and semantic and produces a CSV and markdown report for side-by-side comparison. ```bash -# Copy script into container, run it, copy results back -docker cp tests/batch_search.py search-web-1:/code/batch_search.py && \ -docker exec search-web-1 python3 /code/batch_search.py && \ -docker cp search-web-1:/code/batch_results.csv tests/batch_results.csv && \ -docker cp search-web-1:/code/batch_report.md tests/batch_report.md +docker exec search-web-1 python3 /code/tests/batch_search.py ``` +Outputs (`batch_results.csv`, `batch_report.md`) land in the repo root — the dev compose mounts `./:/code`, so files the script writes to `/code/` inside the container show up on the host immediately. No `docker cp` needed. + The script runs inside the container because ES is not exposed to the host — it's only reachable at `http://elasticsearch:9200` from within the Docker network. Edit `QUERIES` in `tests/batch_search.py` to change which queries are tested. From ad1e1244f484f64aee8563fdd2ff55cb645103db Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 13:25:34 -0400 Subject: [PATCH 29/32] README: correct the /search default-model description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The line claimed mode=semantic "uses the only enabled embedding model by default" — that described the older next(iter(_ENABLED_MODELS)) behavior. Current code uses DEFAULT_SEMANTIC_MODEL = "mxbai" as an explicit constant: adding a second enabled model doesn't change which one is the default. Reflect that in the prose. Co-Authored-By: Claude Opus 4.7 (1M context) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b2906eb..2ec0623 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ Mode is passed as a query parameter: /english/search?q=prayer&mode=lexical ``` -`mode=semantic` uses the only enabled embedding model by default — you can pin a specific one with `&model=mxbai` if more than one is enabled. +`mode=semantic` uses the model named in `DEFAULT_SEMANTIC_MODEL` (currently `mxbai`) when no `&model=` is supplied. Pass `&model=` to pick a different enabled model. --- From 79808a5f67284c3e4c72b98d61f7af32ed2080d8 Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 13:32:35 -0400 Subject: [PATCH 30/32] Trim verbose comments around remote-embed tuning knobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kept the non-obvious why bits (HF pool 429s under TEI's stated limit, batch×max_input vs max_batch_tokens, -1 disables throttling, ceiling prevents pathological Retry-After). Cut the procedural narration ("all env-overridable", "16 × 512 = 8192", "1 hour idle" math). Co-Authored-By: Claude Opus 4.7 (1M context) --- main.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/main.py b/main.py index 81d018d..7d75abc 100644 --- a/main.py +++ b/main.py @@ -221,22 +221,15 @@ def _prepare_documents(documents): doc["contentHash"] = _content_hash(doc) -# TEI (Text Embeddings Inference) tuning, all env-overridable: -# HF_DEDICATED_CONCURRENCY: HF's per-endpoint pool starts 429ing well below -# TEI's stated max_concurrent_requests=512. c=4 is empirically clean; raise -# when the endpoint is configured with higher autoscale. -# HF_DEDICATED_BATCH_SIZE: batch_size × max_input_length must stay under TEI's -# max_batch_tokens (default 16384). 16 × 512 = 8192 leaves headroom. +# HF's per-endpoint pool 429s well below TEI's max_concurrent_requests=512. +# batch_size × max_input_length must stay under TEI's max_batch_tokens (16384). _REMOTE_EMBED_CONCURRENCY = int(os.environ.get("HF_DEDICATED_CONCURRENCY", "4")) _REMOTE_EMBED_BATCH_SIZE = int(os.environ.get("HF_DEDICATED_BATCH_SIZE", "16")) -# HF Dedicated bills by compute-time, not RPM — default no throttle. Override -# via HF_DEDICATED_RPM (set >0) if you ever hit per-endpoint rate limits. +# -1 disables throttling; HF Dedicated bills by compute-time, not RPM. _REMOTE_EMBED_RPM = int(os.environ.get("HF_DEDICATED_RPM", "-1")) _REMOTE_EMBED_MAX_RETRIES = 6 _REMOTE_EMBED_BACKOFF_FLOOR_S = 5 -# Upper bound on a single retry wait, including any value the server suggests -# via Retry-After. Without this cap a 503 with `Retry-After: 600` would stall -# a worker for 10 minutes per attempt; 6 attempts × 10 min = 1 hour idle. +# Cap server-supplied Retry-After so a misbehaving 503 can't park a worker. _REMOTE_EMBED_BACKOFF_CEILING_S = 60 From 6eabebb05f80def927ea3f047e9a0a82d4382a78 Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 13:34:53 -0400 Subject: [PATCH 31/32] formatting --- README.md | 6 ++ main.py | 184 ++++++++++++++++++++++++-------- tests/analyze_queries.py | 14 ++- tests/batch_search.py | 93 ++++++++++------ tests/fetch_exact_knn.py | 19 +++- tests/test_shortcode_pattern.py | 6 +- utils/rate_limiter.py | 5 +- 7 files changed, 237 insertions(+), 90 deletions(-) diff --git a/README.md b/README.md index 2ec0623..667e757 100644 --- a/README.md +++ b/README.md @@ -221,3 +221,9 @@ The script runs inside the container because ES is not exposed to the host — i Edit `QUERIES` in `tests/batch_search.py` to change which queries are tested. **Note:** always use commas between query strings in the list. Python silently concatenates adjacent string literals without a comma, producing wrong queries with no error. + +--- + +## Formatting + +Format Python code with `uv format` before committing. diff --git a/main.py b/main.py index 7d75abc..878dba3 100644 --- a/main.py +++ b/main.py @@ -87,7 +87,9 @@ def _is_truthy(value): _OLLAMA_URL = os.environ.get("OLLAMA_URL", "http://host.docker.internal:11434") _HUGGING_FACE_KEY = os.environ.get("HUGGING_FACE_KEY") -_HF_DEDICATED_URL = os.environ.get("HF_DEDICATED_URL") # e.g. https://.endpoints.huggingface.cloud +_HF_DEDICATED_URL = os.environ.get( + "HF_DEDICATED_URL" +) # e.g. https://.endpoints.huggingface.cloud # Embedding vector dimensions for mxbai-embed-large(-v1). Used for inline chunks. _MXBAI_DIMS = 1024 @@ -151,14 +153,17 @@ def _build_remote_mxbai_inference(): LEXICAL_BULK_TIMEOUT_S = 60 SEMANTIC_BULK_TIMEOUT_S = 300 + class SearchMode(str, Enum): """Search mode for /search?mode=…. str mixin so equality with raw query strings and JSON serialization both produce the underlying value ('lexical' / 'semantic') without extra plumbing. """ + LEXICAL = "lexical" SEMANTIC = "semantic" + COLLECTION_BOOSTS = [ ("bukhari", 5.0), ("muslim", 4.8), @@ -181,7 +186,10 @@ def _handle_unexpected(exc): return exc access_log.exception( "unhandled_exception", - extra={"request_id": getattr(g, "request_id", None), "exception": type(exc).__name__}, + extra={ + "request_id": getattr(g, "request_id", None), + "exception": type(exc).__name__, + }, ) return jsonify({"error": "internal server error"}), 500 @@ -193,9 +201,12 @@ def home(): # ── Index management ────────────────────────────────────────────────────────── + def _ensure_inference_endpoint(model): try: - es_client.inference.get(task_type="text_embedding", inference_id=model["inference_id"]) + es_client.inference.get( + task_type="text_embedding", inference_id=model["inference_id"] + ) return except NotFoundError: pass @@ -210,7 +221,9 @@ def _ensure_inference_endpoint(model): def _content_hash(doc): - payload = {k: v for k, v in doc.items() if k not in ("_id", "contentHash", SEMANTIC_FIELD)} + payload = { + k: v for k, v in doc.items() if k not in ("_id", "contentHash", SEMANTIC_FIELD) + } encoded = json.dumps(payload, sort_keys=True, default=str, ensure_ascii=False) return hashlib.sha256(encoded.encode("utf-8")).hexdigest() @@ -251,11 +264,14 @@ def _embed_via_remote(model, texts): def _embed_batch(batch_texts): # OpenAI-shape body; TEI accepts the `truncate` field on /v1/embeddings # to silently handle inputs over max_input_length. - payload = json.dumps({"model": cfg["model_id"], "input": batch_texts, - "truncate": True}).encode("utf-8") + payload = json.dumps( + {"model": cfg["model_id"], "input": batch_texts, "truncate": True} + ).encode("utf-8") for attempt in range(_REMOTE_EMBED_MAX_RETRIES): limiter.acquire() - req = urllib.request.Request(cfg["url"], data=payload, headers=headers, method="POST") + req = urllib.request.Request( + cfg["url"], data=payload, headers=headers, method="POST" + ) status = None retry_after = None @@ -274,8 +290,11 @@ def _embed_batch(batch_texts): body_snippet = e.read()[:400].decode("utf-8", errors="replace") access_log.error( "remote_embed_failed", - extra={"status": e.code, "body": body_snippet, - "batch_size": len(batch_texts)}, + extra={ + "status": e.code, + "body": body_snippet, + "batch_size": len(batch_texts), + }, ) raise except (urllib.error.URLError, socket.timeout, ConnectionError) as e: @@ -285,27 +304,38 @@ def _embed_batch(batch_texts): if attempt == _REMOTE_EMBED_MAX_RETRIES - 1: access_log.error( "remote_embed_failed", - extra={"status": status, "reason": str(e), - "batch_size": len(batch_texts)}, + extra={ + "status": status, + "reason": str(e), + "batch_size": len(batch_texts), + }, ) raise # Shared backoff path for any retryable failure above. - parsed = float(retry_after) if retry_after and retry_after.replace(".", "", 1).isdigit() else 0 + parsed = ( + float(retry_after) + if retry_after and retry_after.replace(".", "", 1).isdigit() + else 0 + ) # TEI sometimes returns Retry-After: 0 — enforce a floor so we don't # immediately re-fire. Cap Retry-After so a single misbehaving 503 # can't park a worker for many minutes. - wait = max(min(parsed, _REMOTE_EMBED_BACKOFF_CEILING_S), - _REMOTE_EMBED_BACKOFF_FLOOR_S, - min(2 ** attempt, 30)) + wait = max( + min(parsed, _REMOTE_EMBED_BACKOFF_CEILING_S), + _REMOTE_EMBED_BACKOFF_FLOOR_S, + min(2**attempt, 30), + ) access_log.warning( "remote_embed_retry", extra={"status": status, "attempt": attempt + 1, "wait_s": wait}, ) time.sleep(wait) - batches = [texts[i:i + _REMOTE_EMBED_BATCH_SIZE] - for i in range(0, len(texts), _REMOTE_EMBED_BATCH_SIZE)] + batches = [ + texts[i : i + _REMOTE_EMBED_BATCH_SIZE] + for i in range(0, len(texts), _REMOTE_EMBED_BATCH_SIZE) + ] out = [None] * len(batches) with ThreadPoolExecutor(max_workers=_REMOTE_EMBED_CONCURRENCY) as ex: future_to_idx = {ex.submit(_embed_batch, b): i for i, b in enumerate(batches)} @@ -356,17 +386,23 @@ def _rewrite_inline_chunks(docs, model): access_log.info( "remote_embed_start", - extra={"model": model["label"], "doc_count": len(texts), - "batch_size": _REMOTE_EMBED_BATCH_SIZE, - "concurrency": _REMOTE_EMBED_CONCURRENCY, - "rpm": _REMOTE_EMBED_RPM}, + extra={ + "model": model["label"], + "doc_count": len(texts), + "batch_size": _REMOTE_EMBED_BATCH_SIZE, + "concurrency": _REMOTE_EMBED_CONCURRENCY, + "rpm": _REMOTE_EMBED_RPM, + }, ) t0 = time.time() vectors = _embed_via_remote(model, texts) access_log.info( "remote_embed_done", - extra={"model": model["label"], "doc_count": len(texts), - "duration_s": round(time.time() - t0, 1)}, + extra={ + "model": model["label"], + "doc_count": len(texts), + "duration_s": round(time.time() - t0, 1), + }, ) model_settings = { @@ -375,8 +411,10 @@ def _rewrite_inline_chunks(docs, model): "similarity": "cosine", "element_type": "float", } - return [_inline_chunk_doc(doc, text, vec, model["inference_id"], model_settings) - for doc, text, vec in zip(docs, texts, vectors)] + return [ + _inline_chunk_doc(doc, text, vec, model["inference_id"], model_settings) + for doc, text, vec in zip(docs, texts, vectors) + ] def _bulk_index(actions, index, timeout): @@ -426,7 +464,13 @@ def _make_settings(): "custom_arabic": { "tokenizer": "standard", "char_filter": ["html_strip", "shortcode_strip"], - "filter": ["lowercase", "decimal_digit", "arabic_normalization", "arabic_stemmer", "shingle"], + "filter": [ + "lowercase", + "decimal_digit", + "arabic_normalization", + "arabic_stemmer", + "shingle", + ], }, }, "char_filter": { @@ -437,8 +481,17 @@ def _make_settings(): } }, "filter": { - "shingle": {"type": "shingle", "min_shingle_size": 2, "max_shingle_size": 3, "output_unigrams": True}, - "synonyms_filter": {"type": "synonym", "lenient": True, "synonyms_path": "synonyms.txt"}, + "shingle": { + "type": "shingle", + "min_shingle_size": 2, + "max_shingle_size": 3, + "output_unigrams": True, + }, + "synonyms_filter": { + "type": "synonym", + "lenient": True, + "synonyms_path": "synonyms.txt", + }, "arabic_stemmer": {"type": "stemmer", "language": "arabic"}, "arabic_stop": {"type": "stop", "stopwords": "_arabic_"}, }, @@ -507,7 +560,9 @@ def _incremental_index(index_name, documents, model=None): # (transient DB failure, wrong DATABASE env, etc.). return { "mode": "incremental", - "indexed": 0, "deleted": 0, "unchanged": 0, + "indexed": 0, + "deleted": 0, + "unchanged": 0, "success_count": 0, "errors": ["source returned 0 documents — refusing to delete live index"], } @@ -517,8 +572,11 @@ def _incremental_index(index_name, documents, model=None): ): existing_hashes[hit["_id"]] = hit["_source"].get("contentHash") - to_index = [doc for doc_id, doc in incoming.items() - if existing_hashes.get(doc_id) != doc["contentHash"]] + to_index = [ + doc + for doc_id, doc in incoming.items() + if existing_hashes.get(doc_id) != doc["contentHash"] + ] to_delete = [doc_id for doc_id in existing_hashes if doc_id not in incoming] if to_index and model and model.get("remote_inference"): @@ -541,7 +599,9 @@ def _incremental_index(index_name, documents, model=None): } -def _index_one(index_name, documents, non_indexed_fields, model=None, force_rebuild=False): +def _index_one( + index_name, documents, non_indexed_fields, model=None, force_rebuild=False +): """Rebuild or incrementally update a single index.""" if force_rebuild or not _index_is_incremental(index_name): return _rebuild_index(index_name, documents, non_indexed_fields, model) @@ -550,6 +610,7 @@ def _index_one(index_name, documents, non_indexed_fields, model=None, force_rebu # ── Routes ──────────────────────────────────────────────────────────────────── + @app.route("/index", methods=["GET"]) def index(): start = time.time() @@ -568,11 +629,17 @@ def index(): else: targets = {t.strip() for t in raw_targets.split(",") if t.strip()} if not targets: - return jsonify({"error": "targets= must be a non-empty comma-separated list"}), 400 + return jsonify( + {"error": "targets= must be a non-empty comma-separated list"} + ), 400 unknown = targets - valid_targets if unknown: - return jsonify({"error": f"unknown targets {sorted(unknown)}; " - f"valid: {sorted(valid_targets)}"}), 400 + return jsonify( + { + "error": f"unknown targets {sorted(unknown)}; " + f"valid: {sorted(valid_targets)}" + } + ), 400 connection = pymysql.connect( host=os.environ.get("MYSQL_HOST"), @@ -628,8 +695,13 @@ def index(): # model like text-embedding-3-small retrieve across both languages from one index. results = {} if "lexical" in targets: - results["lexical"] = _index_one(LEXICAL_INDEX, lexical_docs, non_indexed, - model=None, force_rebuild=force_rebuild) + results["lexical"] = _index_one( + LEXICAL_INDEX, + lexical_docs, + non_indexed, + model=None, + force_rebuild=force_rebuild, + ) models_to_index = {k: v for k, v in _ENABLED_MODELS.items() if k in targets} for model_key, model in models_to_index.items(): _ensure_inference_endpoint(model) @@ -644,7 +716,11 @@ def index(): model_docs = _attach_semantic_field(paired) results[model_key] = _index_one( - model["index"], model_docs, non_indexed, model=model, force_rebuild=force_rebuild + model["index"], + model_docs, + non_indexed, + model=model, + force_rebuild=force_rebuild, ) results[model_key]["failed"] = json.dumps(results[model_key].pop("errors")) @@ -670,12 +746,18 @@ def index_status(): # ── Search helpers ──────────────────────────────────────────────────────────── + def get_suggest_query(field): return { - "field": field, "size": 3, "gram_size": 3, + "field": field, + "size": 3, + "gram_size": 3, "direct_generator": [{"field": field, "suggest_mode": "missing"}], "highlight": {"pre_tag": "", "post_tag": ""}, - "collate": {"query": {"source": {"match": {field: "{{suggestion}}"}}}, "prune": False}, + "collate": { + "query": {"source": {"match": {field: "{{suggestion}}"}}}, + "prune": False, + }, } @@ -727,7 +809,10 @@ def _resolve_model_key(args): def malformed_query_response(exc): - access_log.warning("malformed_query", extra={"request_id": getattr(g, "request_id", None), "detail": str(exc)}) + access_log.warning( + "malformed_query", + extra={"request_id": getattr(g, "request_id", None), "detail": str(exc)}, + ) return jsonify({"error": "malformed query"}), 400 @@ -742,10 +827,15 @@ def search(language): if err: return jsonify({"error": err}), 400 model = _ENABLED_MODELS[model_key] - access_log.info("semantic_search", extra={ - "request_id": getattr(g, "request_id", None), - "mode": mode, "model": model_key, "query": query, - }) + access_log.info( + "semantic_search", + extra={ + "request_id": getattr(g, "request_id", None), + "mode": mode, + "model": model_key, + "query": query, + }, + ) return _semantic_search(model["index"], query, filters) # Lexical path @@ -779,7 +869,9 @@ def build_lexical(query_type): try: result = es_client.search(query=build_lexical("query_string"), **kwargs) except BadRequestError: - result = es_client.search(query=build_lexical("simple_query_string"), **kwargs) + result = es_client.search( + query=build_lexical("simple_query_string"), **kwargs + ) except BadRequestError as e: return malformed_query_response(e) return jsonify(result.body) diff --git a/tests/analyze_queries.py b/tests/analyze_queries.py index 11cb0fd..8996255 100644 --- a/tests/analyze_queries.py +++ b/tests/analyze_queries.py @@ -9,6 +9,7 @@ Run from the repo root: python3 search/analyze_queries.py """ + import re import sys from collections import Counter @@ -22,15 +23,18 @@ r"^\(\d+,'(.*?)','(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})','[^']+',(\d+)\),?$" ) + def normalize(q): return q.replace("''", "'").strip().lower() + def is_multiword(q): return len(q.split()) >= 2 -all_queries = Counter() -zero_result = Counter() -total_rows = 0 + +all_queries = Counter() +zero_result = Counter() +total_rows = 0 skipped_parse = 0 print(f"Streaming {SQL_PATH} …", flush=True) @@ -44,7 +48,7 @@ def is_multiword(q): skipped_parse += 1 continue - query = normalize(m.group(1)) + query = normalize(m.group(1)) num_results = int(m.group(3)) total_rows += 1 @@ -62,6 +66,7 @@ def is_multiword(q): print(f"Unique multi-word queries: {len(all_queries):,}") print(f"Unique multi-word zero-result queries: {len(zero_result):,}") + def write_report(path, title, counter): with open(path, "w", encoding="utf-8") as f: f.write(f"# {title}\n\n") @@ -72,6 +77,7 @@ def write_report(path, title, counter): f.write(f"| {rank} | {count:,} | {escaped} |\n") print(f"Written: {path}") + write_report( "search/test results & reports/top100_multiword_queries.md", "Top 100 Multi-Word Search Queries", diff --git a/tests/batch_search.py b/tests/batch_search.py index 6a9fc9d..2eb5bc9 100644 --- a/tests/batch_search.py +++ b/tests/batch_search.py @@ -29,6 +29,7 @@ NOTE: always include commas between query strings — Python silently concatenates adjacent string literals without a comma, producing wrong queries with no error. """ + import csv import os import re @@ -45,16 +46,25 @@ LEXICAL_FIELDS = ["hadithNumber^2", "hadithText", "arabicText", "collection^2"] COLLECTION_BOOSTS = [ - ("bukhari", 5.0), ("muslim", 4.8), ("nasai", 3.5), ("abudawud", 3.0), - ("tirmidhi", 2.5), ("ibnmajah", 2.0), ("malik", 2.5), ("ahmad", 2.5), - ("darimi", 2.0), ("mishkat", 2.5), ("nawawi40", 3.3), ("riyadussalihin", 2.5), + ("bukhari", 5.0), + ("muslim", 4.8), + ("nasai", 3.5), + ("abudawud", 3.0), + ("tirmidhi", 2.5), + ("ibnmajah", 2.0), + ("malik", 2.5), + ("ahmad", 2.5), + ("darimi", 2.0), + ("mishkat", 2.5), + ("nawawi40", 3.3), + ("riyadussalihin", 2.5), ] SEMANTIC_INDEXES = { - "openai-small-en": "english-openai-small-1779045411", - #"openai-small-multi": "multilingual-openai-small-1779017104", - "nomic": "english-nomic-1779026769", - "mxbai": "english-mxbai-1779026713", + "openai-small-en": "english-openai-small-1779045411", + # "openai-small-multi": "multilingual-openai-small-1779017104", + "nomic": "english-nomic-1779026769", + "mxbai": "english-mxbai-1779026713", } QUERIES = [ @@ -70,15 +80,15 @@ "racism", "polygamy", "pork", - "dance" -,] + "dance", +] -SIZE = 100 # fetch this many; report shows top 10 per model per query +SIZE = 100 # fetch this many; report shows top 10 per model per query REPORT_TOP_N = 10 OUT_DIR = "/code" CSV_PATH = os.path.join(OUT_DIR, "batch_results.csv") -MD_PATH = os.path.join(OUT_DIR, "batch_report.md") +MD_PATH = os.path.join(OUT_DIR, "batch_report.md") def lexical_search(query, size=SIZE): @@ -125,15 +135,17 @@ def semantic_search(index, query, size=SIZE): def query_anchor(query): s = f'query: "{query}"' s = s.lower() - s = re.sub(r'[^\w\s-]', '', s) - s = re.sub(r'\s+', '-', s.strip()) + s = re.sub(r"[^\w\s-]", "", s) + s = re.sub(r"\s+", "-", s.strip()) return s def snippet(text, width=160): if not text: return "" - return textwrap.shorten(text.replace("\n", " ").strip(), width=width, placeholder="…") + return textwrap.shorten( + text.replace("\n", " ").strip(), width=width, placeholder="…" + ) def run(): @@ -145,8 +157,12 @@ def run(): md_sections.append(f"# Batch Search Report") md_sections.append(f"**Date:** {date.today()} ") md_sections.append(f"**Models:** {', '.join(all_models)} ") - md_sections.append(f"**Method:** lexical = BM25 + collection boosts; semantic = HNSW `size={SIZE}` ") - md_sections.append(f"**Queries:** {len(QUERIES)}, report shows top {REPORT_TOP_N} per model") + md_sections.append( + f"**Method:** lexical = BM25 + collection boosts; semantic = HNSW `size={SIZE}` " + ) + md_sections.append( + f"**Queries:** {len(QUERIES)}, report shows top {REPORT_TOP_N} per model" + ) md_sections.append("") # Table of contents @@ -157,7 +173,7 @@ def run(): for query in QUERIES: print(f"\nQuery: {query!r}") - md_sections.append(f"---\n\n## Query: \"{query}\"\n") + md_sections.append(f'---\n\n## Query: "{query}"\n') for model_name, index in all_models.items(): print(f" [{model_name}] ...", end=" ", flush=True) @@ -182,24 +198,37 @@ def run(): text = src.get("hadithText", "") urn = src.get("urn", "") - csv_rows.append({ - "query": query, - "model": model_name, - "rank": rank, - "collection": collection, - "hadithNumber": hadith_num, - "urn": urn, - "score": score, - "text_snippet": snippet(text, width=500), - }) - - md_sections.append(f"**#{rank}** — {collection} {hadith_num} · score: {score}") + csv_rows.append( + { + "query": query, + "model": model_name, + "rank": rank, + "collection": collection, + "hadithNumber": hadith_num, + "urn": urn, + "score": score, + "text_snippet": snippet(text, width=500), + } + ) + + md_sections.append( + f"**#{rank}** — {collection} {hadith_num} · score: {score}" + ) md_sections.append(f"> {snippet(text, width=600)}\n") md_sections.append("") # Write CSV - fieldnames = ["query", "model", "rank", "collection", "hadithNumber", "urn", "score", "text_snippet"] + fieldnames = [ + "query", + "model", + "rank", + "collection", + "hadithNumber", + "urn", + "score", + "text_snippet", + ] with open(CSV_PATH, "w", newline="", encoding="utf-8") as f: writer = csv.DictWriter(f, fieldnames=fieldnames) writer.writeheader() @@ -210,7 +239,9 @@ def run(): with open(MD_PATH, "w", encoding="utf-8") as f: f.write("\n".join(md_sections) + "\n") print(f"MD → {MD_PATH}") - print(f"Rows: {len(csv_rows)} ({len(QUERIES)} queries × {len(all_models)} models × up to {REPORT_TOP_N})") + print( + f"Rows: {len(csv_rows)} ({len(QUERIES)} queries × {len(all_models)} models × up to {REPORT_TOP_N})" + ) if __name__ == "__main__": diff --git a/tests/fetch_exact_knn.py b/tests/fetch_exact_knn.py index b473959..a1ae348 100644 --- a/tests/fetch_exact_knn.py +++ b/tests/fetch_exact_knn.py @@ -4,6 +4,7 @@ 2. Running knn query on inner dense_vector field (semantic_text.inference.chunks.embeddings) with num_candidates >= index doc count (forces exhaustive search) """ + import urllib.request, urllib.parse, json, sys from base64 import b64decode @@ -41,6 +42,7 @@ import base64, urllib.error + def es_request(path, method="GET", body=None): url = ES + path data = json.dumps(body).encode() if body else None @@ -52,10 +54,14 @@ def es_request(path, method="GET", body=None): resp = urllib.request.urlopen(req, timeout=60) return json.loads(resp.read()) + def get_embedding(inference_id, text): - r = es_request(f"/_inference/text_embedding/{inference_id}", "POST", {"input": text}) + r = es_request( + f"/_inference/text_embedding/{inference_id}", "POST", {"input": text} + ) return r["text_embedding"][0]["embedding"] + results = {} for model_key, cfg in MODELS.items(): print(f"\nModel: {model_key}", file=sys.stderr) @@ -65,7 +71,10 @@ def get_embedding(inference_id, text): # Exact kNN: num_candidates >= num_docs forces exhaustive search num_candidates = cfg["num_docs"] + 1000 - print(f" Running knn on {cfg['index']} (num_candidates={num_candidates}) ...", file=sys.stderr) + print( + f" Running knn on {cfg['index']} (num_candidates={num_candidates}) ...", + file=sys.stderr, + ) body = { "size": K, @@ -74,7 +83,7 @@ def get_embedding(inference_id, text): "query_vector": emb, "k": K, "num_candidates": num_candidates, - "inner_hits": {"size": 1, "_source": False, "fields": []} + "inner_hits": {"size": 1, "_source": False, "fields": []}, }, "_source": ["urn", "hadithText", "collection"], } @@ -85,10 +94,10 @@ def get_embedding(inference_id, text): print(f" Got {len(hits)} hits", file=sys.stderr) results[model_key] = [ { - "rank": i+1, + "rank": i + 1, "urn": h.get("_source", {}).get("urn", h.get("_id", "")), "score": round(h.get("_score", 0), 4), - "text": h.get("_source", {}).get("hadithText", "") + "text": h.get("_source", {}).get("hadithText", ""), } for i, h in enumerate(hits) ] diff --git a/tests/test_shortcode_pattern.py b/tests/test_shortcode_pattern.py index 4d35b95..1e370bd 100644 --- a/tests/test_shortcode_pattern.py +++ b/tests/test_shortcode_pattern.py @@ -41,7 +41,7 @@ def test_strips_self_closing_shortcode(self): def test_strips_unknown_but_shortcode_shaped_tags(self): # Future-proofing: any tag-shaped token is stripped. - self.assertEqual(strip("[somefuture id=\"5\"]z[/somefuture]"), " z ") + self.assertEqual(strip('[somefuture id="5"]z[/somefuture]'), " z ") def test_preserves_multi_word_parenthetical_asides(self): s = "Keep [bleeding (from the womb) in between a woman periods] intact" @@ -53,7 +53,9 @@ def test_preserves_qur_an_aside(self): def test_preserves_text_outside_shortcodes(self): s = "The Prophet (saws) said, [matn]be kind[/matn] to your neighbor." - self.assertEqual(strip(s), "The Prophet (saws) said, be kind to your neighbor.") + self.assertEqual( + strip(s), "The Prophet (saws) said, be kind to your neighbor." + ) def test_does_not_match_brackets_with_leading_space(self): # Tag name must be the first thing after `[`. diff --git a/utils/rate_limiter.py b/utils/rate_limiter.py index ced20e5..4f0f741 100644 --- a/utils/rate_limiter.py +++ b/utils/rate_limiter.py @@ -23,8 +23,9 @@ class RateLimiter: def __init__(self, rpm, log=None): self.enabled = rpm > 0 if rpm == 0 and log is not None: - log.warning("rate_limiter_rpm_zero", - extra={"hint": "use -1 to disable throttling"}) + log.warning( + "rate_limiter_rpm_zero", extra={"hint": "use -1 to disable throttling"} + ) self.interval = 60.0 / rpm if self.enabled else 0.0 self.lock = threading.Lock() self.next_allowed = 0.0 From b87db4ebd34b23343bcdbee5db1eea65d5a02cad Mon Sep 17 00:00:00 2001 From: yug <> Date: Thu, 28 May 2026 13:37:10 -0400 Subject: [PATCH 32/32] cleanup --- uwsgi.ini | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/uwsgi.ini b/uwsgi.ini index 24eb1dc..b648664 100644 --- a/uwsgi.ini +++ b/uwsgi.ini @@ -8,8 +8,6 @@ enable-threads = true harakiri = 35 harakiri-verbose = true buffer-size=32768 -# /index performs remote embedding for ~48K docs before bulk-ingest, which -# takes several minutes. Override the 35s harakiri just for this admin route -# so a real rebuild can complete; search endpoints keep the strict 35s limit. +# /index rebuilds take minutes; bump harakiri for that route only. route = ^/index harakiri:1800